{"items":[{"type":"link","label":"Active Rating API","link":"/archive/active-rating/active-rating-api/active-rating-api","routeSlug":"/archive/active-rating/active-rating-api/active-rating-api","content":{"contentType":"overview","meta":{"name":"Active Rating API"},"children":[{"nodeType":"container","panels":[{"title":"Download OpenAPI description","titleTranslationKey":"download.description.title","children":[{"kind":"download","label":"active-rating-api.json","url":"/_bundle/archive/active-rating/active-rating-api/active-rating-api.json?download"},{"kind":"download","label":"active-rating-api.yaml","url":"/_bundle/archive/active-rating/active-rating-api/active-rating-api.yaml?download"}]},{"title":"Overview","titleTranslationKey":"info.title","children":[{"kind":"email","title":"E-mail","titleTranslationKey":"info.contact.name","email":"docs@zuora.com","label":"docs@zuora.com","withCopyButton":true,"copyContent":"docs@zuora.com"}]},{"title":"Languages","titleTranslationKey":"languages.title","children":[{"kind":"languages","options":[{"key":"payload","title":"Payload","lang":"Payload"},{"key":"curl","title":"cURL","lang":"curl"}]}]},{"title":"Servers","titleTranslationKey":"servers.title","children":[{"kind":"servers","servers":[{"url":"https://rest.zuora.com"}],"mode":"default"}]}],"children":[{"nodeType":"overview-section-wrapper","children":[{"nodeType":"header","level":1,"label":"Active Rating API (2020-02-10)","showPageActions":true}],"sectionId":"/"}]}]}},{"type":"group","label":"Usage (with Active Rating)","link":"/archive/active-rating/active-rating-api/active-rating-api/usage-(with-active-rating)","routeSlug":"/archive/active-rating/active-rating-api/active-rating-api/usage-(with-active-rating)","items":[{"label":"Create usage records","deprecated":false,"httpVerb":"post","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/archive/active-rating/active-rating-api/active-rating-api/usage-(with-active-rating)/post_usagerecords","routeSlug":"/archive/active-rating/active-rating-api/active-rating-api/usage-(with-active-rating)/post_usagerecords","metadata":{"seo":{"title":"Create usage records","description":"Note: This operation is available only if Active Rating is enabled. The Active Rating feature is in development. If you wish to have access to the feature, submit a request at Zuora Global Support."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"POST_UsageRecords","name":"Create usage records","isWebhook":false,"pointer":"/paths/~1usage/post","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Create usage records","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Note:"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" This operation is available only if Active Rating is enabled. The Active Rating feature is in development. If you wish to have access to the feature, submit a request at "},"children":[]},{"$$mdtype":"Node","type":"link","inline":true,"attributes":{"href":"http://support.zuora.com/"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Zuora Global Support"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Creates a single or multiple usage records for an account. The account that you want to create usage records for must have a corresponding usage-based rate plan charge."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"For more information about the usage data format, see "},"children":[]},{"$$mdtype":"Node","type":"link","inline":true,"attributes":{"href":"https://knowledgecenter.zuora.com/CB_Billing/J_Billing_Operations/H_Active_Rating/Usage_Data_Import"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Usage Data Import"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]}]},{"nodeType":"item-content","variant":"headers","label":"Headers","labelTranslationKey":"header","parameters":[{"name":"Authorization","in":"header","schemaId":"schema_0","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"Bearer {token}"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" for a valid OAuth token."},"children":[]}]}]}],"required":true},{"name":"Zuora-Entity-Ids","in":"header","schemaId":"schema_0","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"An entity ID. If you have "},"children":[]},{"$$mdtype":"Node","type":"link","inline":true,"attributes":{"href":"https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Zuora Multi-entity"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you do not need to set this header."},"children":[]}]}]}]},{"name":"Zuora-Track-Id","in":"header","schemaId":"schema_1","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"The value of this field must use the US-ASCII character set and must not include any of the following characters: colon ("},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":":"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"), semicolon ("},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":";"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"), double quote ("},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"\""},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"), and quote ("},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"'"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":")."},"children":[]}]}]}]},{"name":"Content-Type","in":"header","schemaId":"schema_0","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"The type of the request content."},"children":[]}]}]},{"$$mdtype":"Node","type":"list","attributes":{"ordered":false,"marker":"-"},"children":[{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"If you create multiple usage records, you must specify the value of this parameter to "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"application/vnd.zuora.usage-bulk+json"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"If you create a single usage record, you do not need to specify this field."},"children":[]}]}]}]}]}],"required":true}],"pointer":"/paths/~1usage/post/parameters"},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","required":true,"mediaTypes":["application/vnd.zuora.usage-bulk+json;charset=UTF-8"],"mediaTypeSchemas":{"application/vnd.zuora.usage-bulk+json;charset=UTF-8":{"schemaId":"components/schemas/POSTUsageRecordRequestType"}},"schemaId":"components/schemas/POSTUsageRecordRequestType","pointer":"/paths/~1usage/post/requestBody"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"POST","path":"/usage","servers":[{"url":"https://rest.zuora.com"}],"parameters":{"path":[],"query":[],"querystring":[],"header":[{"name":"Authorization","in":"header","required":true,"schemaId":"schema_0"},{"name":"Zuora-Entity-Ids","in":"header","required":false,"schemaId":"schema_0"},{"name":"Zuora-Track-Id","in":"header","required":false,"schemaId":"schema_1"},{"name":"Content-Type","in":"header","required":true,"schemaId":"schema_0"}],"cookie":[]},"security":[],"requestBody":{"application/vnd.zuora.usage-bulk+json;charset=UTF-8":{"schemaId":"components/schemas/POSTUsageRecordRequestType"}},"responseCodes":["200","400","409","500"],"pointer":"/usage","href":"usage-(with-active-rating)/post_usagerecords","openApiOperationId":"POST_UsageRecords","summary":"Create usage records"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://rest.zuora.com"}],"schemaId":"components/schemas/POSTUsageRecordRequestType","mediaTypes":["application/vnd.zuora.usage-bulk+json;charset=UTF-8"],"mediaTypeSchemas":{"application/vnd.zuora.usage-bulk+json;charset=UTF-8":{"schemaId":"components/schemas/POSTUsageRecordRequestType"}},"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"OK","mediaType":"application/json; charset=utf-8","mediaTypes":["application/json; charset=utf-8","application/json"],"mediaTypeContent":{"application/json; charset=utf-8":{"schemaId":"components/schemas/POSTUsageRecordResponseType"},"application/json":{"exampleIds":["paths/~1usage/post/responses/200/content/application~1json/examples/response"]}},"schemaId":"components/schemas/POSTUsageRecordResponseType","headers":{"Zuora-Request-Id":{"description":"The Zuora internal identifier of the API call. You cannot control the value of this header.\n","schema":{"type":"string","minLength":36,"maxLength":36}},"Zuora-Track-Id":{"description":"A custom identifier for tracing the API call. If you specified a tracing identifier in the request headers, Zuora returns the same tracing identifier. Otherwise, Zuora does not set this header.\n","schema":{"type":"string","maxLength":64}}},"headerSchemaId":"schema_2"},{"code":"400","description":"Bad Request","mediaType":"application/json; charset=utf-8","mediaTypes":["application/json; charset=utf-8","application/json"],"mediaTypeContent":{"application/json; charset=utf-8":{"schemaId":"components/schemas/CommonUsageErrorResponse"},"application/json":{"exampleIds":["paths/~1usage/post/responses/400/content/application~1json/examples/response"]}},"schemaId":"components/schemas/CommonUsageErrorResponse","headers":{"Zuora-Request-Id":{"description":"The Zuora internal identifier of the API call. You cannot control the value of this header.\n","schema":{"type":"string","minLength":36,"maxLength":36}},"Zuora-Track-Id":{"description":"A custom identifier for tracing the API call. If you specified a tracing identifier in the request headers, Zuora returns the same tracing identifier. Otherwise, Zuora does not set this header.\n","schema":{"type":"string","maxLength":64}}},"headerSchemaId":"schema_2"},{"code":"409","description":"Conflict","mediaType":"application/json; charset=utf-8","mediaTypes":["application/json; charset=utf-8","application/json"],"mediaTypeContent":{"application/json; charset=utf-8":{"schemaId":"components/schemas/CommonUsageErrorResponse"},"application/json":{"exampleIds":["paths/~1usage/post/responses/409/content/application~1json/examples/response"]}},"schemaId":"components/schemas/CommonUsageErrorResponse","headers":{"Zuora-Request-Id":{"description":"The Zuora internal identifier of the API call. You cannot control the value of this header.\n","schema":{"type":"string","minLength":36,"maxLength":36}},"Zuora-Track-Id":{"description":"A custom identifier for tracing the API call. If you specified a tracing identifier in the request headers, Zuora returns the same tracing identifier. Otherwise, Zuora does not set this header.\n","schema":{"type":"string","maxLength":64}}},"headerSchemaId":"schema_2"},{"code":"500","description":"Internal Server Error","mediaType":"application/json; charset=utf-8","mediaTypes":["application/json; charset=utf-8","application/json"],"mediaTypeContent":{"application/json; charset=utf-8":{"schemaId":"components/schemas/CommonUsageErrorResponse"},"application/json":{"exampleIds":["paths/~1usage/post/responses/500/content/application~1json/examples/response"]}},"schemaId":"components/schemas/CommonUsageErrorResponse","headers":{"Zuora-Request-Id":{"description":"The Zuora internal identifier of the API call. You cannot control the value of this header.\n","schema":{"type":"string","minLength":36,"maxLength":36}},"Zuora-Track-Id":{"description":"A custom identifier for tracing the API call. If you specified a tracing identifier in the request headers, Zuora returns the same tracing identifier. Otherwise, Zuora does not set this header.\n","schema":{"type":"string","maxLength":64}}},"headerSchemaId":"schema_2"}],"pointer":"/paths/~1usage/post/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"components/schemas/POSTUsageRecordResponseType","mediaTypes":["application/json; charset=utf-8","application/json"],"mediaTypeContent":{"application/json; charset=utf-8":{"schemaId":"components/schemas/POSTUsageRecordResponseType"},"application/json":{"exampleIds":["paths/~1usage/post/responses/200/content/application~1json/examples/response"]}}},{"code":"400","schemaId":"components/schemas/CommonUsageErrorResponse","mediaTypes":["application/json; charset=utf-8","application/json"],"mediaTypeContent":{"application/json; charset=utf-8":{"schemaId":"components/schemas/CommonUsageErrorResponse"},"application/json":{"exampleIds":["paths/~1usage/post/responses/400/content/application~1json/examples/response"]}}},{"code":"409","schemaId":"components/schemas/CommonUsageErrorResponse","mediaTypes":["application/json; charset=utf-8","application/json"],"mediaTypeContent":{"application/json; charset=utf-8":{"schemaId":"components/schemas/CommonUsageErrorResponse"},"application/json":{"exampleIds":["paths/~1usage/post/responses/409/content/application~1json/examples/response"]}}},{"code":"500","schemaId":"components/schemas/CommonUsageErrorResponse","mediaTypes":["application/json; charset=utf-8","application/json"],"mediaTypeContent":{"application/json; charset=utf-8":{"schemaId":"components/schemas/CommonUsageErrorResponse"},"application/json":{"exampleIds":["paths/~1usage/post/responses/500/content/application~1json/examples/response"]}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/usage-(with-active-rating)/post_usagerecords"}],"panels":[]}]},"httpPath":"/usage"},{"label":"Update usage record","deprecated":false,"httpVerb":"put","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/archive/active-rating/active-rating-api/active-rating-api/usage-(with-active-rating)/put_usagerecord","routeSlug":"/archive/active-rating/active-rating-api/active-rating-api/usage-(with-active-rating)/put_usagerecord","metadata":{"seo":{"title":"Update usage record","description":"Note: This operation is available only if Active Rating is enabled. The Active Rating feature is in development. If you wish to have access to the feature, submit a request at Zuora Global Support."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"PUT_UsageRecord","name":"Update usage record","isWebhook":false,"pointer":"/paths/~1usage~1{id}/put","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Update usage record","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Note:"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" This operation is available only if Active Rating is enabled. The Active Rating feature is in development. If you wish to have access to the feature, submit a request at "},"children":[]},{"$$mdtype":"Node","type":"link","inline":true,"attributes":{"href":"http://support.zuora.com/"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Zuora Global Support"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Updates certain information of a specified usage record. Note that you can only update usage records that are not billed."},"children":[]}]}]}]},{"nodeType":"item-content","variant":"path","label":"Path","labelTranslationKey":"path","parameters":[{"name":"id","in":"path","schemaId":"schema_0","description":"The ID of the usage record you want to update.\n","required":true}],"pointer":"/paths/~1usage~1{id}/put/parameters"},{"nodeType":"item-content","variant":"headers","label":"Headers","labelTranslationKey":"header","parameters":[{"name":"Authorization","in":"header","schemaId":"schema_0","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"Bearer {token}"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" for a valid OAuth token."},"children":[]}]}]}],"required":true},{"name":"Zuora-Entity-Ids","in":"header","schemaId":"schema_0","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"An entity ID. If you have "},"children":[]},{"$$mdtype":"Node","type":"link","inline":true,"attributes":{"href":"https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Zuora Multi-entity"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you do not need to set this header."},"children":[]}]}]}]},{"name":"Zuora-Track-Id","in":"header","schemaId":"schema_1","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"The value of this field must use the US-ASCII character set and must not include any of the following characters: colon ("},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":":"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"), semicolon ("},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":";"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"), double quote ("},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"\""},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"), and quote ("},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"'"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":")."},"children":[]}]}]}]}],"pointer":"/paths/~1usage~1{id}/put/parameters"},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","required":true,"mediaTypes":["application/json; charset=utf-8"],"mediaTypeSchemas":{"application/json; charset=utf-8":{"schemaId":"components/schemas/PUTUsageType"}},"schemaId":"components/schemas/PUTUsageType","pointer":"/paths/~1usage~1{id}/put/requestBody"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"PUT","path":"/usage/{id}","servers":[{"url":"https://rest.zuora.com"}],"parameters":{"path":[{"name":"id","in":"path","required":true,"schemaId":"schema_0"}],"query":[],"querystring":[],"header":[{"name":"Authorization","in":"header","required":true,"schemaId":"schema_0"},{"name":"Zuora-Entity-Ids","in":"header","required":false,"schemaId":"schema_0"},{"name":"Zuora-Track-Id","in":"header","required":false,"schemaId":"schema_1"}],"cookie":[]},"security":[],"requestBody":{"application/json; charset=utf-8":{"schemaId":"components/schemas/PUTUsageType"}},"responseCodes":["200","400","404","409","500"],"pointer":"/usage/{id}","href":"usage-(with-active-rating)/put_usagerecord","openApiOperationId":"PUT_UsageRecord","summary":"Update usage record"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://rest.zuora.com"}],"schemaId":"components/schemas/PUTUsageType","mediaTypes":["application/json; charset=utf-8"],"mediaTypeSchemas":{"application/json; charset=utf-8":{"schemaId":"components/schemas/PUTUsageType"}},"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"OK","mediaType":"application/json; charset=utf-8","mediaTypes":["application/json; charset=utf-8","application/json"],"mediaTypeContent":{"application/json; charset=utf-8":{"schemaId":"components/schemas/PUTUpdateUsageResponseType"},"application/json":{"exampleIds":["paths/~1usage~1{id}/put/responses/200/content/application~1json/examples/response"]}},"schemaId":"components/schemas/PUTUpdateUsageResponseType","headers":{"Zuora-Request-Id":{"description":"The Zuora internal identifier of the API call. You cannot control the value of this header.\n","schema":{"type":"string","minLength":36,"maxLength":36}},"Zuora-Track-Id":{"description":"A custom identifier for tracing the API call. If you specified a tracing identifier in the request headers, Zuora returns the same tracing identifier. Otherwise, Zuora does not set this header.\n","schema":{"type":"string","maxLength":64}}},"headerSchemaId":"schema_2"},{"code":"400","description":"Bad Request","mediaType":"application/json; charset=utf-8","mediaTypes":["application/json; charset=utf-8","application/json"],"mediaTypeContent":{"application/json; charset=utf-8":{"schemaId":"components/schemas/CommonUsageErrorResponse"},"application/json":{"exampleIds":["paths/~1usage~1{id}/put/responses/400/content/application~1json/examples/response"]}},"schemaId":"components/schemas/CommonUsageErrorResponse","headers":{"Zuora-Request-Id":{"description":"The Zuora internal identifier of the API call. You cannot control the value of this header.\n","schema":{"type":"string","minLength":36,"maxLength":36}},"Zuora-Track-Id":{"description":"A custom identifier for tracing the API call. If you specified a tracing identifier in the request headers, Zuora returns the same tracing identifier. Otherwise, Zuora does not set this header.\n","schema":{"type":"string","maxLength":64}}},"headerSchemaId":"schema_2"},{"code":"404","description":"Not Found","mediaType":"application/json; charset=utf-8","mediaTypes":["application/json; charset=utf-8","application/json"],"mediaTypeContent":{"application/json; charset=utf-8":{"schemaId":"components/schemas/CommonUsageErrorResponse"},"application/json":{"exampleIds":["paths/~1usage~1{id}/put/responses/404/content/application~1json/examples/response"]}},"schemaId":"components/schemas/CommonUsageErrorResponse","headers":{"Zuora-Request-Id":{"description":"The Zuora internal identifier of the API call. You cannot control the value of this header.\n","schema":{"type":"string","minLength":36,"maxLength":36}},"Zuora-Track-Id":{"description":"A custom identifier for tracing the API call. If you specified a tracing identifier in the request headers, Zuora returns the same tracing identifier. Otherwise, Zuora does not set this header.\n","schema":{"type":"string","maxLength":64}}},"headerSchemaId":"schema_2"},{"code":"409","description":"Conflict","mediaType":"application/json; charset=utf-8","mediaTypes":["application/json; charset=utf-8","application/json"],"mediaTypeContent":{"application/json; charset=utf-8":{"schemaId":"components/schemas/CommonUsageErrorResponse"},"application/json":{"exampleIds":["paths/~1usage~1{id}/put/responses/409/content/application~1json/examples/response"]}},"schemaId":"components/schemas/CommonUsageErrorResponse","headers":{"Zuora-Request-Id":{"description":"The Zuora internal identifier of the API call. You cannot control the value of this header.\n","schema":{"type":"string","minLength":36,"maxLength":36}},"Zuora-Track-Id":{"description":"A custom identifier for tracing the API call. If you specified a tracing identifier in the request headers, Zuora returns the same tracing identifier. Otherwise, Zuora does not set this header.\n","schema":{"type":"string","maxLength":64}}},"headerSchemaId":"schema_2"},{"code":"500","description":"Internal Server Error","mediaType":"application/json; charset=utf-8","mediaTypes":["application/json; charset=utf-8","application/json"],"mediaTypeContent":{"application/json; charset=utf-8":{"schemaId":"components/schemas/CommonUsageErrorResponse"},"application/json":{"exampleIds":["paths/~1usage~1{id}/put/responses/500/content/application~1json/examples/response"]}},"schemaId":"components/schemas/CommonUsageErrorResponse","headers":{"Zuora-Request-Id":{"description":"The Zuora internal identifier of the API call. You cannot control the value of this header.\n","schema":{"type":"string","minLength":36,"maxLength":36}},"Zuora-Track-Id":{"description":"A custom identifier for tracing the API call. If you specified a tracing identifier in the request headers, Zuora returns the same tracing identifier. Otherwise, Zuora does not set this header.\n","schema":{"type":"string","maxLength":64}}},"headerSchemaId":"schema_2"}],"pointer":"/paths/~1usage~1{id}/put/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"components/schemas/PUTUpdateUsageResponseType","mediaTypes":["application/json; charset=utf-8","application/json"],"mediaTypeContent":{"application/json; charset=utf-8":{"schemaId":"components/schemas/PUTUpdateUsageResponseType"},"application/json":{"exampleIds":["paths/~1usage~1{id}/put/responses/200/content/application~1json/examples/response"]}}},{"code":"400","schemaId":"components/schemas/CommonUsageErrorResponse","mediaTypes":["application/json; charset=utf-8","application/json"],"mediaTypeContent":{"application/json; charset=utf-8":{"schemaId":"components/schemas/CommonUsageErrorResponse"},"application/json":{"exampleIds":["paths/~1usage~1{id}/put/responses/400/content/application~1json/examples/response"]}}},{"code":"404","schemaId":"components/schemas/CommonUsageErrorResponse","mediaTypes":["application/json; charset=utf-8","application/json"],"mediaTypeContent":{"application/json; charset=utf-8":{"schemaId":"components/schemas/CommonUsageErrorResponse"},"application/json":{"exampleIds":["paths/~1usage~1{id}/put/responses/404/content/application~1json/examples/response"]}}},{"code":"409","schemaId":"components/schemas/CommonUsageErrorResponse","mediaTypes":["application/json; charset=utf-8","application/json"],"mediaTypeContent":{"application/json; charset=utf-8":{"schemaId":"components/schemas/CommonUsageErrorResponse"},"application/json":{"exampleIds":["paths/~1usage~1{id}/put/responses/409/content/application~1json/examples/response"]}}},{"code":"500","schemaId":"components/schemas/CommonUsageErrorResponse","mediaTypes":["application/json; charset=utf-8","application/json"],"mediaTypeContent":{"application/json; charset=utf-8":{"schemaId":"components/schemas/CommonUsageErrorResponse"},"application/json":{"exampleIds":["paths/~1usage~1{id}/put/responses/500/content/application~1json/examples/response"]}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/usage-(with-active-rating)/put_usagerecord"}],"panels":[]}]},"httpPath":"/usage/{id}"},{"label":"Get usage record","deprecated":false,"httpVerb":"get","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/archive/active-rating/active-rating-api/active-rating-api/usage-(with-active-rating)/get_usagerecord","routeSlug":"/archive/active-rating/active-rating-api/active-rating-api/usage-(with-active-rating)/get_usagerecord","metadata":{"seo":{"title":"Get usage record","description":"Note: This operation is available only if Active Rating is enabled. The Active Rating feature is in development. If you wish to have access to the feature, submit a request at Zuora Global Support."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"GET_UsageRecord","name":"Get usage record","isWebhook":false,"pointer":"/paths/~1usage~1{id}/get","hasSamples":false},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Get usage record","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Note:"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" This operation is available only if Active Rating is enabled. The Active Rating feature is in development. If you wish to have access to the feature, submit a request at "},"children":[]},{"$$mdtype":"Node","type":"link","inline":true,"attributes":{"href":"http://support.zuora.com/"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Zuora Global Support"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Retrieves information about a specific usage record."},"children":[]}]}]}]},{"nodeType":"item-content","variant":"path","label":"Path","labelTranslationKey":"path","parameters":[{"name":"id","in":"path","schemaId":"schema_0","description":"The ID of the usage record you want to retrieve.\n","required":true}],"pointer":"/paths/~1usage~1{id}/get/parameters"},{"nodeType":"item-content","variant":"headers","label":"Headers","labelTranslationKey":"header","parameters":[{"name":"Authorization","in":"header","schemaId":"schema_0","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"Bearer {token}"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" for a valid OAuth token."},"children":[]}]}]}],"required":true},{"name":"Zuora-Entity-Ids","in":"header","schemaId":"schema_0","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"An entity ID. If you have "},"children":[]},{"$$mdtype":"Node","type":"link","inline":true,"attributes":{"href":"https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Zuora Multi-entity"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you do not need to set this header."},"children":[]}]}]}]},{"name":"Zuora-Track-Id","in":"header","schemaId":"schema_1","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"The value of this field must use the US-ASCII character set and must not include any of the following characters: colon ("},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":":"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"), semicolon ("},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":";"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"), double quote ("},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"\""},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"), and quote ("},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"'"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":")."},"children":[]}]}]}]}],"pointer":"/paths/~1usage~1{id}/get/parameters"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"GET","path":"/usage/{id}","servers":[{"url":"https://rest.zuora.com"}],"parameters":{"path":[{"name":"id","in":"path","required":true,"schemaId":"schema_0"}],"query":[],"querystring":[],"header":[{"name":"Authorization","in":"header","required":true,"schemaId":"schema_0"},{"name":"Zuora-Entity-Ids","in":"header","required":false,"schemaId":"schema_0"},{"name":"Zuora-Track-Id","in":"header","required":false,"schemaId":"schema_1"}],"cookie":[]},"security":[],"responseCodes":["200","404","500"],"pointer":"/usage/{id}","href":"usage-(with-active-rating)/get_usagerecord","openApiOperationId":"GET_UsageRecord","summary":"Get usage record"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://rest.zuora.com"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"OK","mediaType":"application/json; charset=utf-8","mediaTypes":["application/json; charset=utf-8","application/json"],"mediaTypeContent":{"application/json; charset=utf-8":{"schemaId":"components/schemas/GETUsageResponseType"},"application/json":{"exampleIds":["paths/~1usage~1{id}/get/responses/200/content/application~1json/examples/response"]}},"schemaId":"components/schemas/GETUsageResponseType","headers":{"Zuora-Request-Id":{"description":"The Zuora internal identifier of the API call. You cannot control the value of this header.\n","schema":{"type":"string","minLength":36,"maxLength":36}},"Zuora-Track-Id":{"description":"A custom identifier for tracing the API call. If you specified a tracing identifier in the request headers, Zuora returns the same tracing identifier. Otherwise, Zuora does not set this header.\n","schema":{"type":"string","maxLength":64}}},"headerSchemaId":"schema_2"},{"code":"404","description":"Not Found","mediaType":"application/json; charset=utf-8","mediaTypes":["application/json; charset=utf-8","application/json"],"mediaTypeContent":{"application/json; charset=utf-8":{"schemaId":"components/schemas/CommonUsageErrorResponse"},"application/json":{"exampleIds":["paths/~1usage~1{id}/get/responses/404/content/application~1json/examples/response"]}},"schemaId":"components/schemas/CommonUsageErrorResponse","headers":{"Zuora-Request-Id":{"description":"The Zuora internal identifier of the API call. You cannot control the value of this header.\n","schema":{"type":"string","minLength":36,"maxLength":36}},"Zuora-Track-Id":{"description":"A custom identifier for tracing the API call. If you specified a tracing identifier in the request headers, Zuora returns the same tracing identifier. Otherwise, Zuora does not set this header.\n","schema":{"type":"string","maxLength":64}}},"headerSchemaId":"schema_2"},{"code":"500","description":"Internal Server Error","mediaType":"application/json; charset=utf-8","mediaTypes":["application/json; charset=utf-8","application/json"],"mediaTypeContent":{"application/json; charset=utf-8":{"schemaId":"components/schemas/CommonUsageErrorResponse"},"application/json":{"exampleIds":["paths/~1usage~1{id}/get/responses/500/content/application~1json/examples/response"]}},"schemaId":"components/schemas/CommonUsageErrorResponse","headers":{"Zuora-Request-Id":{"description":"The Zuora internal identifier of the API call. You cannot control the value of this header.\n","schema":{"type":"string","minLength":36,"maxLength":36}},"Zuora-Track-Id":{"description":"A custom identifier for tracing the API call. If you specified a tracing identifier in the request headers, Zuora returns the same tracing identifier. Otherwise, Zuora does not set this header.\n","schema":{"type":"string","maxLength":64}}},"headerSchemaId":"schema_2"}],"pointer":"/paths/~1usage~1{id}/get/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"components/schemas/GETUsageResponseType","mediaTypes":["application/json; charset=utf-8","application/json"],"mediaTypeContent":{"application/json; charset=utf-8":{"schemaId":"components/schemas/GETUsageResponseType"},"application/json":{"exampleIds":["paths/~1usage~1{id}/get/responses/200/content/application~1json/examples/response"]}}},{"code":"404","schemaId":"components/schemas/CommonUsageErrorResponse","mediaTypes":["application/json; charset=utf-8","application/json"],"mediaTypeContent":{"application/json; charset=utf-8":{"schemaId":"components/schemas/CommonUsageErrorResponse"},"application/json":{"exampleIds":["paths/~1usage~1{id}/get/responses/404/content/application~1json/examples/response"]}}},{"code":"500","schemaId":"components/schemas/CommonUsageErrorResponse","mediaTypes":["application/json; charset=utf-8","application/json"],"mediaTypeContent":{"application/json; charset=utf-8":{"schemaId":"components/schemas/CommonUsageErrorResponse"},"application/json":{"exampleIds":["paths/~1usage~1{id}/get/responses/500/content/application~1json/examples/response"]}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/usage-(with-active-rating)/get_usagerecord"}],"panels":[]}]},"httpPath":"/usage/{id}"},{"label":"Delete usage record","deprecated":false,"httpVerb":"delete","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/archive/active-rating/active-rating-api/active-rating-api/usage-(with-active-rating)/delete_usagerecord","routeSlug":"/archive/active-rating/active-rating-api/active-rating-api/usage-(with-active-rating)/delete_usagerecord","metadata":{"seo":{"title":"Delete usage record","description":"Note: This operation is available only if Active Rating is enabled. The Active Rating feature is in development. If you wish to have access to the feature, submit a request at Zuora Global Support."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"DELETE_UsageRecord","name":"Delete usage record","isWebhook":false,"pointer":"/paths/~1usage~1{id}/delete","hasSamples":false},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Delete usage record","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Note:"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" This operation is available only if Active Rating is enabled. The Active Rating feature is in development. If you wish to have access to the feature, submit a request at "},"children":[]},{"$$mdtype":"Node","type":"link","inline":true,"attributes":{"href":"http://support.zuora.com/"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Zuora Global Support"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Deletes a usage record. Note that you can only delete usage records with the Pending or Rated status."},"children":[]}]}]}]},{"nodeType":"item-content","variant":"path","label":"Path","labelTranslationKey":"path","parameters":[{"name":"id","in":"path","schemaId":"schema_0","description":"The ID of the usage record you want to delete.\n","required":true}],"pointer":"/paths/~1usage~1{id}/delete/parameters"},{"nodeType":"item-content","variant":"headers","label":"Headers","labelTranslationKey":"header","parameters":[{"name":"Authorization","in":"header","schemaId":"schema_0","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"Bearer {token}"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" for a valid OAuth token."},"children":[]}]}]}],"required":true},{"name":"Zuora-Entity-Ids","in":"header","schemaId":"schema_0","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"An entity ID. If you have "},"children":[]},{"$$mdtype":"Node","type":"link","inline":true,"attributes":{"href":"https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Zuora Multi-entity"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you do not need to set this header."},"children":[]}]}]}]},{"name":"Zuora-Track-Id","in":"header","schemaId":"schema_1","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"The value of this field must use the US-ASCII character set and must not include any of the following characters: colon ("},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":":"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"), semicolon ("},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":";"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"), double quote ("},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"\""},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"), and quote ("},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"'"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":")."},"children":[]}]}]}]}],"pointer":"/paths/~1usage~1{id}/delete/parameters"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"DELETE","path":"/usage/{id}","servers":[{"url":"https://rest.zuora.com"}],"parameters":{"path":[{"name":"id","in":"path","required":true,"schemaId":"schema_0"}],"query":[],"querystring":[],"header":[{"name":"Authorization","in":"header","required":true,"schemaId":"schema_0"},{"name":"Zuora-Entity-Ids","in":"header","required":false,"schemaId":"schema_0"},{"name":"Zuora-Track-Id","in":"header","required":false,"schemaId":"schema_1"}],"cookie":[]},"security":[],"responseCodes":["200","404","500"],"pointer":"/usage/{id}","href":"usage-(with-active-rating)/delete_usagerecord","openApiOperationId":"DELETE_UsageRecord","summary":"Delete usage record"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://rest.zuora.com"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"OK","mediaType":"application/json; charset=utf-8","mediaTypes":["application/json; charset=utf-8","application/json"],"mediaTypeContent":{"application/json; charset=utf-8":{"schemaId":"components/schemas/DELETEUsageResponseType"},"application/json":{"exampleIds":["paths/~1usage~1{id}/delete/responses/200/content/application~1json/examples/response"]}},"schemaId":"components/schemas/DELETEUsageResponseType","headers":{"Zuora-Request-Id":{"description":"The Zuora internal identifier of the API call. You cannot control the value of this header.\n","schema":{"type":"string","minLength":36,"maxLength":36}},"Zuora-Track-Id":{"description":"A custom identifier for tracing the API call. If you specified a tracing identifier in the request headers, Zuora returns the same tracing identifier. Otherwise, Zuora does not set this header.\n","schema":{"type":"string","maxLength":64}}},"headerSchemaId":"schema_2"},{"code":"404","description":"Not Found","mediaType":"application/json; charset=utf-8","mediaTypes":["application/json; charset=utf-8","application/json"],"mediaTypeContent":{"application/json; charset=utf-8":{"schemaId":"components/schemas/CommonUsageErrorResponse"},"application/json":{"exampleIds":["paths/~1usage~1{id}/delete/responses/404/content/application~1json/examples/response"]}},"schemaId":"components/schemas/CommonUsageErrorResponse","headers":{"Zuora-Request-Id":{"description":"The Zuora internal identifier of the API call. You cannot control the value of this header.\n","schema":{"type":"string","minLength":36,"maxLength":36}},"Zuora-Track-Id":{"description":"A custom identifier for tracing the API call. If you specified a tracing identifier in the request headers, Zuora returns the same tracing identifier. Otherwise, Zuora does not set this header.\n","schema":{"type":"string","maxLength":64}}},"headerSchemaId":"schema_2"},{"code":"500","description":"Internal Server Error","mediaType":"application/json; charset=utf-8","mediaTypes":["application/json; charset=utf-8","application/json"],"mediaTypeContent":{"application/json; charset=utf-8":{"schemaId":"components/schemas/CommonUsageErrorResponse"},"application/json":{"exampleIds":["paths/~1usage~1{id}/delete/responses/500/content/application~1json/examples/response"]}},"schemaId":"components/schemas/CommonUsageErrorResponse","headers":{"Zuora-Request-Id":{"description":"The Zuora internal identifier of the API call. You cannot control the value of this header.\n","schema":{"type":"string","minLength":36,"maxLength":36}},"Zuora-Track-Id":{"description":"A custom identifier for tracing the API call. If you specified a tracing identifier in the request headers, Zuora returns the same tracing identifier. Otherwise, Zuora does not set this header.\n","schema":{"type":"string","maxLength":64}}},"headerSchemaId":"schema_2"}],"pointer":"/paths/~1usage~1{id}/delete/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"components/schemas/DELETEUsageResponseType","mediaTypes":["application/json; charset=utf-8","application/json"],"mediaTypeContent":{"application/json; charset=utf-8":{"schemaId":"components/schemas/DELETEUsageResponseType"},"application/json":{"exampleIds":["paths/~1usage~1{id}/delete/responses/200/content/application~1json/examples/response"]}}},{"code":"404","schemaId":"components/schemas/CommonUsageErrorResponse","mediaTypes":["application/json; charset=utf-8","application/json"],"mediaTypeContent":{"application/json; charset=utf-8":{"schemaId":"components/schemas/CommonUsageErrorResponse"},"application/json":{"exampleIds":["paths/~1usage~1{id}/delete/responses/404/content/application~1json/examples/response"]}}},{"code":"500","schemaId":"components/schemas/CommonUsageErrorResponse","mediaTypes":["application/json; charset=utf-8","application/json"],"mediaTypeContent":{"application/json; charset=utf-8":{"schemaId":"components/schemas/CommonUsageErrorResponse"},"application/json":{"exampleIds":["paths/~1usage~1{id}/delete/responses/500/content/application~1json/examples/response"]}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/usage-(with-active-rating)/delete_usagerecord"}],"panels":[]}]},"httpPath":"/usage/{id}"},{"label":"Query usage records","deprecated":false,"httpVerb":"get","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/archive/active-rating/active-rating-api/active-rating-api/usage-(with-active-rating)/get_usagerecordsquery","routeSlug":"/archive/active-rating/active-rating-api/active-rating-api/usage-(with-active-rating)/get_usagerecordsquery","metadata":{"seo":{"title":"Query usage records","description":"Note: This operation is available only if Active Rating is enabled. The Active Rating feature is in development. If you wish to have access to the feature, submit a request at Zuora Global Support."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"GET_UsageRecordsQuery","name":"Query usage records","isWebhook":false,"pointer":"/paths/~1usage~1query/get","hasSamples":false},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Query usage records","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Note:"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" This operation is available only if Active Rating is enabled. The Active Rating feature is in development. If you wish to have access to the feature, submit a request at "},"children":[]},{"$$mdtype":"Node","type":"link","inline":true,"attributes":{"href":"http://support.zuora.com/"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Zuora Global Support"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Retrieves information about usage records."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"You can specify certain response fields you want to retrieve by specifying the "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"fields"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" and "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"filters"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" query parameters. By default, all the response fields are returned in the response."},"children":[]}]}]}]},{"nodeType":"item-content","variant":"query","label":"Query","labelTranslationKey":"query","parameters":[{"name":"fields","in":"query","schemaId":"schema_0","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"The fields of the usage records you want to retrieve. By default, all the fields in the "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Responses"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" section are returned."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Use commas to separate the field names. You can specify any fields described in the "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Responses"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" section. For example: "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"/usage/query?fields=tag,quantity,id"},"children":[]}]}]}]},{"name":"filters","in":"query","schemaId":"schema_0","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"This parameter restricts the data returned in the response. You can use this parameter to supply a dimension you want to filter on."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"A single filter uses the following form:"},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"em","inline":true,"attributes":{"marker":"*"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"field_name"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" "},"children":[]},{"$$mdtype":"Node","type":"em","inline":true,"attributes":{"marker":"*"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"operator"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" "},"children":[]},{"$$mdtype":"Node","type":"em","inline":true,"attributes":{"marker":"*"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"field_value"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Supported operators: "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"="},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"!="},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":">"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"<"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":">="},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"<="},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"IS NULL"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"IS NOT NULL"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"IN"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" (The letters are not case sensitive.)"},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"You can specify any fields except for the custom fields described in the "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Responses"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" section. Filters can be combined using the "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"AND"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" boolean logic. For example: "},"children":[]},{"$$mdtype":"Node","type":"em","inline":true,"attributes":{"marker":"*"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"field_name"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" "},"children":[]},{"$$mdtype":"Node","type":"em","inline":true,"attributes":{"marker":"*"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"operator"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" "},"children":[]},{"$$mdtype":"Node","type":"em","inline":true,"attributes":{"marker":"*"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"field_value"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" AND "},"children":[]},{"$$mdtype":"Node","type":"em","inline":true,"attributes":{"marker":"*"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"field_name"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" "},"children":[]},{"$$mdtype":"Node","type":"em","inline":true,"attributes":{"marker":"*"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"operator"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" "},"children":[]},{"$$mdtype":"Node","type":"em","inline":true,"attributes":{"marker":"*"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"field_value"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Currently, the fields in filters must include at least one of the following fields: "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"accountNumber"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"status"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"uniqueKey"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", and "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"updatedOn"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Examples:"},"children":[]}]}]},{"$$mdtype":"Node","type":"list","attributes":{"ordered":false,"marker":"-"},"children":[{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"/usage/query?filters= (id ='035e35bd-880a-47c9-99df-830143b13aed' AND status='Pending')"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"/usage/query?fields=tag,id&filters= (quantity > 10 AND status='Pending')"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"/usage/query?filters=(status in ('Pending','Rated'))"},"children":[]}]}]}]}]}]},{"name":"page","in":"query","schemaId":"schema_3","description":"The index number of the page you want to retrieve. By default, the first page is returned in the response.\n"},{"name":"pageSize","in":"query","schemaId":"schema_4","description":"The maximum number of rows in a page to return in a response.\n"}],"pointer":"/paths/~1usage~1query/get/parameters"},{"nodeType":"item-content","variant":"headers","label":"Headers","labelTranslationKey":"header","parameters":[{"name":"Authorization","in":"header","schemaId":"schema_0","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"Bearer {token}"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" for a valid OAuth token."},"children":[]}]}]}],"required":true},{"name":"Zuora-Entity-Ids","in":"header","schemaId":"schema_0","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"An entity ID. If you have "},"children":[]},{"$$mdtype":"Node","type":"link","inline":true,"attributes":{"href":"https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Zuora Multi-entity"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you do not need to set this header."},"children":[]}]}]}]},{"name":"Zuora-Track-Id","in":"header","schemaId":"schema_1","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"The value of this field must use the US-ASCII character set and must not include any of the following characters: colon ("},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":":"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"), semicolon ("},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":";"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"), double quote ("},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"\""},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"), and quote ("},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"'"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":")."},"children":[]}]}]}]}],"pointer":"/paths/~1usage~1query/get/parameters"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"GET","path":"/usage/query","servers":[{"url":"https://rest.zuora.com"}],"parameters":{"path":[],"query":[{"name":"fields","in":"query","required":false,"schemaId":"schema_0"},{"name":"filters","in":"query","required":false,"schemaId":"schema_0"},{"name":"page","in":"query","required":false,"schemaId":"schema_3"},{"name":"pageSize","in":"query","required":false,"schemaId":"schema_4"}],"querystring":[],"header":[{"name":"Authorization","in":"header","required":true,"schemaId":"schema_0"},{"name":"Zuora-Entity-Ids","in":"header","required":false,"schemaId":"schema_0"},{"name":"Zuora-Track-Id","in":"header","required":false,"schemaId":"schema_1"}],"cookie":[]},"security":[],"responseCodes":["200","500"],"pointer":"/usage/query","href":"usage-(with-active-rating)/get_usagerecordsquery","openApiOperationId":"GET_UsageRecordsQuery","summary":"Query usage records"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://rest.zuora.com"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"OK","mediaType":"application/json; charset=utf-8","mediaTypes":["application/json; charset=utf-8","application/json"],"mediaTypeContent":{"application/json; charset=utf-8":{"schemaId":"components/schemas/QueryUsageResponseType"},"application/json":{"exampleIds":["paths/~1usage~1query/get/responses/200/content/application~1json/examples/response"]}},"schemaId":"components/schemas/QueryUsageResponseType","headers":{"Zuora-Request-Id":{"description":"The Zuora internal identifier of the API call. You cannot control the value of this header.\n","schema":{"type":"string","minLength":36,"maxLength":36}},"Zuora-Track-Id":{"description":"A custom identifier for tracing the API call. If you specified a tracing identifier in the request headers, Zuora returns the same tracing identifier. Otherwise, Zuora does not set this header.\n","schema":{"type":"string","maxLength":64}}},"headerSchemaId":"schema_2"},{"code":"500","description":"Internal Server Error","mediaType":"application/json; charset=utf-8","mediaTypes":["application/json; charset=utf-8","application/json"],"mediaTypeContent":{"application/json; charset=utf-8":{"schemaId":"components/schemas/CommonUsageErrorResponse"},"application/json":{"exampleIds":["paths/~1usage~1query/get/responses/500/content/application~1json/examples/response"]}},"schemaId":"components/schemas/CommonUsageErrorResponse","headers":{"Zuora-Request-Id":{"description":"The Zuora internal identifier of the API call. You cannot control the value of this header.\n","schema":{"type":"string","minLength":36,"maxLength":36}},"Zuora-Track-Id":{"description":"A custom identifier for tracing the API call. If you specified a tracing identifier in the request headers, Zuora returns the same tracing identifier. Otherwise, Zuora does not set this header.\n","schema":{"type":"string","maxLength":64}}},"headerSchemaId":"schema_2"}],"pointer":"/paths/~1usage~1query/get/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"components/schemas/QueryUsageResponseType","mediaTypes":["application/json; charset=utf-8","application/json"],"mediaTypeContent":{"application/json; charset=utf-8":{"schemaId":"components/schemas/QueryUsageResponseType"},"application/json":{"exampleIds":["paths/~1usage~1query/get/responses/200/content/application~1json/examples/response"]}}},{"code":"500","schemaId":"components/schemas/CommonUsageErrorResponse","mediaTypes":["application/json; charset=utf-8","application/json"],"mediaTypeContent":{"application/json; charset=utf-8":{"schemaId":"components/schemas/CommonUsageErrorResponse"},"application/json":{"exampleIds":["paths/~1usage~1query/get/responses/500/content/application~1json/examples/response"]}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/usage-(with-active-rating)/get_usagerecordsquery"}],"panels":[]}]},"httpPath":"/usage/query"},{"label":"Query usage records in stream","deprecated":false,"httpVerb":"get","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/archive/active-rating/active-rating-api/active-rating-api/usage-(with-active-rating)/get_usagerecordsstreamquery","routeSlug":"/archive/active-rating/active-rating-api/active-rating-api/usage-(with-active-rating)/get_usagerecordsstreamquery","metadata":{"seo":{"title":"Query usage records in stream","description":"Note: This operation is available only if Active Rating is enabled. The Active Rating feature is in development. If you wish to have access to the feature, submit a request at Zuora Global Support."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"GET_UsageRecordsStreamQuery","name":"Query usage records in stream","isWebhook":false,"pointer":"/paths/~1usage~1stream-query/get","hasSamples":false},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Query usage records in stream","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Note:"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" This operation is available only if Active Rating is enabled. The Active Rating feature is in development. If you wish to have access to the feature, submit a request at "},"children":[]},{"$$mdtype":"Node","type":"link","inline":true,"attributes":{"href":"http://support.zuora.com/"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Zuora Global Support"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Retrieves information about usage records in a stream without pagination."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"You can specify certain response fields you want to retrieve by sepcifying the "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"fields"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" and "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"filters"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" query parameters. By default, all the reponse fields are returned in the response."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"The value of the "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"filters"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" parameter must be "},"children":[]},{"$$mdtype":"Node","type":"link","inline":true,"attributes":{"href":"https://developer.mozilla.org/en-US/docs/Glossary/percent-encoding"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"URL-encoded"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":". If you want to use a plus sign "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"+"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" in the endpoint URL, you must replace the plus sign "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"+"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" with "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"%2B"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":". For example, if you use "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"/usage/stream-query?filters=(status='Pending' and startDateTime > '2018-04-04T13:32:37+08:00') "},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" in the endpoint URL, an error occurs. You have to use "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"/usage/stream-query?filters=(status='Pending' and startDateTime > '2018-04-04T13:32:37%2B08:00') "},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" instead."},"children":[]}]}]}]},{"nodeType":"item-content","variant":"query","label":"Query","labelTranslationKey":"query","parameters":[{"name":"fields","in":"query","schemaId":"schema_0","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"The fields of the usage records you want to retrieve. By default, all the fields in the "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Responses"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" section are returned."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Use commas to separate the field names. You can specify any fields described in the "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Responses"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" section. For example: "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"/usage/stream-query?fields=tag,quantity,id,customFields.age"},"children":[]}]}]}]},{"name":"filters","in":"query","schemaId":"schema_0","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"This parameter restricts the data returned in the response. You can use this parameter to supply a dimension you want to filter on."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"A single filter uses the following form:"},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"em","inline":true,"attributes":{"marker":"*"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"field_name"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" "},"children":[]},{"$$mdtype":"Node","type":"em","inline":true,"attributes":{"marker":"*"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"operator"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" "},"children":[]},{"$$mdtype":"Node","type":"em","inline":true,"attributes":{"marker":"*"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"field_value"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Supported operators: "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"="},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"!="},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":">"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"<"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":">="},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"<="},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"IS NULL"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"IS NOT NULL"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"IN"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" (The letters are not case sensitive.)"},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"You can specify any fields, including the custom fields, described in the "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Responses"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" section. Filters can be combined using the "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"AND"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" boolean logic. For example: "},"children":[]},{"$$mdtype":"Node","type":"em","inline":true,"attributes":{"marker":"*"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"field_name"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" "},"children":[]},{"$$mdtype":"Node","type":"em","inline":true,"attributes":{"marker":"*"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"operator"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" "},"children":[]},{"$$mdtype":"Node","type":"em","inline":true,"attributes":{"marker":"*"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"field_value"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" AND "},"children":[]},{"$$mdtype":"Node","type":"em","inline":true,"attributes":{"marker":"*"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"field_name"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" "},"children":[]},{"$$mdtype":"Node","type":"em","inline":true,"attributes":{"marker":"*"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"operator"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" "},"children":[]},{"$$mdtype":"Node","type":"em","inline":true,"attributes":{"marker":"*"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"field_value"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Currently, the fields in filters must include at least one of the following fields: "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"accountNumber"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"unitOfMeasure"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"status"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"uniqueKey"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", and "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"updatedOn"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Examples:"},"children":[]}]}]},{"$$mdtype":"Node","type":"list","attributes":{"ordered":false,"marker":"-"},"children":[{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"/usage/stream-query?filters= (id ='035e35bd-880a-47c9-99df-830143b13aed' AND status='Pending' AND customFields.age=20)"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"/usage/stream-query?fields=tag,id&filters= (quantity > 10 AND unitOfMeasure = 'GB')"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"/usage/stream-query?filters=(status in ('Pending','Rated'))"},"children":[]}]}]}]}]}]}],"pointer":"/paths/~1usage~1stream-query/get/parameters"},{"nodeType":"item-content","variant":"headers","label":"Headers","labelTranslationKey":"header","parameters":[{"name":"Authorization","in":"header","schemaId":"schema_0","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"Bearer {token}"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" for a valid OAuth token."},"children":[]}]}]}],"required":true},{"name":"Zuora-Entity-Ids","in":"header","schemaId":"schema_0","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"An entity ID. If you have "},"children":[]},{"$$mdtype":"Node","type":"link","inline":true,"attributes":{"href":"https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Zuora Multi-entity"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you do not need to set this header."},"children":[]}]}]}]},{"name":"Zuora-Track-Id","in":"header","schemaId":"schema_1","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"The value of this field must use the US-ASCII character set and must not include any of the following characters: colon ("},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":":"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"), semicolon ("},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":";"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"), double quote ("},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"\""},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"), and quote ("},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"'"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":")."},"children":[]}]}]}]}],"pointer":"/paths/~1usage~1stream-query/get/parameters"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"GET","path":"/usage/stream-query","servers":[{"url":"https://rest.zuora.com"}],"parameters":{"path":[],"query":[{"name":"fields","in":"query","required":false,"schemaId":"schema_0"},{"name":"filters","in":"query","required":false,"schemaId":"schema_0"}],"querystring":[],"header":[{"name":"Authorization","in":"header","required":true,"schemaId":"schema_0"},{"name":"Zuora-Entity-Ids","in":"header","required":false,"schemaId":"schema_0"},{"name":"Zuora-Track-Id","in":"header","required":false,"schemaId":"schema_1"}],"cookie":[]},"security":[],"responseCodes":["200","500"],"pointer":"/usage/stream-query","href":"usage-(with-active-rating)/get_usagerecordsstreamquery","openApiOperationId":"GET_UsageRecordsStreamQuery","summary":"Query usage records in stream"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://rest.zuora.com"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"OK","mediaType":"application/json; charset=utf-8","mediaTypes":["application/json; charset=utf-8","application/json"],"mediaTypeContent":{"application/json; charset=utf-8":{"schemaId":"components/schemas/QueryUsageResponseType"},"application/json":{"exampleIds":["paths/~1usage~1stream-query/get/responses/200/content/application~1json/examples/response"]}},"schemaId":"components/schemas/QueryUsageResponseType","headers":{"Zuora-Request-Id":{"description":"The Zuora internal identifier of the API call. You cannot control the value of this header.\n","schema":{"type":"string","minLength":36,"maxLength":36}},"Zuora-Track-Id":{"description":"A custom identifier for tracing the API call. If you specified a tracing identifier in the request headers, Zuora returns the same tracing identifier. Otherwise, Zuora does not set this header.\n","schema":{"type":"string","maxLength":64}}},"headerSchemaId":"schema_2"},{"code":"500","description":"Internal Server Error","mediaType":"application/json; charset=utf-8","mediaTypes":["application/json; charset=utf-8","application/json"],"mediaTypeContent":{"application/json; charset=utf-8":{"schemaId":"components/schemas/CommonUsageErrorResponse"},"application/json":{"exampleIds":["paths/~1usage~1stream-query/get/responses/500/content/application~1json/examples/response"]}},"schemaId":"components/schemas/CommonUsageErrorResponse","headers":{"Zuora-Request-Id":{"description":"The Zuora internal identifier of the API call. You cannot control the value of this header.\n","schema":{"type":"string","minLength":36,"maxLength":36}},"Zuora-Track-Id":{"description":"A custom identifier for tracing the API call. If you specified a tracing identifier in the request headers, Zuora returns the same tracing identifier. Otherwise, Zuora does not set this header.\n","schema":{"type":"string","maxLength":64}}},"headerSchemaId":"schema_2"}],"pointer":"/paths/~1usage~1stream-query/get/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"components/schemas/QueryUsageResponseType","mediaTypes":["application/json; charset=utf-8","application/json"],"mediaTypeContent":{"application/json; charset=utf-8":{"schemaId":"components/schemas/QueryUsageResponseType"},"application/json":{"exampleIds":["paths/~1usage~1stream-query/get/responses/200/content/application~1json/examples/response"]}}},{"code":"500","schemaId":"components/schemas/CommonUsageErrorResponse","mediaTypes":["application/json; charset=utf-8","application/json"],"mediaTypeContent":{"application/json; charset=utf-8":{"schemaId":"components/schemas/CommonUsageErrorResponse"},"application/json":{"exampleIds":["paths/~1usage~1stream-query/get/responses/500/content/application~1json/examples/response"]}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/usage-(with-active-rating)/get_usagerecordsstreamquery"}],"panels":[]}]},"httpPath":"/usage/stream-query"},{"label":"Import usage file","deprecated":false,"httpVerb":"post","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/archive/active-rating/active-rating-api/active-rating-api/usage-(with-active-rating)/post_importusagefile","routeSlug":"/archive/active-rating/active-rating-api/active-rating-api/usage-(with-active-rating)/post_importusagefile","metadata":{"seo":{"title":"Import usage file","description":"Note: This operation is available only if Active Rating is enabled. The Active Rating feature is in development. If you wish to have access to the feature, submit a request at Zuora Global Support."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"POST_ImportUsageFile","name":"Import usage file","isWebhook":false,"pointer":"/paths/~1usage-imports/post","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Import usage file","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Note:"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" This operation is available only if Active Rating is enabled. The Active Rating feature is in development. If you wish to have access to the feature, submit a request at "},"children":[]},{"$$mdtype":"Node","type":"link","inline":true,"attributes":{"href":"http://support.zuora.com/"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Zuora Global Support"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Imports usage data by uploading a usage file."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"A usage file can be in comma-separated value ("},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":".csv"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"), Microsoft Excel ("},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":".xls"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"), or ZIP format. The maximum size of a usage file in CSV, Excel, or ZIP format to be uploaded is 20 MB. If the size of a usage file exceeds 20 MB, zip the usage file before uploading it. One ZIP file can only contain one CSV or Excel file."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"The name of a usage file cannot be longer than 50 characters, including the length of the file name extension."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"For more information about the usage file format, see "},"children":[]},{"$$mdtype":"Node","type":"link","inline":true,"attributes":{"href":"https://knowledgecenter.zuora.com/CB_Billing/J_Billing_Operations/H_Active_Rating/Usage_Data_Import"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Usage Data Import"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]}]},{"nodeType":"item-content","variant":"headers","label":"Headers","labelTranslationKey":"header","parameters":[{"name":"Authorization","in":"header","schemaId":"schema_0","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"Bearer {token}"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" for a valid OAuth token."},"children":[]}]}]}],"required":true},{"name":"Zuora-Entity-Ids","in":"header","schemaId":"schema_0","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"An entity ID. If you have "},"children":[]},{"$$mdtype":"Node","type":"link","inline":true,"attributes":{"href":"https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Zuora Multi-entity"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you do not need to set this header."},"children":[]}]}]}]},{"name":"Zuora-Track-Id","in":"header","schemaId":"schema_1","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"The value of this field must use the US-ASCII character set and must not include any of the following characters: colon ("},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":":"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"), semicolon ("},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":";"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"), double quote ("},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"\""},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"), and quote ("},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"'"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":")."},"children":[]}]}]}]}],"pointer":"/paths/~1usage-imports/post/parameters"},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","required":true,"mediaTypes":["multipart/form-data"],"mediaTypeSchemas":{"multipart/form-data":{"schemaId":"schema_5"}},"schemaId":"schema_5","pointer":"/paths/~1usage-imports/post/requestBody"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"POST","path":"/usage-imports","servers":[{"url":"https://rest.zuora.com"}],"parameters":{"path":[],"query":[],"querystring":[],"header":[{"name":"Authorization","in":"header","required":true,"schemaId":"schema_0"},{"name":"Zuora-Entity-Ids","in":"header","required":false,"schemaId":"schema_0"},{"name":"Zuora-Track-Id","in":"header","required":false,"schemaId":"schema_1"}],"cookie":[]},"security":[],"requestBody":{"multipart/form-data":{"schemaId":"schema_5"}},"responseCodes":["200","400","500"],"pointer":"/usage-imports","href":"usage-(with-active-rating)/post_importusagefile","openApiOperationId":"POST_ImportUsageFile","summary":"Import usage file"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://rest.zuora.com"}],"schemaId":"schema_5","mediaTypes":["multipart/form-data"],"mediaTypeSchemas":{"multipart/form-data":{"schemaId":"schema_5"}},"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"OK","mediaType":"application/json; charset=utf-8","mediaTypes":["application/json; charset=utf-8","application/json"],"mediaTypeContent":{"application/json; charset=utf-8":{"schemaId":"components/schemas/POSTUsageImportResponseType"},"application/json":{"exampleIds":["paths/~1usage-imports/post/responses/200/content/application~1json/examples/response"]}},"schemaId":"components/schemas/POSTUsageImportResponseType","headers":{"Zuora-Request-Id":{"description":"The Zuora internal identifier of the API call. You cannot control the value of this header.\n","schema":{"type":"string","minLength":36,"maxLength":36}},"Zuora-Track-Id":{"description":"A custom identifier for tracing the API call. If you specified a tracing identifier in the request headers, Zuora returns the same tracing identifier. Otherwise, Zuora does not set this header.\n","schema":{"type":"string","maxLength":64}},"Location":{"description":"The URL for your import file. After you have uploaded the file, Zuora assigns the file to this address.\n","schema":{"type":"string","format":"uri"}}},"headerSchemaId":"schema_6"},{"code":"400","description":"Bad Request","mediaType":"application/json; charset=utf-8","mediaTypes":["application/json; charset=utf-8","application/json"],"mediaTypeContent":{"application/json; charset=utf-8":{"schemaId":"components/schemas/CommonUsageImportsErrorResponse"},"application/json":{"exampleIds":["paths/~1usage-imports/post/responses/400/content/application~1json/examples/response"]}},"schemaId":"components/schemas/CommonUsageImportsErrorResponse","headers":{"Zuora-Request-Id":{"description":"The Zuora internal identifier of the API call. You cannot control the value of this header.\n","schema":{"type":"string","minLength":36,"maxLength":36}},"Zuora-Track-Id":{"description":"A custom identifier for tracing the API call. If you specified a tracing identifier in the request headers, Zuora returns the same tracing identifier. Otherwise, Zuora does not set this header.\n","schema":{"type":"string","maxLength":64}}},"headerSchemaId":"schema_2"},{"code":"500","description":"Internal Server Error","mediaType":"application/json; charset=utf-8","mediaTypes":["application/json; charset=utf-8","application/json"],"mediaTypeContent":{"application/json; charset=utf-8":{"schemaId":"components/schemas/CommonUsageImportsErrorResponse"},"application/json":{"exampleIds":["paths/~1usage-imports/post/responses/500/content/application~1json/examples/response"]}},"schemaId":"components/schemas/CommonUsageImportsErrorResponse","headers":{"Zuora-Request-Id":{"description":"The Zuora internal identifier of the API call. You cannot control the value of this header.\n","schema":{"type":"string","minLength":36,"maxLength":36}},"Zuora-Track-Id":{"description":"A custom identifier for tracing the API call. If you specified a tracing identifier in the request headers, Zuora returns the same tracing identifier. Otherwise, Zuora does not set this header.\n","schema":{"type":"string","maxLength":64}}},"headerSchemaId":"schema_2"}],"pointer":"/paths/~1usage-imports/post/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"components/schemas/POSTUsageImportResponseType","mediaTypes":["application/json; charset=utf-8","application/json"],"mediaTypeContent":{"application/json; charset=utf-8":{"schemaId":"components/schemas/POSTUsageImportResponseType"},"application/json":{"exampleIds":["paths/~1usage-imports/post/responses/200/content/application~1json/examples/response"]}}},{"code":"400","schemaId":"components/schemas/CommonUsageImportsErrorResponse","mediaTypes":["application/json; charset=utf-8","application/json"],"mediaTypeContent":{"application/json; charset=utf-8":{"schemaId":"components/schemas/CommonUsageImportsErrorResponse"},"application/json":{"exampleIds":["paths/~1usage-imports/post/responses/400/content/application~1json/examples/response"]}}},{"code":"500","schemaId":"components/schemas/CommonUsageImportsErrorResponse","mediaTypes":["application/json; charset=utf-8","application/json"],"mediaTypeContent":{"application/json; charset=utf-8":{"schemaId":"components/schemas/CommonUsageImportsErrorResponse"},"application/json":{"exampleIds":["paths/~1usage-imports/post/responses/500/content/application~1json/examples/response"]}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/usage-(with-active-rating)/post_importusagefile"}],"panels":[]}]},"httpPath":"/usage-imports"},{"label":"Get usage imports","deprecated":false,"httpVerb":"get","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/archive/active-rating/active-rating-api/active-rating-api/usage-(with-active-rating)/get_usageimports","routeSlug":"/archive/active-rating/active-rating-api/active-rating-api/usage-(with-active-rating)/get_usageimports","metadata":{"seo":{"title":"Get usage imports","description":"Note: This operation is available only if Active Rating is enabled. The Active Rating feature is in development. If you wish to have access to the feature, submit a request at Zuora Global Support."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"GET_UsageImports","name":"Get usage imports","isWebhook":false,"pointer":"/paths/~1usage-imports/get","hasSamples":false},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Get usage imports","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Note:"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" This operation is available only if Active Rating is enabled. The Active Rating feature is in development. If you wish to have access to the feature, submit a request at "},"children":[]},{"$$mdtype":"Node","type":"link","inline":true,"attributes":{"href":"http://support.zuora.com/"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Zuora Global Support"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Retrieves the information about all the usage import files, such as the processing status of the usage import files, the total number of usage records that are validated, and the number of usage records with validation errors."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"The response is in descending order by the date and time of the "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"updatedOn"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" field."},"children":[]}]}]}]},{"nodeType":"item-content","variant":"query","label":"Query","labelTranslationKey":"query","parameters":[{"name":"page","in":"query","schemaId":"schema_3","description":"The index number of the page you want to retrieve. By default, the first page is returned in the response.\n"},{"name":"pageSize","in":"query","schemaId":"schema_4","description":"The maximum number of rows in a page to return in a response.\n"}],"pointer":"/paths/~1usage-imports/get/parameters"},{"nodeType":"item-content","variant":"headers","label":"Headers","labelTranslationKey":"header","parameters":[{"name":"Authorization","in":"header","schemaId":"schema_0","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"Bearer {token}"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" for a valid OAuth token."},"children":[]}]}]}],"required":true},{"name":"Zuora-Entity-Ids","in":"header","schemaId":"schema_0","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"An entity ID. If you have "},"children":[]},{"$$mdtype":"Node","type":"link","inline":true,"attributes":{"href":"https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Zuora Multi-entity"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you do not need to set this header."},"children":[]}]}]}]},{"name":"Zuora-Track-Id","in":"header","schemaId":"schema_1","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"The value of this field must use the US-ASCII character set and must not include any of the following characters: colon ("},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":":"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"), semicolon ("},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":";"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"), double quote ("},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"\""},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"), and quote ("},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"'"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":")."},"children":[]}]}]}]}],"pointer":"/paths/~1usage-imports/get/parameters"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"GET","path":"/usage-imports","servers":[{"url":"https://rest.zuora.com"}],"parameters":{"path":[],"query":[{"name":"page","in":"query","required":false,"schemaId":"schema_3"},{"name":"pageSize","in":"query","required":false,"schemaId":"schema_4"}],"querystring":[],"header":[{"name":"Authorization","in":"header","required":true,"schemaId":"schema_0"},{"name":"Zuora-Entity-Ids","in":"header","required":false,"schemaId":"schema_0"},{"name":"Zuora-Track-Id","in":"header","required":false,"schemaId":"schema_1"}],"cookie":[]},"security":[],"responseCodes":["200","500"],"pointer":"/usage-imports","href":"usage-(with-active-rating)/get_usageimports","openApiOperationId":"GET_UsageImports","summary":"Get usage imports"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://rest.zuora.com"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"OK","mediaType":"application/json; charset=utf-8","mediaTypes":["application/json; charset=utf-8","application/json"],"mediaTypeContent":{"application/json; charset=utf-8":{"schemaId":"components/schemas/UsageImports"},"application/json":{"exampleIds":["paths/~1usage-imports/get/responses/200/content/application~1json/examples/response"]}},"schemaId":"components/schemas/UsageImports","headers":{"Zuora-Request-Id":{"description":"The Zuora internal identifier of the API call. You cannot control the value of this header.\n","schema":{"type":"string","minLength":36,"maxLength":36}},"Zuora-Track-Id":{"description":"A custom identifier for tracing the API call. If you specified a tracing identifier in the request headers, Zuora returns the same tracing identifier. Otherwise, Zuora does not set this header.\n","schema":{"type":"string","maxLength":64}}},"headerSchemaId":"schema_2"},{"code":"500","description":"Internal Server Error","mediaType":"application/json; charset=utf-8","mediaTypes":["application/json; charset=utf-8","application/json"],"mediaTypeContent":{"application/json; charset=utf-8":{"schemaId":"components/schemas/CommonUsageImportsErrorResponse"},"application/json":{"exampleIds":["paths/~1usage-imports/get/responses/500/content/application~1json/examples/response"]}},"schemaId":"components/schemas/CommonUsageImportsErrorResponse","headers":{"Zuora-Request-Id":{"description":"The Zuora internal identifier of the API call. You cannot control the value of this header.\n","schema":{"type":"string","minLength":36,"maxLength":36}},"Zuora-Track-Id":{"description":"A custom identifier for tracing the API call. If you specified a tracing identifier in the request headers, Zuora returns the same tracing identifier. Otherwise, Zuora does not set this header.\n","schema":{"type":"string","maxLength":64}}},"headerSchemaId":"schema_2"}],"pointer":"/paths/~1usage-imports/get/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"components/schemas/UsageImports","mediaTypes":["application/json; charset=utf-8","application/json"],"mediaTypeContent":{"application/json; charset=utf-8":{"schemaId":"components/schemas/UsageImports"},"application/json":{"exampleIds":["paths/~1usage-imports/get/responses/200/content/application~1json/examples/response"]}}},{"code":"500","schemaId":"components/schemas/CommonUsageImportsErrorResponse","mediaTypes":["application/json; charset=utf-8","application/json"],"mediaTypeContent":{"application/json; charset=utf-8":{"schemaId":"components/schemas/CommonUsageImportsErrorResponse"},"application/json":{"exampleIds":["paths/~1usage-imports/get/responses/500/content/application~1json/examples/response"]}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/usage-(with-active-rating)/get_usageimports"}],"panels":[]}]},"httpPath":"/usage-imports"},{"label":"Get details of usage import","deprecated":false,"httpVerb":"get","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/archive/active-rating/active-rating-api/active-rating-api/usage-(with-active-rating)/get_usageimportdetails","routeSlug":"/archive/active-rating/active-rating-api/active-rating-api/usage-(with-active-rating)/get_usageimportdetails","metadata":{"seo":{"title":"Get details of usage import","description":"Note: This operation is available only if Active Rating is enabled. The Active Rating feature is in development. If you wish to have access to the feature, submit a request at Zuora Global Support."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"GET_UsageImportDetails","name":"Get details of usage import","isWebhook":false,"pointer":"/paths/~1usage-imports~1{id}~1detail/get","hasSamples":false},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Get details of usage import","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Note:"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" This operation is available only if Active Rating is enabled. The Active Rating feature is in development. If you wish to have access to the feature, submit a request at "},"children":[]},{"$$mdtype":"Node","type":"link","inline":true,"attributes":{"href":"http://support.zuora.com/"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Zuora Global Support"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Retrieves the detailed information about a specified usage import file."},"children":[]}]}]}]},{"nodeType":"item-content","variant":"path","label":"Path","labelTranslationKey":"path","parameters":[{"name":"id","in":"path","schemaId":"schema_0","description":"The ID of the usage import.\n","required":true}],"pointer":"/paths/~1usage-imports~1{id}~1detail/get/parameters"},{"nodeType":"item-content","variant":"headers","label":"Headers","labelTranslationKey":"header","parameters":[{"name":"Authorization","in":"header","schemaId":"schema_0","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"Bearer {token}"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" for a valid OAuth token."},"children":[]}]}]}],"required":true},{"name":"Zuora-Entity-Ids","in":"header","schemaId":"schema_0","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"An entity ID. If you have "},"children":[]},{"$$mdtype":"Node","type":"link","inline":true,"attributes":{"href":"https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Zuora Multi-entity"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you do not need to set this header."},"children":[]}]}]}]},{"name":"Zuora-Track-Id","in":"header","schemaId":"schema_1","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"The value of this field must use the US-ASCII character set and must not include any of the following characters: colon ("},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":":"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"), semicolon ("},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":";"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"), double quote ("},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"\""},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"), and quote ("},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"'"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":")."},"children":[]}]}]}]}],"pointer":"/paths/~1usage-imports~1{id}~1detail/get/parameters"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"GET","path":"/usage-imports/{id}/detail","servers":[{"url":"https://rest.zuora.com"}],"parameters":{"path":[{"name":"id","in":"path","required":true,"schemaId":"schema_0"}],"query":[],"querystring":[],"header":[{"name":"Authorization","in":"header","required":true,"schemaId":"schema_0"},{"name":"Zuora-Entity-Ids","in":"header","required":false,"schemaId":"schema_0"},{"name":"Zuora-Track-Id","in":"header","required":false,"schemaId":"schema_1"}],"cookie":[]},"security":[],"responseCodes":["200","404","500"],"pointer":"/usage-imports/{id}/detail","href":"usage-(with-active-rating)/get_usageimportdetails","openApiOperationId":"GET_UsageImportDetails","summary":"Get details of usage import"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://rest.zuora.com"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"OK","mediaType":"application/json; charset=utf-8","mediaTypes":["application/json; charset=utf-8","application/json"],"mediaTypeContent":{"application/json; charset=utf-8":{"schemaId":"components/schemas/GetUsageDetailResponseType"},"application/json":{"exampleIds":["paths/~1usage-imports~1{id}~1detail/get/responses/200/content/application~1json/examples/response"]}},"schemaId":"components/schemas/GetUsageDetailResponseType","headers":{"Zuora-Request-Id":{"description":"The Zuora internal identifier of the API call. You cannot control the value of this header.\n","schema":{"type":"string","minLength":36,"maxLength":36}},"Zuora-Track-Id":{"description":"A custom identifier for tracing the API call. If you specified a tracing identifier in the request headers, Zuora returns the same tracing identifier. Otherwise, Zuora does not set this header.\n","schema":{"type":"string","maxLength":64}}},"headerSchemaId":"schema_2"},{"code":"404","description":"Not Found","mediaType":"application/json; charset=utf-8","mediaTypes":["application/json; charset=utf-8","application/json"],"mediaTypeContent":{"application/json; charset=utf-8":{"schemaId":"components/schemas/CommonUsageImportsErrorResponse"},"application/json":{"exampleIds":["paths/~1usage-imports~1{id}~1detail/get/responses/404/content/application~1json/examples/response"]}},"schemaId":"components/schemas/CommonUsageImportsErrorResponse","headers":{"Zuora-Request-Id":{"description":"The Zuora internal identifier of the API call. You cannot control the value of this header.\n","schema":{"type":"string","minLength":36,"maxLength":36}},"Zuora-Track-Id":{"description":"A custom identifier for tracing the API call. If you specified a tracing identifier in the request headers, Zuora returns the same tracing identifier. Otherwise, Zuora does not set this header.\n","schema":{"type":"string","maxLength":64}}},"headerSchemaId":"schema_2"},{"code":"500","description":"Internal Server Error","mediaType":"application/json; charset=utf-8","mediaTypes":["application/json; charset=utf-8","application/json"],"mediaTypeContent":{"application/json; charset=utf-8":{"schemaId":"components/schemas/CommonUsageImportsErrorResponse"},"application/json":{"exampleIds":["paths/~1usage-imports~1{id}~1detail/get/responses/500/content/application~1json/examples/response"]}},"schemaId":"components/schemas/CommonUsageImportsErrorResponse","headers":{"Zuora-Request-Id":{"description":"The Zuora internal identifier of the API call. You cannot control the value of this header.\n","schema":{"type":"string","minLength":36,"maxLength":36}},"Zuora-Track-Id":{"description":"A custom identifier for tracing the API call. If you specified a tracing identifier in the request headers, Zuora returns the same tracing identifier. Otherwise, Zuora does not set this header.\n","schema":{"type":"string","maxLength":64}}},"headerSchemaId":"schema_2"}],"pointer":"/paths/~1usage-imports~1{id}~1detail/get/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"components/schemas/GetUsageDetailResponseType","mediaTypes":["application/json; charset=utf-8","application/json"],"mediaTypeContent":{"application/json; charset=utf-8":{"schemaId":"components/schemas/GetUsageDetailResponseType"},"application/json":{"exampleIds":["paths/~1usage-imports~1{id}~1detail/get/responses/200/content/application~1json/examples/response"]}}},{"code":"404","schemaId":"components/schemas/CommonUsageImportsErrorResponse","mediaTypes":["application/json; charset=utf-8","application/json"],"mediaTypeContent":{"application/json; charset=utf-8":{"schemaId":"components/schemas/CommonUsageImportsErrorResponse"},"application/json":{"exampleIds":["paths/~1usage-imports~1{id}~1detail/get/responses/404/content/application~1json/examples/response"]}}},{"code":"500","schemaId":"components/schemas/CommonUsageImportsErrorResponse","mediaTypes":["application/json; charset=utf-8","application/json"],"mediaTypeContent":{"application/json; charset=utf-8":{"schemaId":"components/schemas/CommonUsageImportsErrorResponse"},"application/json":{"exampleIds":["paths/~1usage-imports~1{id}~1detail/get/responses/500/content/application~1json/examples/response"]}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/usage-(with-active-rating)/get_usageimportdetails"}],"panels":[]}]},"httpPath":"/usage-imports/{id}/detail"},{"label":"Get status of usage import","deprecated":false,"httpVerb":"get","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/archive/active-rating/active-rating-api/active-rating-api/usage-(with-active-rating)/get_usageimportstatus","routeSlug":"/archive/active-rating/active-rating-api/active-rating-api/usage-(with-active-rating)/get_usageimportstatus","metadata":{"seo":{"title":"Get status of usage import","description":"Note: This operation is available only if Active Rating is enabled. The Active Rating feature is in development. If you wish to have access to the feature, submit a request at Zuora Global Support."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"GET_UsageImportStatus","name":"Get status of usage import","isWebhook":false,"pointer":"/paths/~1usage-imports~1{id}~1status/get","hasSamples":false},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Get status of usage import","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Note:"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" This operation is available only if Active Rating is enabled. The Active Rating feature is in development. If you wish to have access to the feature, submit a request at "},"children":[]},{"$$mdtype":"Node","type":"link","inline":true,"attributes":{"href":"http://support.zuora.com/"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Zuora Global Support"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Retrieves the processing status of a specified usage import file."},"children":[]}]}]}]},{"nodeType":"item-content","variant":"path","label":"Path","labelTranslationKey":"path","parameters":[{"name":"id","in":"path","schemaId":"schema_0","description":"The ID of the usage import.\n","required":true}],"pointer":"/paths/~1usage-imports~1{id}~1status/get/parameters"},{"nodeType":"item-content","variant":"headers","label":"Headers","labelTranslationKey":"header","parameters":[{"name":"Authorization","in":"header","schemaId":"schema_0","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"Bearer {token}"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" for a valid OAuth token."},"children":[]}]}]}],"required":true},{"name":"Zuora-Entity-Ids","in":"header","schemaId":"schema_0","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"An entity ID. If you have "},"children":[]},{"$$mdtype":"Node","type":"link","inline":true,"attributes":{"href":"https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Zuora Multi-entity"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you do not need to set this header."},"children":[]}]}]}]},{"name":"Zuora-Track-Id","in":"header","schemaId":"schema_1","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"The value of this field must use the US-ASCII character set and must not include any of the following characters: colon ("},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":":"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"), semicolon ("},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":";"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"), double quote ("},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"\""},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"), and quote ("},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"'"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":")."},"children":[]}]}]}]}],"pointer":"/paths/~1usage-imports~1{id}~1status/get/parameters"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"GET","path":"/usage-imports/{id}/status","servers":[{"url":"https://rest.zuora.com"}],"parameters":{"path":[{"name":"id","in":"path","required":true,"schemaId":"schema_0"}],"query":[],"querystring":[],"header":[{"name":"Authorization","in":"header","required":true,"schemaId":"schema_0"},{"name":"Zuora-Entity-Ids","in":"header","required":false,"schemaId":"schema_0"},{"name":"Zuora-Track-Id","in":"header","required":false,"schemaId":"schema_1"}],"cookie":[]},"security":[],"responseCodes":["200","404","500"],"pointer":"/usage-imports/{id}/status","href":"usage-(with-active-rating)/get_usageimportstatus","openApiOperationId":"GET_UsageImportStatus","summary":"Get status of usage import"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://rest.zuora.com"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"OK","mediaType":"application/json; charset=utf-8","mediaTypes":["application/json; charset=utf-8","application/json"],"mediaTypeContent":{"application/json; charset=utf-8":{"schemaId":"components/schemas/GETUsageImportStatusResponseType"},"application/json":{"exampleIds":["paths/~1usage-imports~1{id}~1status/get/responses/200/content/application~1json/examples/response"]}},"schemaId":"components/schemas/GETUsageImportStatusResponseType","headers":{"Zuora-Request-Id":{"description":"The Zuora internal identifier of the API call. You cannot control the value of this header.\n","schema":{"type":"string","minLength":36,"maxLength":36}},"Zuora-Track-Id":{"description":"A custom identifier for tracing the API call. If you specified a tracing identifier in the request headers, Zuora returns the same tracing identifier. Otherwise, Zuora does not set this header.\n","schema":{"type":"string","maxLength":64}}},"headerSchemaId":"schema_2"},{"code":"404","description":"Not Found","mediaType":"application/json; charset=utf-8","mediaTypes":["application/json; charset=utf-8","application/json"],"mediaTypeContent":{"application/json; charset=utf-8":{"schemaId":"components/schemas/CommonUsageImportsErrorResponse"},"application/json":{"exampleIds":["paths/~1usage-imports~1{id}~1status/get/responses/404/content/application~1json/examples/response"]}},"schemaId":"components/schemas/CommonUsageImportsErrorResponse","headers":{"Zuora-Request-Id":{"description":"The Zuora internal identifier of the API call. You cannot control the value of this header.\n","schema":{"type":"string","minLength":36,"maxLength":36}},"Zuora-Track-Id":{"description":"A custom identifier for tracing the API call. If you specified a tracing identifier in the request headers, Zuora returns the same tracing identifier. Otherwise, Zuora does not set this header.\n","schema":{"type":"string","maxLength":64}}},"headerSchemaId":"schema_2"},{"code":"500","description":"Internal Server Error","mediaType":"application/json; charset=utf-8","mediaTypes":["application/json; charset=utf-8","application/json"],"mediaTypeContent":{"application/json; charset=utf-8":{"schemaId":"components/schemas/CommonUsageImportsErrorResponse"},"application/json":{"exampleIds":["paths/~1usage-imports~1{id}~1status/get/responses/500/content/application~1json/examples/response"]}},"schemaId":"components/schemas/CommonUsageImportsErrorResponse","headers":{"Zuora-Request-Id":{"description":"The Zuora internal identifier of the API call. You cannot control the value of this header.\n","schema":{"type":"string","minLength":36,"maxLength":36}},"Zuora-Track-Id":{"description":"A custom identifier for tracing the API call. If you specified a tracing identifier in the request headers, Zuora returns the same tracing identifier. Otherwise, Zuora does not set this header.\n","schema":{"type":"string","maxLength":64}}},"headerSchemaId":"schema_2"}],"pointer":"/paths/~1usage-imports~1{id}~1status/get/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"components/schemas/GETUsageImportStatusResponseType","mediaTypes":["application/json; charset=utf-8","application/json"],"mediaTypeContent":{"application/json; charset=utf-8":{"schemaId":"components/schemas/GETUsageImportStatusResponseType"},"application/json":{"exampleIds":["paths/~1usage-imports~1{id}~1status/get/responses/200/content/application~1json/examples/response"]}}},{"code":"404","schemaId":"components/schemas/CommonUsageImportsErrorResponse","mediaTypes":["application/json; charset=utf-8","application/json"],"mediaTypeContent":{"application/json; charset=utf-8":{"schemaId":"components/schemas/CommonUsageImportsErrorResponse"},"application/json":{"exampleIds":["paths/~1usage-imports~1{id}~1status/get/responses/404/content/application~1json/examples/response"]}}},{"code":"500","schemaId":"components/schemas/CommonUsageImportsErrorResponse","mediaTypes":["application/json; charset=utf-8","application/json"],"mediaTypeContent":{"application/json; charset=utf-8":{"schemaId":"components/schemas/CommonUsageImportsErrorResponse"},"application/json":{"exampleIds":["paths/~1usage-imports~1{id}~1status/get/responses/500/content/application~1json/examples/response"]}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/usage-(with-active-rating)/get_usageimportstatus"}],"panels":[]}]},"httpPath":"/usage-imports/{id}/status"},{"label":"Download usage import file","deprecated":false,"httpVerb":"get","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/archive/active-rating/active-rating-api/active-rating-api/usage-(with-active-rating)/get_downloadusageimportfile","routeSlug":"/archive/active-rating/active-rating-api/active-rating-api/usage-(with-active-rating)/get_downloadusageimportfile","metadata":{"seo":{"title":"Download usage import file","description":"Note: This operation is available only if Active Rating is enabled. The Active Rating feature is in development. If you wish to have access to the feature, submit a request at Zuora Global Support."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"GET_DownloadUsageImportFile","name":"Download usage import file","isWebhook":false,"pointer":"/paths/~1usage-imports~1{id}~1import-file/get","hasSamples":false},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Download usage import file","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Note:"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" This operation is available only if Active Rating is enabled. The Active Rating feature is in development. If you wish to have access to the feature, submit a request at "},"children":[]},{"$$mdtype":"Node","type":"link","inline":true,"attributes":{"href":"http://support.zuora.com/"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Zuora Global Support"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Downloads a usage import file with the specified usage import ID."},"children":[]}]}]}]},{"nodeType":"item-content","variant":"path","label":"Path","labelTranslationKey":"path","parameters":[{"name":"id","in":"path","schemaId":"schema_0","description":"The ID of the usage import.\n","required":true}],"pointer":"/paths/~1usage-imports~1{id}~1import-file/get/parameters"},{"nodeType":"item-content","variant":"headers","label":"Headers","labelTranslationKey":"header","parameters":[{"name":"Authorization","in":"header","schemaId":"schema_0","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"Bearer {token}"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" for a valid OAuth token."},"children":[]}]}]}],"required":true},{"name":"Zuora-Entity-Ids","in":"header","schemaId":"schema_0","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"An entity ID. If you have "},"children":[]},{"$$mdtype":"Node","type":"link","inline":true,"attributes":{"href":"https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Zuora Multi-entity"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you do not need to set this header."},"children":[]}]}]}]},{"name":"Zuora-Track-Id","in":"header","schemaId":"schema_1","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"The value of this field must use the US-ASCII character set and must not include any of the following characters: colon ("},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":":"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"), semicolon ("},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":";"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"), double quote ("},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"\""},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"), and quote ("},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"'"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":")."},"children":[]}]}]}]}],"pointer":"/paths/~1usage-imports~1{id}~1import-file/get/parameters"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"GET","path":"/usage-imports/{id}/import-file","servers":[{"url":"https://rest.zuora.com"}],"parameters":{"path":[{"name":"id","in":"path","required":true,"schemaId":"schema_0"}],"query":[],"querystring":[],"header":[{"name":"Authorization","in":"header","required":true,"schemaId":"schema_0"},{"name":"Zuora-Entity-Ids","in":"header","required":false,"schemaId":"schema_0"},{"name":"Zuora-Track-Id","in":"header","required":false,"schemaId":"schema_1"}],"cookie":[]},"security":[],"responseCodes":["200","404","500"],"pointer":"/usage-imports/{id}/import-file","href":"usage-(with-active-rating)/get_downloadusageimportfile","openApiOperationId":"GET_DownloadUsageImportFile","summary":"Download usage import file"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://rest.zuora.com"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"OK","headers":{"Zuora-Request-Id":{"description":"The Zuora internal identifier of the API call. You cannot control the value of this header.\n","schema":{"type":"string","minLength":36,"maxLength":36}},"Zuora-Track-Id":{"description":"A custom identifier for tracing the API call. If you specified a tracing identifier in the request headers, Zuora returns the same tracing identifier. Otherwise, Zuora does not set this header.\n","schema":{"type":"string","maxLength":64}}},"headerSchemaId":"schema_2"},{"code":"404","description":"Not Found","mediaType":"application/octet-stream","mediaTypes":["application/octet-stream","application/json"],"mediaTypeContent":{"application/octet-stream":{"schemaId":"components/schemas/CommonUsageImportsErrorResponse"},"application/json":{"exampleIds":["paths/~1usage-imports~1{id}~1import-file/get/responses/404/content/application~1json/examples/response"]}},"schemaId":"components/schemas/CommonUsageImportsErrorResponse","headers":{"Zuora-Request-Id":{"description":"The Zuora internal identifier of the API call. You cannot control the value of this header.\n","schema":{"type":"string","minLength":36,"maxLength":36}},"Zuora-Track-Id":{"description":"A custom identifier for tracing the API call. If you specified a tracing identifier in the request headers, Zuora returns the same tracing identifier. Otherwise, Zuora does not set this header.\n","schema":{"type":"string","maxLength":64}}},"headerSchemaId":"schema_2"},{"code":"500","description":"Internal Server Error","mediaType":"application/octet-stream","mediaTypes":["application/octet-stream","application/json"],"mediaTypeContent":{"application/octet-stream":{"schemaId":"components/schemas/CommonUsageImportsErrorResponse"},"application/json":{"exampleIds":["paths/~1usage-imports~1{id}~1import-file/get/responses/500/content/application~1json/examples/response"]}},"schemaId":"components/schemas/CommonUsageImportsErrorResponse","headers":{"Zuora-Request-Id":{"description":"The Zuora internal identifier of the API call. You cannot control the value of this header.\n","schema":{"type":"string","minLength":36,"maxLength":36}},"Zuora-Track-Id":{"description":"A custom identifier for tracing the API call. If you specified a tracing identifier in the request headers, Zuora returns the same tracing identifier. Otherwise, Zuora does not set this header.\n","schema":{"type":"string","maxLength":64}}},"headerSchemaId":"schema_2"}],"pointer":"/paths/~1usage-imports~1{id}~1import-file/get/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200"},{"code":"404","schemaId":"components/schemas/CommonUsageImportsErrorResponse","mediaTypes":["application/octet-stream","application/json"],"mediaTypeContent":{"application/octet-stream":{"schemaId":"components/schemas/CommonUsageImportsErrorResponse"},"application/json":{"exampleIds":["paths/~1usage-imports~1{id}~1import-file/get/responses/404/content/application~1json/examples/response"]}}},{"code":"500","schemaId":"components/schemas/CommonUsageImportsErrorResponse","mediaTypes":["application/octet-stream","application/json"],"mediaTypeContent":{"application/octet-stream":{"schemaId":"components/schemas/CommonUsageImportsErrorResponse"},"application/json":{"exampleIds":["paths/~1usage-imports~1{id}~1import-file/get/responses/500/content/application~1json/examples/response"]}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/usage-(with-active-rating)/get_downloadusageimportfile"}],"panels":[]}]},"httpPath":"/usage-imports/{id}/import-file"},{"label":"Download usage import failure file","deprecated":false,"httpVerb":"get","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/archive/active-rating/active-rating-api/active-rating-api/usage-(with-active-rating)/get_downloadusageimportfailurefile","routeSlug":"/archive/active-rating/active-rating-api/active-rating-api/usage-(with-active-rating)/get_downloadusageimportfailurefile","metadata":{"seo":{"title":"Download usage import failure file","description":"Note: This operation is available only if Active Rating is enabled. The Active Rating feature is in development. If you wish to have access to the feature, submit a request at Zuora Global Support."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"GET_DownloadUsageImportFailureFile","name":"Download usage import failure file","isWebhook":false,"pointer":"/paths/~1usage-imports~1{id}~1errors/get","hasSamples":false},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Download usage import failure file","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Note:"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" This operation is available only if Active Rating is enabled. The Active Rating feature is in development. If you wish to have access to the feature, submit a request at "},"children":[]},{"$$mdtype":"Node","type":"link","inline":true,"attributes":{"href":"http://support.zuora.com/"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Zuora Global Support"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Downloads the corresponding usage import failure file when a usage file fails to be imported. Usage import failure files are only available for usage import files in VALIDATED_FAILED status."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"The downloaded usage import failure file is in ZIP format, and contains the error information about each usage record failing to be imported."},"children":[]}]}]}]},{"nodeType":"item-content","variant":"path","label":"Path","labelTranslationKey":"path","parameters":[{"name":"id","in":"path","schemaId":"schema_0","description":"The ID of the usage import.\n","required":true}],"pointer":"/paths/~1usage-imports~1{id}~1errors/get/parameters"},{"nodeType":"item-content","variant":"headers","label":"Headers","labelTranslationKey":"header","parameters":[{"name":"Authorization","in":"header","schemaId":"schema_0","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"Bearer {token}"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" for a valid OAuth token."},"children":[]}]}]}],"required":true},{"name":"Zuora-Entity-Ids","in":"header","schemaId":"schema_0","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"An entity ID. If you have "},"children":[]},{"$$mdtype":"Node","type":"link","inline":true,"attributes":{"href":"https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Zuora Multi-entity"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you do not need to set this header."},"children":[]}]}]}]},{"name":"Zuora-Track-Id","in":"header","schemaId":"schema_1","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"The value of this field must use the US-ASCII character set and must not include any of the following characters: colon ("},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":":"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"), semicolon ("},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":";"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"), double quote ("},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"\""},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"), and quote ("},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"'"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":")."},"children":[]}]}]}]}],"pointer":"/paths/~1usage-imports~1{id}~1errors/get/parameters"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"GET","path":"/usage-imports/{id}/errors","servers":[{"url":"https://rest.zuora.com"}],"parameters":{"path":[{"name":"id","in":"path","required":true,"schemaId":"schema_0"}],"query":[],"querystring":[],"header":[{"name":"Authorization","in":"header","required":true,"schemaId":"schema_0"},{"name":"Zuora-Entity-Ids","in":"header","required":false,"schemaId":"schema_0"},{"name":"Zuora-Track-Id","in":"header","required":false,"schemaId":"schema_1"}],"cookie":[]},"security":[],"responseCodes":["200","404","500"],"pointer":"/usage-imports/{id}/errors","href":"usage-(with-active-rating)/get_downloadusageimportfailurefile","openApiOperationId":"GET_DownloadUsageImportFailureFile","summary":"Download usage import failure file"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://rest.zuora.com"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"OK","headers":{"Zuora-Request-Id":{"description":"The Zuora internal identifier of the API call. You cannot control the value of this header.\n","schema":{"type":"string","minLength":36,"maxLength":36}},"Zuora-Track-Id":{"description":"A custom identifier for tracing the API call. If you specified a tracing identifier in the request headers, Zuora returns the same tracing identifier. Otherwise, Zuora does not set this header.\n","schema":{"type":"string","maxLength":64}}},"headerSchemaId":"schema_2"},{"code":"404","description":"Not Found","mediaType":"application/octet-stream","mediaTypes":["application/octet-stream","application/json"],"mediaTypeContent":{"application/octet-stream":{"schemaId":"components/schemas/CommonUsageImportsErrorResponse"},"application/json":{"exampleIds":["paths/~1usage-imports~1{id}~1errors/get/responses/404/content/application~1json/examples/response"]}},"schemaId":"components/schemas/CommonUsageImportsErrorResponse","headers":{"Zuora-Request-Id":{"description":"The Zuora internal identifier of the API call. You cannot control the value of this header.\n","schema":{"type":"string","minLength":36,"maxLength":36}},"Zuora-Track-Id":{"description":"A custom identifier for tracing the API call. If you specified a tracing identifier in the request headers, Zuora returns the same tracing identifier. Otherwise, Zuora does not set this header.\n","schema":{"type":"string","maxLength":64}}},"headerSchemaId":"schema_2"},{"code":"500","description":"Internal Server Error","mediaType":"application/octet-stream","mediaTypes":["application/octet-stream","application/json"],"mediaTypeContent":{"application/octet-stream":{"schemaId":"components/schemas/CommonUsageImportsErrorResponse"},"application/json":{"exampleIds":["paths/~1usage-imports~1{id}~1errors/get/responses/500/content/application~1json/examples/response"]}},"schemaId":"components/schemas/CommonUsageImportsErrorResponse","headers":{"Zuora-Request-Id":{"description":"The Zuora internal identifier of the API call. You cannot control the value of this header.\n","schema":{"type":"string","minLength":36,"maxLength":36}},"Zuora-Track-Id":{"description":"A custom identifier for tracing the API call. If you specified a tracing identifier in the request headers, Zuora returns the same tracing identifier. Otherwise, Zuora does not set this header.\n","schema":{"type":"string","maxLength":64}}},"headerSchemaId":"schema_2"}],"pointer":"/paths/~1usage-imports~1{id}~1errors/get/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200"},{"code":"404","schemaId":"components/schemas/CommonUsageImportsErrorResponse","mediaTypes":["application/octet-stream","application/json"],"mediaTypeContent":{"application/octet-stream":{"schemaId":"components/schemas/CommonUsageImportsErrorResponse"},"application/json":{"exampleIds":["paths/~1usage-imports~1{id}~1errors/get/responses/404/content/application~1json/examples/response"]}}},{"code":"500","schemaId":"components/schemas/CommonUsageImportsErrorResponse","mediaTypes":["application/octet-stream","application/json"],"mediaTypeContent":{"application/octet-stream":{"schemaId":"components/schemas/CommonUsageImportsErrorResponse"},"application/json":{"exampleIds":["paths/~1usage-imports~1{id}~1errors/get/responses/500/content/application~1json/examples/response"]}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/usage-(with-active-rating)/get_downloadusageimportfailurefile"}],"panels":[]}]},"httpPath":"/usage-imports/{id}/errors"},{"label":"Download usage file template","deprecated":false,"httpVerb":"get","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/archive/active-rating/active-rating-api/active-rating-api/usage-(with-active-rating)/get_downloadusagefiletemplate","routeSlug":"/archive/active-rating/active-rating-api/active-rating-api/usage-(with-active-rating)/get_downloadusagefiletemplate","metadata":{"seo":{"title":"Download usage file template","description":"Note: This operation is available only if Active Rating is enabled. The Active Rating feature is in development. If you wish to have access to the feature, submit a request at Zuora Global Support."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"GET_DownloadUsageFileTemplate","name":"Download usage file template","isWebhook":false,"pointer":"/paths/~1usage-imports~1templates~1{fileType}/get","hasSamples":false},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Download usage file template","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Note:"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" This operation is available only if Active Rating is enabled. The Active Rating feature is in development. If you wish to have access to the feature, submit a request at "},"children":[]},{"$$mdtype":"Node","type":"link","inline":true,"attributes":{"href":"http://support.zuora.com/"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Zuora Global Support"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Downloads a usage file template. The usage file template can be in comma-separated value ("},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":".csv"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":") or Microsoft Excel ("},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":".xls"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":") format."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"After the template is downloaded, you can create a usage file based on the template and add usage records to the file."},"children":[]}]}]}]},{"nodeType":"item-content","variant":"path","label":"Path","labelTranslationKey":"path","parameters":[{"name":"fileType","in":"path","schemaId":"schema_7","description":"The type of the usage file template to be downladed.\n","required":true}],"pointer":"/paths/~1usage-imports~1templates~1{fileType}/get/parameters"},{"nodeType":"item-content","variant":"headers","label":"Headers","labelTranslationKey":"header","parameters":[{"name":"Authorization","in":"header","schemaId":"schema_0","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"Bearer {token}"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" for a valid OAuth token."},"children":[]}]}]}],"required":true},{"name":"Zuora-Entity-Ids","in":"header","schemaId":"schema_0","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"An entity ID. If you have "},"children":[]},{"$$mdtype":"Node","type":"link","inline":true,"attributes":{"href":"https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Zuora Multi-entity"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you do not need to set this header."},"children":[]}]}]}]},{"name":"Zuora-Track-Id","in":"header","schemaId":"schema_1","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"The value of this field must use the US-ASCII character set and must not include any of the following characters: colon ("},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":":"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"), semicolon ("},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":";"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"), double quote ("},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"\""},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"), and quote ("},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"'"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":")."},"children":[]}]}]}]}],"pointer":"/paths/~1usage-imports~1templates~1{fileType}/get/parameters"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"GET","path":"/usage-imports/templates/{fileType}","servers":[{"url":"https://rest.zuora.com"}],"parameters":{"path":[{"name":"fileType","in":"path","required":true,"schemaId":"schema_7"}],"query":[],"querystring":[],"header":[{"name":"Authorization","in":"header","required":true,"schemaId":"schema_0"},{"name":"Zuora-Entity-Ids","in":"header","required":false,"schemaId":"schema_0"},{"name":"Zuora-Track-Id","in":"header","required":false,"schemaId":"schema_1"}],"cookie":[]},"security":[],"responseCodes":["200"],"pointer":"/usage-imports/templates/{fileType}","href":"usage-(with-active-rating)/get_downloadusagefiletemplate","openApiOperationId":"GET_DownloadUsageFileTemplate","summary":"Download usage file template"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://rest.zuora.com"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"OK","headers":{"Zuora-Request-Id":{"description":"The Zuora internal identifier of the API call. You cannot control the value of this header.\n","schema":{"type":"string","minLength":36,"maxLength":36}},"Zuora-Track-Id":{"description":"A custom identifier for tracing the API call. If you specified a tracing identifier in the request headers, Zuora returns the same tracing identifier. Otherwise, Zuora does not set this header.\n","schema":{"type":"string","maxLength":64}}},"headerSchemaId":"schema_2"}],"pointer":"/paths/~1usage-imports~1templates~1{fileType}/get/responses"}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/usage-(with-active-rating)/get_downloadusagefiletemplate"}],"panels":[]}]},"httpPath":"/usage-imports/templates/{fileType}"},{"label":"Get rating results by account","deprecated":false,"httpVerb":"get","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/archive/active-rating/active-rating-api/active-rating-api/usage-(with-active-rating)/get_ratingresultsbyaccount","routeSlug":"/archive/active-rating/active-rating-api/active-rating-api/usage-(with-active-rating)/get_ratingresultsbyaccount","metadata":{"seo":{"title":"Get rating results by account","description":"Note: This operation is available only if Active Rating is enabled. The Active Rating feature is in development. If you wish to have access to the feature, submit a request at Zuora Global Support."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"GET_RatingResultsByAccount","name":"Get rating results by account","isWebhook":false,"pointer":"/paths/~1rating~1rated-results~1account~1{accountNumber}/get","hasSamples":false},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Get rating results by account","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Note:"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" This operation is available only if Active Rating is enabled. The Active Rating feature is in development. If you wish to have access to the feature, submit a request at "},"children":[]},{"$$mdtype":"Node","type":"link","inline":true,"attributes":{"href":"http://support.zuora.com/"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Zuora Global Support"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Retrieves the rating result of all the usage charges associated with the specified customer account. The response returns the rating amount of the charges based on billing period."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"By default, the response data is displayed in descending order by updated time."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"You can specify the date range for which you want to rate in the "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"fromDate"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" and "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"toDate"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" query parameters. For example: /rated-results/account/"},"children":[]},{"$$mdtype":"Node","type":"em","inline":true,"attributes":{"marker":"*"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"accountNumber"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"?fromDate=2016-08-01&toDate=2016-08-21"},"children":[]}]}]}]},{"nodeType":"item-content","variant":"path","label":"Path","labelTranslationKey":"path","parameters":[{"name":"accountNumber","in":"path","schemaId":"schema_0","description":"The account number. For example, A00000001.\n","required":true}],"pointer":"/paths/~1rating~1rated-results~1account~1{accountNumber}/get/parameters"},{"nodeType":"item-content","variant":"query","label":"Query","labelTranslationKey":"query","parameters":[{"name":"fromDate","in":"query","schemaId":"schema_8","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"The start date of the date range for which you want to rate. The date must be in "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"yyyy-mm-dd"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" format. For example, 2007-12-03."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"You can specify this parameter to restrict the data returned in the response. Make sure you specify a valid date in this query parameter:"},"children":[]}]}]},{"$$mdtype":"Node","type":"list","attributes":{"ordered":false,"marker":"-"},"children":[{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"If you only specify the "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"fromDate"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" query parameter but do not specify the "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"toDate"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" query parameter:"},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"endDate"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" > "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"fromDate"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"If you specify both the "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"fromDate"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" and "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"toDate"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" query parameters:"},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"startDate"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" <= "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"toDate"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" and "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"endDate"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" > "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"fromDate"},"children":[]}]}]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"startDate"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" is the start date of the rating result. "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"endDate"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" is the end date of the rating result."},"children":[]}]}]}]},{"name":"toDate","in":"query","schemaId":"schema_8","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"The end date of the date range for which you want to rate. The date must be in "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"yyyy-mm-dd"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" format. For example, 2007-12-03."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"You can specify this parameter to restrict the data returned in the response. Make sure you specify a valid date in this query parameters:"},"children":[]}]}]},{"$$mdtype":"Node","type":"list","attributes":{"ordered":false,"marker":"-"},"children":[{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"If you only specify the "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"toDate"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" query parameter but do not specify the "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"fromDate"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" query parameter:"},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"startDate"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" <= "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"toDate"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"If you specify both the "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"fromDate"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" and "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"toDate"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" query parameters:"},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"startDate"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" <= "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"toDate"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" and "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"endDate"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" > "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"fromDate"},"children":[]}]}]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"startDate"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" is the start date of the rating result. "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"endDate"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" is the end date of the rating result."},"children":[]}]}]}]},{"name":"cursor","in":"query","schemaId":"schema_0","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"The cursor indicator of the data page you want to retrieve. By default, the first page of data is returned in the response. If more data pages are available, the operation returns "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"true"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" in the "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"hasMore"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" response body field. The "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"cursor"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" response body field specifies the cursor indicator of the next page of data. If there is no data after the current page, the value of "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"cursor"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" is "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"null"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]}]},{"name":"pageSize","in":"query","schemaId":"schema_4","description":"The maximum number of rows in a page to return in a response.\n"}],"pointer":"/paths/~1rating~1rated-results~1account~1{accountNumber}/get/parameters"},{"nodeType":"item-content","variant":"headers","label":"Headers","labelTranslationKey":"header","parameters":[{"name":"Authorization","in":"header","schemaId":"schema_0","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"Bearer {token}"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" for a valid OAuth token."},"children":[]}]}]}],"required":true},{"name":"Zuora-Entity-Ids","in":"header","schemaId":"schema_0","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"An entity ID. If you have "},"children":[]},{"$$mdtype":"Node","type":"link","inline":true,"attributes":{"href":"https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Zuora Multi-entity"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you do not need to set this header."},"children":[]}]}]}]},{"name":"Zuora-Track-Id","in":"header","schemaId":"schema_1","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"The value of this field must use the US-ASCII character set and must not include any of the following characters: colon ("},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":":"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"), semicolon ("},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":";"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"), double quote ("},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"\""},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"), and quote ("},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"'"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":")."},"children":[]}]}]}]}],"pointer":"/paths/~1rating~1rated-results~1account~1{accountNumber}/get/parameters"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"GET","path":"/rating/rated-results/account/{accountNumber}","servers":[{"url":"https://rest.zuora.com"}],"parameters":{"path":[{"name":"accountNumber","in":"path","required":true,"schemaId":"schema_0"}],"query":[{"name":"fromDate","in":"query","required":false,"schemaId":"schema_8"},{"name":"toDate","in":"query","required":false,"schemaId":"schema_8"},{"name":"cursor","in":"query","required":false,"schemaId":"schema_0"},{"name":"pageSize","in":"query","required":false,"schemaId":"schema_4"}],"querystring":[],"header":[{"name":"Authorization","in":"header","required":true,"schemaId":"schema_0"},{"name":"Zuora-Entity-Ids","in":"header","required":false,"schemaId":"schema_0"},{"name":"Zuora-Track-Id","in":"header","required":false,"schemaId":"schema_1"}],"cookie":[]},"security":[],"responseCodes":["200","400","404","500"],"pointer":"/rating/rated-results/account/{accountNumber}","href":"usage-(with-active-rating)/get_ratingresultsbyaccount","openApiOperationId":"GET_RatingResultsByAccount","summary":"Get rating results by account"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://rest.zuora.com"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"OK","mediaType":"application/json; charset=utf-8","mediaTypes":["application/json; charset=utf-8","application/json"],"mediaTypeContent":{"application/json; charset=utf-8":{"schemaId":"components/schemas/GetRatedResultsType"},"application/json":{"exampleIds":["paths/~1rating~1rated-results~1account~1{accountNumber}/get/responses/200/content/application~1json/examples/response"]}},"schemaId":"components/schemas/GetRatedResultsType","headers":{"Zuora-Request-Id":{"description":"The Zuora internal identifier of the API call. You cannot control the value of this header.\n","schema":{"type":"string","minLength":36,"maxLength":36}},"Zuora-Track-Id":{"description":"A custom identifier for tracing the API call. If you specified a tracing identifier in the request headers, Zuora returns the same tracing identifier. Otherwise, Zuora does not set this header.\n","schema":{"type":"string","maxLength":64}}},"headerSchemaId":"schema_2"},{"code":"400","description":"Bad Request","mediaType":"application/json; charset=utf-8","mediaTypes":["application/json; charset=utf-8","application/json"],"mediaTypeContent":{"application/json; charset=utf-8":{"schemaId":"components/schemas/CommonRatingErrorResponse"},"application/json":{"exampleIds":["paths/~1rating~1rated-results~1account~1{accountNumber}/get/responses/400/content/application~1json/examples/response"]}},"schemaId":"components/schemas/CommonRatingErrorResponse","headers":{"Zuora-Request-Id":{"description":"The Zuora internal identifier of the API call. You cannot control the value of this header.\n","schema":{"type":"string","minLength":36,"maxLength":36}},"Zuora-Track-Id":{"description":"A custom identifier for tracing the API call. If you specified a tracing identifier in the request headers, Zuora returns the same tracing identifier. Otherwise, Zuora does not set this header.\n","schema":{"type":"string","maxLength":64}}},"headerSchemaId":"schema_2"},{"code":"404","description":"Not Found","mediaType":"application/json; charset=utf-8","mediaTypes":["application/json; charset=utf-8","application/json"],"mediaTypeContent":{"application/json; charset=utf-8":{"schemaId":"components/schemas/CommonRatingErrorResponse"},"application/json":{"exampleIds":["paths/~1rating~1rated-results~1account~1{accountNumber}/get/responses/404/content/application~1json/examples/response"]}},"schemaId":"components/schemas/CommonRatingErrorResponse","headers":{"Zuora-Request-Id":{"description":"The Zuora internal identifier of the API call. You cannot control the value of this header.\n","schema":{"type":"string","minLength":36,"maxLength":36}},"Zuora-Track-Id":{"description":"A custom identifier for tracing the API call. If you specified a tracing identifier in the request headers, Zuora returns the same tracing identifier. Otherwise, Zuora does not set this header.\n","schema":{"type":"string","maxLength":64}}},"headerSchemaId":"schema_2"},{"code":"500","description":"Internal Server Error","mediaType":"application/json; charset=utf-8","mediaTypes":["application/json; charset=utf-8","application/json"],"mediaTypeContent":{"application/json; charset=utf-8":{"schemaId":"components/schemas/CommonRatingErrorResponse"},"application/json":{"exampleIds":["paths/~1rating~1rated-results~1account~1{accountNumber}/get/responses/500/content/application~1json/examples/response"]}},"schemaId":"components/schemas/CommonRatingErrorResponse","headers":{"Zuora-Request-Id":{"description":"The Zuora internal identifier of the API call. You cannot control the value of this header.\n","schema":{"type":"string","minLength":36,"maxLength":36}},"Zuora-Track-Id":{"description":"A custom identifier for tracing the API call. If you specified a tracing identifier in the request headers, Zuora returns the same tracing identifier. Otherwise, Zuora does not set this header.\n","schema":{"type":"string","maxLength":64}}},"headerSchemaId":"schema_2"}],"pointer":"/paths/~1rating~1rated-results~1account~1{accountNumber}/get/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"components/schemas/GetRatedResultsType","mediaTypes":["application/json; charset=utf-8","application/json"],"mediaTypeContent":{"application/json; charset=utf-8":{"schemaId":"components/schemas/GetRatedResultsType"},"application/json":{"exampleIds":["paths/~1rating~1rated-results~1account~1{accountNumber}/get/responses/200/content/application~1json/examples/response"]}}},{"code":"400","schemaId":"components/schemas/CommonRatingErrorResponse","mediaTypes":["application/json; charset=utf-8","application/json"],"mediaTypeContent":{"application/json; charset=utf-8":{"schemaId":"components/schemas/CommonRatingErrorResponse"},"application/json":{"exampleIds":["paths/~1rating~1rated-results~1account~1{accountNumber}/get/responses/400/content/application~1json/examples/response"]}}},{"code":"404","schemaId":"components/schemas/CommonRatingErrorResponse","mediaTypes":["application/json; charset=utf-8","application/json"],"mediaTypeContent":{"application/json; charset=utf-8":{"schemaId":"components/schemas/CommonRatingErrorResponse"},"application/json":{"exampleIds":["paths/~1rating~1rated-results~1account~1{accountNumber}/get/responses/404/content/application~1json/examples/response"]}}},{"code":"500","schemaId":"components/schemas/CommonRatingErrorResponse","mediaTypes":["application/json; charset=utf-8","application/json"],"mediaTypeContent":{"application/json; charset=utf-8":{"schemaId":"components/schemas/CommonRatingErrorResponse"},"application/json":{"exampleIds":["paths/~1rating~1rated-results~1account~1{accountNumber}/get/responses/500/content/application~1json/examples/response"]}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/usage-(with-active-rating)/get_ratingresultsbyaccount"}],"panels":[]}]},"httpPath":"/rating/rated-results/account/{accountNumber}"},{"label":"Get rating results by subscription","deprecated":false,"httpVerb":"get","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/archive/active-rating/active-rating-api/active-rating-api/usage-(with-active-rating)/get_ratingresultsbysubscripiton","routeSlug":"/archive/active-rating/active-rating-api/active-rating-api/usage-(with-active-rating)/get_ratingresultsbysubscripiton","metadata":{"seo":{"title":"Get rating results by subscription","description":"Note: This operation is available only if Active Rating is enabled. The Active Rating feature is in development. If you wish to have access to the feature, submit a request at Zuora Global Support."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"GET_RatingResultsBySubscripiton","name":"Get rating results by subscription","isWebhook":false,"pointer":"/paths/~1rating~1rated-results~1subscription~1{subscriptionNumber}/get","hasSamples":false},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Get rating results by subscription","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Note:"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" This operation is available only if Active Rating is enabled. The Active Rating feature is in development. If you wish to have access to the feature, submit a request at "},"children":[]},{"$$mdtype":"Node","type":"link","inline":true,"attributes":{"href":"http://support.zuora.com/"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Zuora Global Support"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Retrieves the rating result of all the usage charges associated with the specified subscription. The rating is based on billing period."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"You can specify the date range for which you want to rate in the "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"fromDate"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" and "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"toDate"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" query parameters. For example: /rated-results/subscription/"},"children":[]},{"$$mdtype":"Node","type":"em","inline":true,"attributes":{"marker":"*"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"subscriptionNumber"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"?fromDate=2016-08-01&toDate=2016-08-21"},"children":[]}]}]}]},{"nodeType":"item-content","variant":"path","label":"Path","labelTranslationKey":"path","parameters":[{"name":"subscriptionNumber","in":"path","schemaId":"schema_0","description":"The subscription number. For example, A-S00000001.\n","required":true}],"pointer":"/paths/~1rating~1rated-results~1subscription~1{subscriptionNumber}/get/parameters"},{"nodeType":"item-content","variant":"query","label":"Query","labelTranslationKey":"query","parameters":[{"name":"fromDate","in":"query","schemaId":"schema_8","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"The start date of the date range for which you want to rate. The date must be in "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"yyyy-mm-dd"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" format. For example, 2007-12-03."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"You can specify this parameter to restrict the data returned in the response. Make sure you specify a valid date in this query parameter:"},"children":[]}]}]},{"$$mdtype":"Node","type":"list","attributes":{"ordered":false,"marker":"-"},"children":[{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"If you only specify the "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"fromDate"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" query parameter but do not specify the "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"toDate"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" query parameter:"},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"endDate"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" > "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"fromDate"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"If you specify both the "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"fromDate"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" and "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"toDate"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" query parameters:"},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"startDate"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" <= "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"toDate"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" and "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"endDate"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" > "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"fromDate"},"children":[]}]}]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"startDate"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" is the start date of the rating result. "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"endDate"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" is the end date of the rating result."},"children":[]}]}]}]},{"name":"toDate","in":"query","schemaId":"schema_8","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"The end date of the date range for which you want to rate. The date must be in "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"yyyy-mm-dd"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" format. For example, 2007-12-03."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Make sure you specify a valid date in this query parameters:"},"children":[]}]}]},{"$$mdtype":"Node","type":"list","attributes":{"ordered":false,"marker":"-"},"children":[{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"If you only specify the "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"toDate"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" query parameter but do not specify the "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"fromDate"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" query parameter:"},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"startDate"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" <= "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"toDate"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"If you specify both the "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"fromDate"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" and "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"toDate"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" query parameters:"},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"startDate"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" <= "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"toDate"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" and "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"endDate"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" > "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"fromDate"},"children":[]}]}]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"startDate"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" is the start date of the rating result. "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"endDate"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" is the end date of the rating result."},"children":[]}]}]}]},{"name":"cursor","in":"query","schemaId":"schema_0","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"The cursor indicator of the data page you want to retrieve. By default, the first page of data is returned in the response. If more data pages are available, the operation returns "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"true"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" in the "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"hasMore"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" response body field. The "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"cursor"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" response body field specifies the cursor indicator of the next page of data. If there is no data after the current page, the value of "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"cursor"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" is "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"null"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]}]},{"name":"pageSize","in":"query","schemaId":"schema_4","description":"The maximum number of rows in a page to return in a response.\n"}],"pointer":"/paths/~1rating~1rated-results~1subscription~1{subscriptionNumber}/get/parameters"},{"nodeType":"item-content","variant":"headers","label":"Headers","labelTranslationKey":"header","parameters":[{"name":"Authorization","in":"header","schemaId":"schema_0","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"Bearer {token}"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" for a valid OAuth token."},"children":[]}]}]}],"required":true},{"name":"Zuora-Entity-Ids","in":"header","schemaId":"schema_0","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"An entity ID. If you have "},"children":[]},{"$$mdtype":"Node","type":"link","inline":true,"attributes":{"href":"https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Zuora Multi-entity"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you do not need to set this header."},"children":[]}]}]}]},{"name":"Zuora-Track-Id","in":"header","schemaId":"schema_1","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"The value of this field must use the US-ASCII character set and must not include any of the following characters: colon ("},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":":"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"), semicolon ("},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":";"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"), double quote ("},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"\""},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"), and quote ("},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"'"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":")."},"children":[]}]}]}]}],"pointer":"/paths/~1rating~1rated-results~1subscription~1{subscriptionNumber}/get/parameters"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"GET","path":"/rating/rated-results/subscription/{subscriptionNumber}","servers":[{"url":"https://rest.zuora.com"}],"parameters":{"path":[{"name":"subscriptionNumber","in":"path","required":true,"schemaId":"schema_0"}],"query":[{"name":"fromDate","in":"query","required":false,"schemaId":"schema_8"},{"name":"toDate","in":"query","required":false,"schemaId":"schema_8"},{"name":"cursor","in":"query","required":false,"schemaId":"schema_0"},{"name":"pageSize","in":"query","required":false,"schemaId":"schema_4"}],"querystring":[],"header":[{"name":"Authorization","in":"header","required":true,"schemaId":"schema_0"},{"name":"Zuora-Entity-Ids","in":"header","required":false,"schemaId":"schema_0"},{"name":"Zuora-Track-Id","in":"header","required":false,"schemaId":"schema_1"}],"cookie":[]},"security":[],"responseCodes":["200","400","404","500"],"pointer":"/rating/rated-results/subscription/{subscriptionNumber}","href":"usage-(with-active-rating)/get_ratingresultsbysubscripiton","openApiOperationId":"GET_RatingResultsBySubscripiton","summary":"Get rating results by subscription"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://rest.zuora.com"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"OK","mediaType":"application/json; charset=utf-8","mediaTypes":["application/json; charset=utf-8","application/json"],"mediaTypeContent":{"application/json; charset=utf-8":{"schemaId":"components/schemas/GetRatedResultsType"},"application/json":{"exampleIds":["paths/~1rating~1rated-results~1subscription~1{subscriptionNumber}/get/responses/200/content/application~1json/examples/response"]}},"schemaId":"components/schemas/GetRatedResultsType","headers":{"Zuora-Request-Id":{"description":"The Zuora internal identifier of the API call. You cannot control the value of this header.\n","schema":{"type":"string","minLength":36,"maxLength":36}},"Zuora-Track-Id":{"description":"A custom identifier for tracing the API call. If you specified a tracing identifier in the request headers, Zuora returns the same tracing identifier. Otherwise, Zuora does not set this header.\n","schema":{"type":"string","maxLength":64}}},"headerSchemaId":"schema_2"},{"code":"400","description":"Bad Request","mediaType":"application/json; charset=utf-8","mediaTypes":["application/json; charset=utf-8","application/json"],"mediaTypeContent":{"application/json; charset=utf-8":{"schemaId":"components/schemas/CommonRatingErrorResponse"},"application/json":{"exampleIds":["paths/~1rating~1rated-results~1subscription~1{subscriptionNumber}/get/responses/400/content/application~1json/examples/response"]}},"schemaId":"components/schemas/CommonRatingErrorResponse","headers":{"Zuora-Request-Id":{"description":"The Zuora internal identifier of the API call. You cannot control the value of this header.\n","schema":{"type":"string","minLength":36,"maxLength":36}},"Zuora-Track-Id":{"description":"A custom identifier for tracing the API call. If you specified a tracing identifier in the request headers, Zuora returns the same tracing identifier. Otherwise, Zuora does not set this header.\n","schema":{"type":"string","maxLength":64}}},"headerSchemaId":"schema_2"},{"code":"404","description":"Not Found","mediaType":"application/json; charset=utf-8","mediaTypes":["application/json; charset=utf-8","application/json"],"mediaTypeContent":{"application/json; charset=utf-8":{"schemaId":"components/schemas/CommonRatingErrorResponse"},"application/json":{"exampleIds":["paths/~1rating~1rated-results~1subscription~1{subscriptionNumber}/get/responses/404/content/application~1json/examples/response"]}},"schemaId":"components/schemas/CommonRatingErrorResponse","headers":{"Zuora-Request-Id":{"description":"The Zuora internal identifier of the API call. You cannot control the value of this header.\n","schema":{"type":"string","minLength":36,"maxLength":36}},"Zuora-Track-Id":{"description":"A custom identifier for tracing the API call. If you specified a tracing identifier in the request headers, Zuora returns the same tracing identifier. Otherwise, Zuora does not set this header.\n","schema":{"type":"string","maxLength":64}}},"headerSchemaId":"schema_2"},{"code":"500","description":"Internal Server Error","mediaType":"application/json; charset=utf-8","mediaTypes":["application/json; charset=utf-8","application/json"],"mediaTypeContent":{"application/json; charset=utf-8":{"schemaId":"components/schemas/CommonRatingErrorResponse"},"application/json":{"exampleIds":["paths/~1rating~1rated-results~1subscription~1{subscriptionNumber}/get/responses/500/content/application~1json/examples/response"]}},"schemaId":"components/schemas/CommonRatingErrorResponse","headers":{"Zuora-Request-Id":{"description":"The Zuora internal identifier of the API call. You cannot control the value of this header.\n","schema":{"type":"string","minLength":36,"maxLength":36}},"Zuora-Track-Id":{"description":"A custom identifier for tracing the API call. If you specified a tracing identifier in the request headers, Zuora returns the same tracing identifier. Otherwise, Zuora does not set this header.\n","schema":{"type":"string","maxLength":64}}},"headerSchemaId":"schema_2"}],"pointer":"/paths/~1rating~1rated-results~1subscription~1{subscriptionNumber}/get/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"components/schemas/GetRatedResultsType","mediaTypes":["application/json; charset=utf-8","application/json"],"mediaTypeContent":{"application/json; charset=utf-8":{"schemaId":"components/schemas/GetRatedResultsType"},"application/json":{"exampleIds":["paths/~1rating~1rated-results~1subscription~1{subscriptionNumber}/get/responses/200/content/application~1json/examples/response"]}}},{"code":"400","schemaId":"components/schemas/CommonRatingErrorResponse","mediaTypes":["application/json; charset=utf-8","application/json"],"mediaTypeContent":{"application/json; charset=utf-8":{"schemaId":"components/schemas/CommonRatingErrorResponse"},"application/json":{"exampleIds":["paths/~1rating~1rated-results~1subscription~1{subscriptionNumber}/get/responses/400/content/application~1json/examples/response"]}}},{"code":"404","schemaId":"components/schemas/CommonRatingErrorResponse","mediaTypes":["application/json; charset=utf-8","application/json"],"mediaTypeContent":{"application/json; charset=utf-8":{"schemaId":"components/schemas/CommonRatingErrorResponse"},"application/json":{"exampleIds":["paths/~1rating~1rated-results~1subscription~1{subscriptionNumber}/get/responses/404/content/application~1json/examples/response"]}}},{"code":"500","schemaId":"components/schemas/CommonRatingErrorResponse","mediaTypes":["application/json; charset=utf-8","application/json"],"mediaTypeContent":{"application/json; charset=utf-8":{"schemaId":"components/schemas/CommonRatingErrorResponse"},"application/json":{"exampleIds":["paths/~1rating~1rated-results~1subscription~1{subscriptionNumber}/get/responses/500/content/application~1json/examples/response"]}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/usage-(with-active-rating)/get_ratingresultsbysubscripiton"}],"panels":[]}]},"httpPath":"/rating/rated-results/subscription/{subscriptionNumber}"},{"label":"Get rating results by charge","deprecated":false,"httpVerb":"get","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/archive/active-rating/active-rating-api/active-rating-api/usage-(with-active-rating)/get_ratingresultsbycharge","routeSlug":"/archive/active-rating/active-rating-api/active-rating-api/usage-(with-active-rating)/get_ratingresultsbycharge","metadata":{"seo":{"title":"Get rating results by charge","description":"Note: This operation is available only if Active Rating is enabled. The Active Rating feature is in development. If you wish to have access to the feature, submit a request at Zuora Global Support."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"GET_RatingResultsByCharge","name":"Get rating results by charge","isWebhook":false,"pointer":"/paths/~1rating~1rated-results~1charge~1{chargeNumber}/get","hasSamples":false},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Get rating results by charge","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Note:"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" This operation is available only if Active Rating is enabled. The Active Rating feature is in development. If you wish to have access to the feature, submit a request at "},"children":[]},{"$$mdtype":"Node","type":"link","inline":true,"attributes":{"href":"http://support.zuora.com/"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Zuora Global Support"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Retrieves the rating result of all the usage charges associated with the specified rate plan charge. The rating is based on billing period."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"You can specify the date range for which you want to rate in the "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"fromDate"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" and "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"toDate"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" query parameters. For example: /rated-results/charge/"},"children":[]},{"$$mdtype":"Node","type":"em","inline":true,"attributes":{"marker":"*"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"chargenNumber"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"?fromDate=2016-08-01&toDate=2016-08-21"},"children":[]}]}]}]},{"nodeType":"item-content","variant":"path","label":"Path","labelTranslationKey":"path","parameters":[{"name":"chargeNumber","in":"path","schemaId":"schema_0","description":"The charge number. For example, C-00000001.\n","required":true}],"pointer":"/paths/~1rating~1rated-results~1charge~1{chargeNumber}/get/parameters"},{"nodeType":"item-content","variant":"query","label":"Query","labelTranslationKey":"query","parameters":[{"name":"fromDate","in":"query","schemaId":"schema_8","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"The start date of the date range for which you want to rate. The date must be in "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"yyyy-mm-dd"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" format. For example, 2007-12-03."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"You can specify this parameter to restrict the data returned in the response. Make sure you specify a valid date in this query parameter:"},"children":[]}]}]},{"$$mdtype":"Node","type":"list","attributes":{"ordered":false,"marker":"-"},"children":[{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"If you only specify the "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"fromDate"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" query parameter but do not specify the "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"toDate"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" query parameter:"},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"endDate"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" > "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"fromDate"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"If you specify both the "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"fromDate"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" and "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"toDate"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" query parameters:"},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"startDate"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" <= "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"toDate"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" and "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"endDate"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" > "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"fromDate"},"children":[]}]}]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"startDate"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" is the start date of the rating result. "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"endDate"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" is the end date of the rating result."},"children":[]}]}]}]},{"name":"toDate","in":"query","schemaId":"schema_8","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"The end date of the date range for which you want to rate. The date must be in "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"yyyy-mm-dd"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" format. For example, 2007-12-03."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Make sure you specify a valid date in this query parameters:"},"children":[]}]}]},{"$$mdtype":"Node","type":"list","attributes":{"ordered":false,"marker":"-"},"children":[{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"If you only specify the "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"toDate"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" query parameter but do not specify the "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"fromDate"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" query parameter:"},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"startDate"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" <= "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"toDate"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"If you specify both the "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"fromDate"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" and "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"toDate"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" query parameters:"},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"startDate"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" <= "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"toDate"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" and "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"endDate"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" > "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"fromDate"},"children":[]}]}]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"startDate"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" is the start date of the rating result. "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"endDate"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" is the end date of the rating result."},"children":[]}]}]}]},{"name":"cursor","in":"query","schemaId":"schema_0","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"The cursor indicator of the data page you want to retrieve. By default, the first page of data is returned in the response. If more data pages are available, the operation returns "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"true"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" in the "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"hasMore"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" response body field. The "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"cursor"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" response body field specifies the cursor indicator of the next page of data. If there is no data after the current page, the value of "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"cursor"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" is "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"null"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]}]},{"name":"pageSize","in":"query","schemaId":"schema_4","description":"The maximum number of rows in a page to return in a response.\n"}],"pointer":"/paths/~1rating~1rated-results~1charge~1{chargeNumber}/get/parameters"},{"nodeType":"item-content","variant":"headers","label":"Headers","labelTranslationKey":"header","parameters":[{"name":"Authorization","in":"header","schemaId":"schema_0","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"Bearer {token}"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" for a valid OAuth token."},"children":[]}]}]}],"required":true},{"name":"Zuora-Entity-Ids","in":"header","schemaId":"schema_0","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"An entity ID. If you have "},"children":[]},{"$$mdtype":"Node","type":"link","inline":true,"attributes":{"href":"https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Zuora Multi-entity"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you do not need to set this header."},"children":[]}]}]}]},{"name":"Zuora-Track-Id","in":"header","schemaId":"schema_1","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"The value of this field must use the US-ASCII character set and must not include any of the following characters: colon ("},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":":"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"), semicolon ("},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":";"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"), double quote ("},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"\""},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"), and quote ("},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"'"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":")."},"children":[]}]}]}]}],"pointer":"/paths/~1rating~1rated-results~1charge~1{chargeNumber}/get/parameters"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"GET","path":"/rating/rated-results/charge/{chargeNumber}","servers":[{"url":"https://rest.zuora.com"}],"parameters":{"path":[{"name":"chargeNumber","in":"path","required":true,"schemaId":"schema_0"}],"query":[{"name":"fromDate","in":"query","required":false,"schemaId":"schema_8"},{"name":"toDate","in":"query","required":false,"schemaId":"schema_8"},{"name":"cursor","in":"query","required":false,"schemaId":"schema_0"},{"name":"pageSize","in":"query","required":false,"schemaId":"schema_4"}],"querystring":[],"header":[{"name":"Authorization","in":"header","required":true,"schemaId":"schema_0"},{"name":"Zuora-Entity-Ids","in":"header","required":false,"schemaId":"schema_0"},{"name":"Zuora-Track-Id","in":"header","required":false,"schemaId":"schema_1"}],"cookie":[]},"security":[],"responseCodes":["200","400","404","500"],"pointer":"/rating/rated-results/charge/{chargeNumber}","href":"usage-(with-active-rating)/get_ratingresultsbycharge","openApiOperationId":"GET_RatingResultsByCharge","summary":"Get rating results by charge"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://rest.zuora.com"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"OK","mediaType":"application/json; charset=utf-8","mediaTypes":["application/json; charset=utf-8","application/json"],"mediaTypeContent":{"application/json; charset=utf-8":{"schemaId":"components/schemas/GetRatedResultsType"},"application/json":{"exampleIds":["paths/~1rating~1rated-results~1charge~1{chargeNumber}/get/responses/200/content/application~1json/examples/response"]}},"schemaId":"components/schemas/GetRatedResultsType","headers":{"Zuora-Request-Id":{"description":"The Zuora internal identifier of the API call. You cannot control the value of this header.\n","schema":{"type":"string","minLength":36,"maxLength":36}},"Zuora-Track-Id":{"description":"A custom identifier for tracing the API call. If you specified a tracing identifier in the request headers, Zuora returns the same tracing identifier. Otherwise, Zuora does not set this header.\n","schema":{"type":"string","maxLength":64}}},"headerSchemaId":"schema_2"},{"code":"400","description":"Bad Request","mediaType":"application/json; charset=utf-8","mediaTypes":["application/json; charset=utf-8","application/json"],"mediaTypeContent":{"application/json; charset=utf-8":{"schemaId":"components/schemas/CommonRatingErrorResponse"},"application/json":{"exampleIds":["paths/~1rating~1rated-results~1charge~1{chargeNumber}/get/responses/400/content/application~1json/examples/response"]}},"schemaId":"components/schemas/CommonRatingErrorResponse","headers":{"Zuora-Request-Id":{"description":"The Zuora internal identifier of the API call. You cannot control the value of this header.\n","schema":{"type":"string","minLength":36,"maxLength":36}},"Zuora-Track-Id":{"description":"A custom identifier for tracing the API call. If you specified a tracing identifier in the request headers, Zuora returns the same tracing identifier. Otherwise, Zuora does not set this header.\n","schema":{"type":"string","maxLength":64}}},"headerSchemaId":"schema_2"},{"code":"404","description":"Not Found","mediaType":"application/json; charset=utf-8","mediaTypes":["application/json; charset=utf-8","application/json"],"mediaTypeContent":{"application/json; charset=utf-8":{"schemaId":"components/schemas/CommonRatingErrorResponse"},"application/json":{"exampleIds":["paths/~1rating~1rated-results~1charge~1{chargeNumber}/get/responses/404/content/application~1json/examples/response"]}},"schemaId":"components/schemas/CommonRatingErrorResponse","headers":{"Zuora-Request-Id":{"description":"The Zuora internal identifier of the API call. You cannot control the value of this header.\n","schema":{"type":"string","minLength":36,"maxLength":36}},"Zuora-Track-Id":{"description":"A custom identifier for tracing the API call. If you specified a tracing identifier in the request headers, Zuora returns the same tracing identifier. Otherwise, Zuora does not set this header.\n","schema":{"type":"string","maxLength":64}}},"headerSchemaId":"schema_2"},{"code":"500","description":"Internal Server Error","mediaType":"application/json; charset=utf-8","mediaTypes":["application/json; charset=utf-8","application/json"],"mediaTypeContent":{"application/json; charset=utf-8":{"schemaId":"components/schemas/CommonRatingErrorResponse"},"application/json":{"exampleIds":["paths/~1rating~1rated-results~1charge~1{chargeNumber}/get/responses/500/content/application~1json/examples/response"]}},"schemaId":"components/schemas/CommonRatingErrorResponse","headers":{"Zuora-Request-Id":{"description":"The Zuora internal identifier of the API call. You cannot control the value of this header.\n","schema":{"type":"string","minLength":36,"maxLength":36}},"Zuora-Track-Id":{"description":"A custom identifier for tracing the API call. If you specified a tracing identifier in the request headers, Zuora returns the same tracing identifier. Otherwise, Zuora does not set this header.\n","schema":{"type":"string","maxLength":64}}},"headerSchemaId":"schema_2"}],"pointer":"/paths/~1rating~1rated-results~1charge~1{chargeNumber}/get/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"components/schemas/GetRatedResultsType","mediaTypes":["application/json; charset=utf-8","application/json"],"mediaTypeContent":{"application/json; charset=utf-8":{"schemaId":"components/schemas/GetRatedResultsType"},"application/json":{"exampleIds":["paths/~1rating~1rated-results~1charge~1{chargeNumber}/get/responses/200/content/application~1json/examples/response"]}}},{"code":"400","schemaId":"components/schemas/CommonRatingErrorResponse","mediaTypes":["application/json; charset=utf-8","application/json"],"mediaTypeContent":{"application/json; charset=utf-8":{"schemaId":"components/schemas/CommonRatingErrorResponse"},"application/json":{"exampleIds":["paths/~1rating~1rated-results~1charge~1{chargeNumber}/get/responses/400/content/application~1json/examples/response"]}}},{"code":"404","schemaId":"components/schemas/CommonRatingErrorResponse","mediaTypes":["application/json; charset=utf-8","application/json"],"mediaTypeContent":{"application/json; charset=utf-8":{"schemaId":"components/schemas/CommonRatingErrorResponse"},"application/json":{"exampleIds":["paths/~1rating~1rated-results~1charge~1{chargeNumber}/get/responses/404/content/application~1json/examples/response"]}}},{"code":"500","schemaId":"components/schemas/CommonRatingErrorResponse","mediaTypes":["application/json; charset=utf-8","application/json"],"mediaTypeContent":{"application/json; charset=utf-8":{"schemaId":"components/schemas/CommonRatingErrorResponse"},"application/json":{"exampleIds":["paths/~1rating~1rated-results~1charge~1{chargeNumber}/get/responses/500/content/application~1json/examples/response"]}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/usage-(with-active-rating)/get_ratingresultsbycharge"}],"panels":[]}]},"httpPath":"/rating/rated-results/charge/{chargeNumber}"},{"label":"Get rated usage by account","deprecated":false,"httpVerb":"get","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/archive/active-rating/active-rating-api/active-rating-api/usage-(with-active-rating)/get_usageratingbyaccount","routeSlug":"/archive/active-rating/active-rating-api/active-rating-api/usage-(with-active-rating)/get_usageratingbyaccount","metadata":{"seo":{"title":"Get rated usage by account","description":"Note: This operation is available only if Active Rating is enabled. The Active Rating feature is in development. If you wish to have access to the feature, submit a request at Zuora Global Support."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"GET_UsageRatingByAccount","name":"Get rated usage by account","isWebhook":false,"pointer":"/paths/~1rating~1rated-usages~1account~1{accountNumber}/get","hasSamples":false},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Get rated usage by account","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Note:"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" This operation is available only if Active Rating is enabled. The Active Rating feature is in development. If you wish to have access to the feature, submit a request at "},"children":[]},{"$$mdtype":"Node","type":"link","inline":true,"attributes":{"href":"http://support.zuora.com/"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Zuora Global Support"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Retrieves the rating result of the usage records associated with the specified customer account. The response returns the rating result of each usage record."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"You can specify the date range for which you want to get the usage rating result in the "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"fromDate"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" and "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"toDate"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" query parameters. For example: /rated-usages/account/"},"children":[]},{"$$mdtype":"Node","type":"em","inline":true,"attributes":{"marker":"*"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"accountNumber"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"?fromDate=2016-08-01&toDate=2016-08-21"},"children":[]}]}]}]},{"nodeType":"item-content","variant":"path","label":"Path","labelTranslationKey":"path","parameters":[{"name":"accountNumber","in":"path","schemaId":"schema_0","description":"The account number. For example, A00000001.\n","required":true}],"pointer":"/paths/~1rating~1rated-usages~1account~1{accountNumber}/get/parameters"},{"nodeType":"item-content","variant":"query","label":"Query","labelTranslationKey":"query","parameters":[{"name":"fromDate","in":"query","schemaId":"schema_8","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"The start date of the date range for which you want to get the rating result. The date must be in "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"yyyy-mm-dd"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" format. For example, 2007-12-03."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"You can specify this parameter to restrict the data returned in the response. Make sure you specify a valid date in this query parameter:"},"children":[]}]}]},{"$$mdtype":"Node","type":"list","attributes":{"ordered":false,"marker":"-"},"children":[{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"If you only specify the "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"fromDate"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" query parameter but do not specify the "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"toDate"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" query parameter:"},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"startDate"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" >= "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"fromDate"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"If you specify both the "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"fromDate"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" and "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"toDate"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" parameters:"},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"startDate"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" >= "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"fromDate"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" and "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"startDate"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" <= "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"toDate"},"children":[]}]}]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"startDate"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" is the start date when the usage is consumed in your tenant time zone."},"children":[]}]}]}]},{"name":"toDate","in":"query","schemaId":"schema_8","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"The end date of the date range for which you want to get the rating result. The date must be in "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"yyyy-mm-dd"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" format. For example, 2007-12-03."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Make sure you specify a valid date in this query parameters:"},"children":[]}]}]},{"$$mdtype":"Node","type":"list","attributes":{"ordered":false,"marker":"-"},"children":[{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"If you only specify the "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"toDate"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" query parameter but do not specify the "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"fromDate"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" query parameter:"},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"startDate"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" <= "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"toDate"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"If you specify both the "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"fromDate"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" and "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"toDate"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" query parameters:"},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"startDate"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" >= "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"fromDate"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" and "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"startDate"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" <= "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"toDate"},"children":[]}]}]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"startDate"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" is the start date when the usage is consumed in your tenant time zone."},"children":[]}]}]}]},{"name":"cursor","in":"query","schemaId":"schema_0","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"The cursor indicator of the data page you want to retrieve. By default, the first page of data is returned in the response. If more data pages are available, the operation returns "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"true"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" in the "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"hasMore"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" response body field. The "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"cursor"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" response body field specifies the cursor indicator of the next page of data. If there is no data after the current page, the value of "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"cursor"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" is "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"null"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]}]},{"name":"pageSize","in":"query","schemaId":"schema_4","description":"The maximum number of rows in a page to return in a response.\n"}],"pointer":"/paths/~1rating~1rated-usages~1account~1{accountNumber}/get/parameters"},{"nodeType":"item-content","variant":"headers","label":"Headers","labelTranslationKey":"header","parameters":[{"name":"Authorization","in":"header","schemaId":"schema_0","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"Bearer {token}"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" for a valid OAuth token."},"children":[]}]}]}],"required":true},{"name":"Zuora-Entity-Ids","in":"header","schemaId":"schema_0","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"An entity ID. If you have "},"children":[]},{"$$mdtype":"Node","type":"link","inline":true,"attributes":{"href":"https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Zuora Multi-entity"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you do not need to set this header."},"children":[]}]}]}]},{"name":"Zuora-Track-Id","in":"header","schemaId":"schema_1","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"The value of this field must use the US-ASCII character set and must not include any of the following characters: colon ("},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":":"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"), semicolon ("},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":";"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"), double quote ("},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"\""},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"), and quote ("},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"'"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":")."},"children":[]}]}]}]}],"pointer":"/paths/~1rating~1rated-usages~1account~1{accountNumber}/get/parameters"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"GET","path":"/rating/rated-usages/account/{accountNumber}","servers":[{"url":"https://rest.zuora.com"}],"parameters":{"path":[{"name":"accountNumber","in":"path","required":true,"schemaId":"schema_0"}],"query":[{"name":"fromDate","in":"query","required":false,"schemaId":"schema_8"},{"name":"toDate","in":"query","required":false,"schemaId":"schema_8"},{"name":"cursor","in":"query","required":false,"schemaId":"schema_0"},{"name":"pageSize","in":"query","required":false,"schemaId":"schema_4"}],"querystring":[],"header":[{"name":"Authorization","in":"header","required":true,"schemaId":"schema_0"},{"name":"Zuora-Entity-Ids","in":"header","required":false,"schemaId":"schema_0"},{"name":"Zuora-Track-Id","in":"header","required":false,"schemaId":"schema_1"}],"cookie":[]},"security":[],"responseCodes":["200","400","404","500"],"pointer":"/rating/rated-usages/account/{accountNumber}","href":"usage-(with-active-rating)/get_usageratingbyaccount","openApiOperationId":"GET_UsageRatingByAccount","summary":"Get rated usage by account"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://rest.zuora.com"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"OK","mediaType":"application/json; charset=utf-8","mediaTypes":["application/json; charset=utf-8","application/json"],"mediaTypeContent":{"application/json; charset=utf-8":{"schemaId":"components/schemas/GetRatedUsageResultsType"},"application/json":{"exampleIds":["paths/~1rating~1rated-usages~1account~1{accountNumber}/get/responses/200/content/application~1json/examples/response"]}},"schemaId":"components/schemas/GetRatedUsageResultsType","headers":{"Zuora-Request-Id":{"description":"The Zuora internal identifier of the API call. You cannot control the value of this header.\n","schema":{"type":"string","minLength":36,"maxLength":36}},"Zuora-Track-Id":{"description":"A custom identifier for tracing the API call. If you specified a tracing identifier in the request headers, Zuora returns the same tracing identifier. Otherwise, Zuora does not set this header.\n","schema":{"type":"string","maxLength":64}}},"headerSchemaId":"schema_2"},{"code":"400","description":"Bad Request","mediaType":"application/json; charset=utf-8","mediaTypes":["application/json; charset=utf-8","application/json"],"mediaTypeContent":{"application/json; charset=utf-8":{"schemaId":"components/schemas/CommonRatingErrorResponse"},"application/json":{"exampleIds":["paths/~1rating~1rated-usages~1account~1{accountNumber}/get/responses/400/content/application~1json/examples/response"]}},"schemaId":"components/schemas/CommonRatingErrorResponse","headers":{"Zuora-Request-Id":{"description":"The Zuora internal identifier of the API call. You cannot control the value of this header.\n","schema":{"type":"string","minLength":36,"maxLength":36}},"Zuora-Track-Id":{"description":"A custom identifier for tracing the API call. If you specified a tracing identifier in the request headers, Zuora returns the same tracing identifier. Otherwise, Zuora does not set this header.\n","schema":{"type":"string","maxLength":64}}},"headerSchemaId":"schema_2"},{"code":"404","description":"Not Found","mediaType":"application/json; charset=utf-8","mediaTypes":["application/json; charset=utf-8","application/json"],"mediaTypeContent":{"application/json; charset=utf-8":{"schemaId":"components/schemas/CommonRatingErrorResponse"},"application/json":{"exampleIds":["paths/~1rating~1rated-usages~1account~1{accountNumber}/get/responses/404/content/application~1json/examples/response"]}},"schemaId":"components/schemas/CommonRatingErrorResponse","headers":{"Zuora-Request-Id":{"description":"The Zuora internal identifier of the API call. You cannot control the value of this header.\n","schema":{"type":"string","minLength":36,"maxLength":36}},"Zuora-Track-Id":{"description":"A custom identifier for tracing the API call. If you specified a tracing identifier in the request headers, Zuora returns the same tracing identifier. Otherwise, Zuora does not set this header.\n","schema":{"type":"string","maxLength":64}}},"headerSchemaId":"schema_2"},{"code":"500","description":"Internal Server Error","mediaType":"application/json; charset=utf-8","mediaTypes":["application/json; charset=utf-8","application/json"],"mediaTypeContent":{"application/json; charset=utf-8":{"schemaId":"components/schemas/CommonRatingErrorResponse"},"application/json":{"exampleIds":["paths/~1rating~1rated-usages~1account~1{accountNumber}/get/responses/500/content/application~1json/examples/response"]}},"schemaId":"components/schemas/CommonRatingErrorResponse","headers":{"Zuora-Request-Id":{"description":"The Zuora internal identifier of the API call. You cannot control the value of this header.\n","schema":{"type":"string","minLength":36,"maxLength":36}},"Zuora-Track-Id":{"description":"A custom identifier for tracing the API call. If you specified a tracing identifier in the request headers, Zuora returns the same tracing identifier. Otherwise, Zuora does not set this header.\n","schema":{"type":"string","maxLength":64}}},"headerSchemaId":"schema_2"}],"pointer":"/paths/~1rating~1rated-usages~1account~1{accountNumber}/get/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"components/schemas/GetRatedUsageResultsType","mediaTypes":["application/json; charset=utf-8","application/json"],"mediaTypeContent":{"application/json; charset=utf-8":{"schemaId":"components/schemas/GetRatedUsageResultsType"},"application/json":{"exampleIds":["paths/~1rating~1rated-usages~1account~1{accountNumber}/get/responses/200/content/application~1json/examples/response"]}}},{"code":"400","schemaId":"components/schemas/CommonRatingErrorResponse","mediaTypes":["application/json; charset=utf-8","application/json"],"mediaTypeContent":{"application/json; charset=utf-8":{"schemaId":"components/schemas/CommonRatingErrorResponse"},"application/json":{"exampleIds":["paths/~1rating~1rated-usages~1account~1{accountNumber}/get/responses/400/content/application~1json/examples/response"]}}},{"code":"404","schemaId":"components/schemas/CommonRatingErrorResponse","mediaTypes":["application/json; charset=utf-8","application/json"],"mediaTypeContent":{"application/json; charset=utf-8":{"schemaId":"components/schemas/CommonRatingErrorResponse"},"application/json":{"exampleIds":["paths/~1rating~1rated-usages~1account~1{accountNumber}/get/responses/404/content/application~1json/examples/response"]}}},{"code":"500","schemaId":"components/schemas/CommonRatingErrorResponse","mediaTypes":["application/json; charset=utf-8","application/json"],"mediaTypeContent":{"application/json; charset=utf-8":{"schemaId":"components/schemas/CommonRatingErrorResponse"},"application/json":{"exampleIds":["paths/~1rating~1rated-usages~1account~1{accountNumber}/get/responses/500/content/application~1json/examples/response"]}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/usage-(with-active-rating)/get_usageratingbyaccount"}],"panels":[]}]},"httpPath":"/rating/rated-usages/account/{accountNumber}"},{"label":"Get rated usage by subscription","deprecated":false,"httpVerb":"get","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/archive/active-rating/active-rating-api/active-rating-api/usage-(with-active-rating)/get_usageratingbysubscription","routeSlug":"/archive/active-rating/active-rating-api/active-rating-api/usage-(with-active-rating)/get_usageratingbysubscription","metadata":{"seo":{"title":"Get rated usage by subscription","description":"Note: This operation is available only if Active Rating is enabled. The Active Rating feature is in development. If you wish to have access to the feature, submit a request at Zuora Global Support."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"GET_UsageRatingBySubscription","name":"Get rated usage by subscription","isWebhook":false,"pointer":"/paths/~1rating~1rated-usages~1subscription~1{subscriptionNumber}/get","hasSamples":false},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Get rated usage by subscription","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Note:"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" This operation is available only if Active Rating is enabled. The Active Rating feature is in development. If you wish to have access to the feature, submit a request at "},"children":[]},{"$$mdtype":"Node","type":"link","inline":true,"attributes":{"href":"http://support.zuora.com/"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Zuora Global Support"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Retrieves the rating result of the usage records associated with the specified subscription. The response returns the rating result of each usage record."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"You can specify the date range for which you want to get the rating result in the "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"fromDate"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" and "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"toDate"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" query parameters. For example: /rated-results/subscription/"},"children":[]},{"$$mdtype":"Node","type":"em","inline":true,"attributes":{"marker":"*"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"subscriptionNumber"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"?fromDate=2016-08-01&toDate=2016-08-21"},"children":[]}]}]}]},{"nodeType":"item-content","variant":"path","label":"Path","labelTranslationKey":"path","parameters":[{"name":"subscriptionNumber","in":"path","schemaId":"schema_0","description":"The subscription number. For example, A-S00000001.\n","required":true}],"pointer":"/paths/~1rating~1rated-usages~1subscription~1{subscriptionNumber}/get/parameters"},{"nodeType":"item-content","variant":"query","label":"Query","labelTranslationKey":"query","parameters":[{"name":"fromDate","in":"query","schemaId":"schema_8","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"The start date of the date range for which you want to get the rating result. The date must be in "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"yyyy-mm-dd"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" format. For example, 2007-12-03."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"You can specify this parameter to restrict the data returned in the response. Make sure you specify a valid date in this query parameter:"},"children":[]}]}]},{"$$mdtype":"Node","type":"list","attributes":{"ordered":false,"marker":"-"},"children":[{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"If you only specify the "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"fromDate"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" query parameter but do not specify the "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"toDate"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" query parameter:"},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"startDate"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" >= "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"fromDate"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"If you specify both the "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"fromDate"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" and "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"toDate"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" parameters:"},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"startDate"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" >= "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"fromDate"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" and "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"startDate"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" <= "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"toDate"},"children":[]}]}]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"startDate"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" is the start date when the usage is consumed in your tenant time zone."},"children":[]}]}]}]},{"name":"toDate","in":"query","schemaId":"schema_8","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"The end date of the date range for which you want to get the rating result. The date must be in "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"yyyy-mm-dd"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" format. For example, 2007-12-03."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Make sure you specify a valid date in this query parameters:"},"children":[]}]}]},{"$$mdtype":"Node","type":"list","attributes":{"ordered":false,"marker":"-"},"children":[{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"If you only specify the "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"toDate"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" query parameter but do not specify the "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"fromDate"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" query parameter:"},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"startDate"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" <= "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"toDate"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"If you specify both the "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"fromDate"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" and "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"toDate"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" query parameters:"},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"startDate"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" >= "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"fromDate"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" and "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"startDate"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" <= "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"toDate"},"children":[]}]}]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"startDate"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" is the start date when the usage is consumed in your tenant time zone."},"children":[]}]}]}]},{"name":"cursor","in":"query","schemaId":"schema_0","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"The cursor indicator of the data page you want to retrieve. By default, the first page of data is returned in the response. If more data pages are available, the operation returns "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"true"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" in the "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"hasMore"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" response body field. The "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"cursor"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" response body field specifies the cursor indicator of the next page of data. If there is no data after the current page, the value of "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"cursor"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" is "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"null"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]}]},{"name":"pageSize","in":"query","schemaId":"schema_4","description":"The maximum number of rows in a page to return in a response.\n"}],"pointer":"/paths/~1rating~1rated-usages~1subscription~1{subscriptionNumber}/get/parameters"},{"nodeType":"item-content","variant":"headers","label":"Headers","labelTranslationKey":"header","parameters":[{"name":"Authorization","in":"header","schemaId":"schema_0","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"Bearer {token}"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" for a valid OAuth token."},"children":[]}]}]}],"required":true},{"name":"Zuora-Entity-Ids","in":"header","schemaId":"schema_0","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"An entity ID. If you have "},"children":[]},{"$$mdtype":"Node","type":"link","inline":true,"attributes":{"href":"https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Zuora Multi-entity"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you do not need to set this header."},"children":[]}]}]}]},{"name":"Zuora-Track-Id","in":"header","schemaId":"schema_1","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"The value of this field must use the US-ASCII character set and must not include any of the following characters: colon ("},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":":"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"), semicolon ("},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":";"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"), double quote ("},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"\""},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"), and quote ("},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"'"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":")."},"children":[]}]}]}]}],"pointer":"/paths/~1rating~1rated-usages~1subscription~1{subscriptionNumber}/get/parameters"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"GET","path":"/rating/rated-usages/subscription/{subscriptionNumber}","servers":[{"url":"https://rest.zuora.com"}],"parameters":{"path":[{"name":"subscriptionNumber","in":"path","required":true,"schemaId":"schema_0"}],"query":[{"name":"fromDate","in":"query","required":false,"schemaId":"schema_8"},{"name":"toDate","in":"query","required":false,"schemaId":"schema_8"},{"name":"cursor","in":"query","required":false,"schemaId":"schema_0"},{"name":"pageSize","in":"query","required":false,"schemaId":"schema_4"}],"querystring":[],"header":[{"name":"Authorization","in":"header","required":true,"schemaId":"schema_0"},{"name":"Zuora-Entity-Ids","in":"header","required":false,"schemaId":"schema_0"},{"name":"Zuora-Track-Id","in":"header","required":false,"schemaId":"schema_1"}],"cookie":[]},"security":[],"responseCodes":["200","400","404","500"],"pointer":"/rating/rated-usages/subscription/{subscriptionNumber}","href":"usage-(with-active-rating)/get_usageratingbysubscription","openApiOperationId":"GET_UsageRatingBySubscription","summary":"Get rated usage by subscription"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://rest.zuora.com"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"OK","mediaType":"application/json; charset=utf-8","mediaTypes":["application/json; charset=utf-8","application/json"],"mediaTypeContent":{"application/json; charset=utf-8":{"schemaId":"components/schemas/GetRatedUsageResultsType"},"application/json":{"exampleIds":["paths/~1rating~1rated-usages~1subscription~1{subscriptionNumber}/get/responses/200/content/application~1json/examples/response"]}},"schemaId":"components/schemas/GetRatedUsageResultsType","headers":{"Zuora-Request-Id":{"description":"The Zuora internal identifier of the API call. You cannot control the value of this header.\n","schema":{"type":"string","minLength":36,"maxLength":36}},"Zuora-Track-Id":{"description":"A custom identifier for tracing the API call. If you specified a tracing identifier in the request headers, Zuora returns the same tracing identifier. Otherwise, Zuora does not set this header.\n","schema":{"type":"string","maxLength":64}}},"headerSchemaId":"schema_2"},{"code":"400","description":"Bad Request","mediaType":"application/json; charset=utf-8","mediaTypes":["application/json; charset=utf-8","application/json"],"mediaTypeContent":{"application/json; charset=utf-8":{"schemaId":"components/schemas/CommonRatingErrorResponse"},"application/json":{"exampleIds":["paths/~1rating~1rated-usages~1subscription~1{subscriptionNumber}/get/responses/400/content/application~1json/examples/response"]}},"schemaId":"components/schemas/CommonRatingErrorResponse","headers":{"Zuora-Request-Id":{"description":"The Zuora internal identifier of the API call. You cannot control the value of this header.\n","schema":{"type":"string","minLength":36,"maxLength":36}},"Zuora-Track-Id":{"description":"A custom identifier for tracing the API call. If you specified a tracing identifier in the request headers, Zuora returns the same tracing identifier. Otherwise, Zuora does not set this header.\n","schema":{"type":"string","maxLength":64}}},"headerSchemaId":"schema_2"},{"code":"404","description":"Not Found","mediaType":"application/json; charset=utf-8","mediaTypes":["application/json; charset=utf-8","application/json"],"mediaTypeContent":{"application/json; charset=utf-8":{"schemaId":"components/schemas/CommonRatingErrorResponse"},"application/json":{"exampleIds":["paths/~1rating~1rated-usages~1subscription~1{subscriptionNumber}/get/responses/404/content/application~1json/examples/response"]}},"schemaId":"components/schemas/CommonRatingErrorResponse","headers":{"Zuora-Request-Id":{"description":"The Zuora internal identifier of the API call. You cannot control the value of this header.\n","schema":{"type":"string","minLength":36,"maxLength":36}},"Zuora-Track-Id":{"description":"A custom identifier for tracing the API call. If you specified a tracing identifier in the request headers, Zuora returns the same tracing identifier. Otherwise, Zuora does not set this header.\n","schema":{"type":"string","maxLength":64}}},"headerSchemaId":"schema_2"},{"code":"500","description":"Internal Server Error","mediaType":"application/json; charset=utf-8","mediaTypes":["application/json; charset=utf-8","application/json"],"mediaTypeContent":{"application/json; charset=utf-8":{"schemaId":"components/schemas/CommonRatingErrorResponse"},"application/json":{"exampleIds":["paths/~1rating~1rated-usages~1subscription~1{subscriptionNumber}/get/responses/500/content/application~1json/examples/response"]}},"schemaId":"components/schemas/CommonRatingErrorResponse","headers":{"Zuora-Request-Id":{"description":"The Zuora internal identifier of the API call. You cannot control the value of this header.\n","schema":{"type":"string","minLength":36,"maxLength":36}},"Zuora-Track-Id":{"description":"A custom identifier for tracing the API call. If you specified a tracing identifier in the request headers, Zuora returns the same tracing identifier. Otherwise, Zuora does not set this header.\n","schema":{"type":"string","maxLength":64}}},"headerSchemaId":"schema_2"}],"pointer":"/paths/~1rating~1rated-usages~1subscription~1{subscriptionNumber}/get/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"components/schemas/GetRatedUsageResultsType","mediaTypes":["application/json; charset=utf-8","application/json"],"mediaTypeContent":{"application/json; charset=utf-8":{"schemaId":"components/schemas/GetRatedUsageResultsType"},"application/json":{"exampleIds":["paths/~1rating~1rated-usages~1subscription~1{subscriptionNumber}/get/responses/200/content/application~1json/examples/response"]}}},{"code":"400","schemaId":"components/schemas/CommonRatingErrorResponse","mediaTypes":["application/json; charset=utf-8","application/json"],"mediaTypeContent":{"application/json; charset=utf-8":{"schemaId":"components/schemas/CommonRatingErrorResponse"},"application/json":{"exampleIds":["paths/~1rating~1rated-usages~1subscription~1{subscriptionNumber}/get/responses/400/content/application~1json/examples/response"]}}},{"code":"404","schemaId":"components/schemas/CommonRatingErrorResponse","mediaTypes":["application/json; charset=utf-8","application/json"],"mediaTypeContent":{"application/json; charset=utf-8":{"schemaId":"components/schemas/CommonRatingErrorResponse"},"application/json":{"exampleIds":["paths/~1rating~1rated-usages~1subscription~1{subscriptionNumber}/get/responses/404/content/application~1json/examples/response"]}}},{"code":"500","schemaId":"components/schemas/CommonRatingErrorResponse","mediaTypes":["application/json; charset=utf-8","application/json"],"mediaTypeContent":{"application/json; charset=utf-8":{"schemaId":"components/schemas/CommonRatingErrorResponse"},"application/json":{"exampleIds":["paths/~1rating~1rated-usages~1subscription~1{subscriptionNumber}/get/responses/500/content/application~1json/examples/response"]}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/usage-(with-active-rating)/get_usageratingbysubscription"}],"panels":[]}]},"httpPath":"/rating/rated-usages/subscription/{subscriptionNumber}"},{"label":"Get rated usage by charge","deprecated":false,"httpVerb":"get","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/archive/active-rating/active-rating-api/active-rating-api/usage-(with-active-rating)/get_usageratingbycharge","routeSlug":"/archive/active-rating/active-rating-api/active-rating-api/usage-(with-active-rating)/get_usageratingbycharge","metadata":{"seo":{"title":"Get rated usage by charge","description":"Note: This operation is available only if Active Rating is enabled. The Active Rating feature is in development. If you wish to have access to the feature, submit a request at Zuora Global Support."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"GET_UsageRatingByCharge","name":"Get rated usage by charge","isWebhook":false,"pointer":"/paths/~1rating~1rated-usages~1charge~1{chargeNumber}/get","hasSamples":false},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Get rated usage by charge","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Note:"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" This operation is available only if Active Rating is enabled. The Active Rating feature is in development. If you wish to have access to the feature, submit a request at "},"children":[]},{"$$mdtype":"Node","type":"link","inline":true,"attributes":{"href":"http://support.zuora.com/"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Zuora Global Support"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Retrieves the rating result of the usage records associated with the specified charge.  The response returns the rating result of each usage record."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"You can specify the date range for which you want to get the rating result in the "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"fromDate"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" and "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"toDate"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" query parameters. For example: /rated-results/charge/"},"children":[]},{"$$mdtype":"Node","type":"em","inline":true,"attributes":{"marker":"*"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"chargenNumber"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"?fromDate=2016-08-01&toDate=2016-08-21"},"children":[]}]}]}]},{"nodeType":"item-content","variant":"path","label":"Path","labelTranslationKey":"path","parameters":[{"name":"chargeNumber","in":"path","schemaId":"schema_0","description":"The charge number. For example, C-00000001.\n","required":true}],"pointer":"/paths/~1rating~1rated-usages~1charge~1{chargeNumber}/get/parameters"},{"nodeType":"item-content","variant":"query","label":"Query","labelTranslationKey":"query","parameters":[{"name":"fromDate","in":"query","schemaId":"schema_8","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"The start date of the date range for which you want to get the rating result. The date must be in "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"yyyy-mm-dd"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" format. For example, 2007-12-03."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"You can specify this parameter to restrict the data returned in the response. Make sure you specify a valid date in this query parameter:"},"children":[]}]}]},{"$$mdtype":"Node","type":"list","attributes":{"ordered":false,"marker":"-"},"children":[{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"If you only specify the "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"fromDate"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" query parameter but do not specify the "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"toDate"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" query parameter:"},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"startDate"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" >= "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"fromDate"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"If you specify both the "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"fromDate"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" and "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"toDate"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" parameters:"},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"startDate"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" >= "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"fromDate"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" and "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"startDate"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" <= "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"toDate"},"children":[]}]}]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"startDate"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" is the start date when the usage is consumed in your tenant time zone."},"children":[]}]}]}]},{"name":"toDate","in":"query","schemaId":"schema_8","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"The end date of the date range for which you want to get the rating result. The date must be in "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"yyyy-mm-dd"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" format. For example, 2007-12-03."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Make sure you specify a valid date in this query parameters:"},"children":[]}]}]},{"$$mdtype":"Node","type":"list","attributes":{"ordered":false,"marker":"-"},"children":[{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"If you only specify the "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"toDate"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" query parameter but do not specify the "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"fromDate"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" query parameter:"},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"startDate"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" <= "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"toDate"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"If you specify both the "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"fromDate"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" and "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"toDate"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" query parameters:"},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"startDate"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" >= "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"fromDate"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" and "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"startDate"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" <= "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"toDate"},"children":[]}]}]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"startDate"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" is the start date when the usage is consumed in your tenant time zone."},"children":[]}]}]}]},{"name":"cursor","in":"query","schemaId":"schema_0","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"The cursor indicator of the data page you want to retrieve. By default, the first page of data is returned in the response. If more data pages are available, the operation returns "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"true"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" in the "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"hasMore"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" response body field. The "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"cursor"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" response body field specifies the cursor indicator of the next page of data. If there is no data after the current page, the value of "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"cursor"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" is "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"null"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]}]},{"name":"pageSize","in":"query","schemaId":"schema_4","description":"The maximum number of rows in a page to return in a response.\n"}],"pointer":"/paths/~1rating~1rated-usages~1charge~1{chargeNumber}/get/parameters"},{"nodeType":"item-content","variant":"headers","label":"Headers","labelTranslationKey":"header","parameters":[{"name":"Authorization","in":"header","schemaId":"schema_0","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"Bearer {token}"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" for a valid OAuth token."},"children":[]}]}]}],"required":true},{"name":"Zuora-Entity-Ids","in":"header","schemaId":"schema_0","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"An entity ID. If you have "},"children":[]},{"$$mdtype":"Node","type":"link","inline":true,"attributes":{"href":"https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Zuora Multi-entity"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you do not need to set this header."},"children":[]}]}]}]},{"name":"Zuora-Track-Id","in":"header","schemaId":"schema_1","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"The value of this field must use the US-ASCII character set and must not include any of the following characters: colon ("},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":":"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"), semicolon ("},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":";"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"), double quote ("},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"\""},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"), and quote ("},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"'"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":")."},"children":[]}]}]}]}],"pointer":"/paths/~1rating~1rated-usages~1charge~1{chargeNumber}/get/parameters"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"GET","path":"/rating/rated-usages/charge/{chargeNumber}","servers":[{"url":"https://rest.zuora.com"}],"parameters":{"path":[{"name":"chargeNumber","in":"path","required":true,"schemaId":"schema_0"}],"query":[{"name":"fromDate","in":"query","required":false,"schemaId":"schema_8"},{"name":"toDate","in":"query","required":false,"schemaId":"schema_8"},{"name":"cursor","in":"query","required":false,"schemaId":"schema_0"},{"name":"pageSize","in":"query","required":false,"schemaId":"schema_4"}],"querystring":[],"header":[{"name":"Authorization","in":"header","required":true,"schemaId":"schema_0"},{"name":"Zuora-Entity-Ids","in":"header","required":false,"schemaId":"schema_0"},{"name":"Zuora-Track-Id","in":"header","required":false,"schemaId":"schema_1"}],"cookie":[]},"security":[],"responseCodes":["200","400","404","500"],"pointer":"/rating/rated-usages/charge/{chargeNumber}","href":"usage-(with-active-rating)/get_usageratingbycharge","openApiOperationId":"GET_UsageRatingByCharge","summary":"Get rated usage by charge"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://rest.zuora.com"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"OK","mediaType":"application/json; charset=utf-8","mediaTypes":["application/json; charset=utf-8","application/json"],"mediaTypeContent":{"application/json; charset=utf-8":{"schemaId":"components/schemas/GetRatedUsageResultsType"},"application/json":{"exampleIds":["paths/~1rating~1rated-usages~1charge~1{chargeNumber}/get/responses/200/content/application~1json/examples/response"]}},"schemaId":"components/schemas/GetRatedUsageResultsType","headers":{"Zuora-Request-Id":{"description":"The Zuora internal identifier of the API call. You cannot control the value of this header.\n","schema":{"type":"string","minLength":36,"maxLength":36}},"Zuora-Track-Id":{"description":"A custom identifier for tracing the API call. If you specified a tracing identifier in the request headers, Zuora returns the same tracing identifier. Otherwise, Zuora does not set this header.\n","schema":{"type":"string","maxLength":64}}},"headerSchemaId":"schema_2"},{"code":"400","description":"Bad Request","mediaType":"application/json; charset=utf-8","mediaTypes":["application/json; charset=utf-8","application/json"],"mediaTypeContent":{"application/json; charset=utf-8":{"schemaId":"components/schemas/CommonRatingErrorResponse"},"application/json":{"exampleIds":["paths/~1rating~1rated-usages~1charge~1{chargeNumber}/get/responses/400/content/application~1json/examples/response"]}},"schemaId":"components/schemas/CommonRatingErrorResponse","headers":{"Zuora-Request-Id":{"description":"The Zuora internal identifier of the API call. You cannot control the value of this header.\n","schema":{"type":"string","minLength":36,"maxLength":36}},"Zuora-Track-Id":{"description":"A custom identifier for tracing the API call. If you specified a tracing identifier in the request headers, Zuora returns the same tracing identifier. Otherwise, Zuora does not set this header.\n","schema":{"type":"string","maxLength":64}}},"headerSchemaId":"schema_2"},{"code":"404","description":"Not Found","mediaType":"application/json; charset=utf-8","mediaTypes":["application/json; charset=utf-8","application/json"],"mediaTypeContent":{"application/json; charset=utf-8":{"schemaId":"components/schemas/CommonRatingErrorResponse"},"application/json":{"exampleIds":["paths/~1rating~1rated-usages~1charge~1{chargeNumber}/get/responses/404/content/application~1json/examples/response"]}},"schemaId":"components/schemas/CommonRatingErrorResponse","headers":{"Zuora-Request-Id":{"description":"The Zuora internal identifier of the API call. You cannot control the value of this header.\n","schema":{"type":"string","minLength":36,"maxLength":36}},"Zuora-Track-Id":{"description":"A custom identifier for tracing the API call. If you specified a tracing identifier in the request headers, Zuora returns the same tracing identifier. Otherwise, Zuora does not set this header.\n","schema":{"type":"string","maxLength":64}}},"headerSchemaId":"schema_2"},{"code":"500","description":"Internal Server Error","mediaType":"application/json; charset=utf-8","mediaTypes":["application/json; charset=utf-8","application/json"],"mediaTypeContent":{"application/json; charset=utf-8":{"schemaId":"components/schemas/CommonRatingErrorResponse"},"application/json":{"exampleIds":["paths/~1rating~1rated-usages~1charge~1{chargeNumber}/get/responses/500/content/application~1json/examples/response"]}},"schemaId":"components/schemas/CommonRatingErrorResponse","headers":{"Zuora-Request-Id":{"description":"The Zuora internal identifier of the API call. You cannot control the value of this header.\n","schema":{"type":"string","minLength":36,"maxLength":36}},"Zuora-Track-Id":{"description":"A custom identifier for tracing the API call. If you specified a tracing identifier in the request headers, Zuora returns the same tracing identifier. Otherwise, Zuora does not set this header.\n","schema":{"type":"string","maxLength":64}}},"headerSchemaId":"schema_2"}],"pointer":"/paths/~1rating~1rated-usages~1charge~1{chargeNumber}/get/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"components/schemas/GetRatedUsageResultsType","mediaTypes":["application/json; charset=utf-8","application/json"],"mediaTypeContent":{"application/json; charset=utf-8":{"schemaId":"components/schemas/GetRatedUsageResultsType"},"application/json":{"exampleIds":["paths/~1rating~1rated-usages~1charge~1{chargeNumber}/get/responses/200/content/application~1json/examples/response"]}}},{"code":"400","schemaId":"components/schemas/CommonRatingErrorResponse","mediaTypes":["application/json; charset=utf-8","application/json"],"mediaTypeContent":{"application/json; charset=utf-8":{"schemaId":"components/schemas/CommonRatingErrorResponse"},"application/json":{"exampleIds":["paths/~1rating~1rated-usages~1charge~1{chargeNumber}/get/responses/400/content/application~1json/examples/response"]}}},{"code":"404","schemaId":"components/schemas/CommonRatingErrorResponse","mediaTypes":["application/json; charset=utf-8","application/json"],"mediaTypeContent":{"application/json; charset=utf-8":{"schemaId":"components/schemas/CommonRatingErrorResponse"},"application/json":{"exampleIds":["paths/~1rating~1rated-usages~1charge~1{chargeNumber}/get/responses/404/content/application~1json/examples/response"]}}},{"code":"500","schemaId":"components/schemas/CommonRatingErrorResponse","mediaTypes":["application/json; charset=utf-8","application/json"],"mediaTypeContent":{"application/json; charset=utf-8":{"schemaId":"components/schemas/CommonRatingErrorResponse"},"application/json":{"exampleIds":["paths/~1rating~1rated-usages~1charge~1{chargeNumber}/get/responses/500/content/application~1json/examples/response"]}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/usage-(with-active-rating)/get_usageratingbycharge"}],"panels":[]}]},"httpPath":"/rating/rated-usages/charge/{chargeNumber}"},{"label":"Get Usage custom field definition","deprecated":false,"httpVerb":"get","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/archive/active-rating/active-rating-api/active-rating-api/usage-(with-active-rating)/get_customfieldsdefinitioninglobalnamespace","routeSlug":"/archive/active-rating/active-rating-api/active-rating-api/usage-(with-active-rating)/get_customfieldsdefinitioninglobalnamespace","metadata":{"seo":{"title":"Get Usage custom field definition","description":"Note: This operation is available only if Active Rating and Custom Fields services are enabled. The Custom Fields service is in Limited Availability and Active Rating is in development. If you wish to have access to the services, submit a request at Zuora Global Support."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"GET_CustomFieldsDefinitionInGlobalNamespace","name":"Get Usage custom field definition","isWebhook":false,"pointer":"/paths/~1fields~1definitions~1Usage/get","hasSamples":false},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Get Usage custom field definition","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Note:"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" This operation is available only if Active Rating and Custom Fields services are enabled. The Custom Fields service is in "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Limited Availability"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" and Active Rating is in development. If you wish to have access to the services, submit a request at "},"children":[]},{"$$mdtype":"Node","type":"link","inline":true,"attributes":{"href":"http://support.zuora.com/"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Zuora Global Support"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]}]},{"nodeType":"item-content","variant":"headers","label":"Headers","labelTranslationKey":"header","parameters":[{"name":"Authorization","in":"header","schemaId":"schema_0","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"Bearer {token}"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" for a valid OAuth token."},"children":[]}]}]}],"required":true},{"name":"Zuora-Entity-Ids","in":"header","schemaId":"schema_0","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"An entity ID. If you have "},"children":[]},{"$$mdtype":"Node","type":"link","inline":true,"attributes":{"href":"https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Zuora Multi-entity"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you do not need to set this header."},"children":[]}]}]}]},{"name":"Zuora-Track-Id","in":"header","schemaId":"schema_1","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"The value of this field must use the US-ASCII character set and must not include any of the following characters: colon ("},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":":"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"), semicolon ("},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":";"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"), double quote ("},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"\""},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"), and quote ("},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"'"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":")."},"children":[]}]}]}]}],"pointer":"/paths/~1fields~1definitions~1Usage/get/parameters"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"GET","path":"/fields/definitions/Usage","servers":[{"url":"https://rest.zuora.com"}],"parameters":{"path":[],"query":[],"querystring":[],"header":[{"name":"Authorization","in":"header","required":true,"schemaId":"schema_0"},{"name":"Zuora-Entity-Ids","in":"header","required":false,"schemaId":"schema_0"},{"name":"Zuora-Track-Id","in":"header","required":false,"schemaId":"schema_1"}],"cookie":[]},"security":[],"responseCodes":["200","400"],"pointer":"/fields/definitions/Usage","href":"usage-(with-active-rating)/get_customfieldsdefinitioninglobalnamespace","openApiOperationId":"GET_CustomFieldsDefinitionInGlobalNamespace","summary":"Get Usage custom field definition"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://rest.zuora.com"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"OK","mediaType":"application/json; charset=utf-8","mediaTypes":["application/json; charset=utf-8","application/json"],"mediaTypeContent":{"application/json; charset=utf-8":{"schemaId":"components/schemas/CustomFieldsDefinitionNoNamespace"},"application/json":{"exampleIds":["paths/~1fields~1definitions~1Usage/get/responses/200/content/application~1json/examples/response"]}},"schemaId":"components/schemas/CustomFieldsDefinitionNoNamespace","headers":{"Zuora-Request-Id":{"description":"The Zuora internal identifier of the API call. You cannot control the value of this header.\n","schema":{"type":"string","minLength":36,"maxLength":36}},"Zuora-Track-Id":{"description":"A custom identifier for tracing the API call. If you specified a tracing identifier in the request headers, Zuora returns the same tracing identifier. Otherwise, Zuora does not set this header.\n","schema":{"type":"string","maxLength":64}},"ETag":{"description":"The ETag of the resource. You can provide the ETag to operations that support the If-Match header.\n","schema":{"type":"string"}}},"headerSchemaId":"schema_9"},{"code":"400","description":"Bad Request","mediaType":"application/json; charset=utf-8","mediaTypes":["application/json; charset=utf-8","application/json"],"mediaTypeContent":{"application/json; charset=utf-8":{"schemaId":"components/schemas/CommonErrorResponse"},"application/json":{"exampleIds":["paths/~1fields~1definitions~1Usage/get/responses/400/content/application~1json/examples/response"]}},"schemaId":"components/schemas/CommonErrorResponse","headers":{"Zuora-Request-Id":{"description":"The Zuora internal identifier of the API call. You cannot control the value of this header.\n","schema":{"type":"string","minLength":36,"maxLength":36}},"Zuora-Track-Id":{"description":"A custom identifier for tracing the API call. If you specified a tracing identifier in the request headers, Zuora returns the same tracing identifier. Otherwise, Zuora does not set this header.\n","schema":{"type":"string","maxLength":64}}},"headerSchemaId":"schema_2"}],"pointer":"/paths/~1fields~1definitions~1Usage/get/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"components/schemas/CustomFieldsDefinitionNoNamespace","mediaTypes":["application/json; charset=utf-8","application/json"],"mediaTypeContent":{"application/json; charset=utf-8":{"schemaId":"components/schemas/CustomFieldsDefinitionNoNamespace"},"application/json":{"exampleIds":["paths/~1fields~1definitions~1Usage/get/responses/200/content/application~1json/examples/response"]}}},{"code":"400","schemaId":"components/schemas/CommonErrorResponse","mediaTypes":["application/json; charset=utf-8","application/json"],"mediaTypeContent":{"application/json; charset=utf-8":{"schemaId":"components/schemas/CommonErrorResponse"},"application/json":{"exampleIds":["paths/~1fields~1definitions~1Usage/get/responses/400/content/application~1json/examples/response"]}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/usage-(with-active-rating)/get_customfieldsdefinitioninglobalnamespace"}],"panels":[]}]},"httpPath":"/fields/definitions/Usage"},{"label":"Set schema of Usage custom field definition","deprecated":false,"httpVerb":"put","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/archive/active-rating/active-rating-api/active-rating-api/usage-(with-active-rating)/put_customfieldsdefinitioninglobalnamespace","routeSlug":"/archive/active-rating/active-rating-api/active-rating-api/usage-(with-active-rating)/put_customfieldsdefinitioninglobalnamespace","metadata":{"seo":{"title":"Set schema of Usage custom field definition","description":"Note: This operation is available only if Active Rating and Custom Fields services are enabled. The Custom Fields service is in Limited Availability and Active Rating is in development. If you wish to have access to the services, submit a request at Zuora Global Support."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"PUT_CustomFieldsDefinitionInGlobalNamespace","name":"Set schema of Usage custom field definition","isWebhook":false,"pointer":"/paths/~1fields~1definitions~1Usage/put","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Set schema of Usage custom field definition","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Note:"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" This operation is available only if Active Rating and Custom Fields services are enabled. The Custom Fields service is in "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Limited Availability"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" and Active Rating is in development. If you wish to have access to the services, submit a request at "},"children":[]},{"$$mdtype":"Node","type":"link","inline":true,"attributes":{"href":"http://support.zuora.com/"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Zuora Global Support"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]},{"$$mdtype":"Node","type":"heading","attributes":{"level":2,"id":"usage-(with-active-rating)/put_customfieldsdefinitioninglobalnamespace/request/limitations","deepLinkHash":"/usage-(with-active-rating)/put_customfieldsdefinitioninglobalnamespace#usage-(with-active-rating)/put_customfieldsdefinitioninglobalnamespace/request/limitations"},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Limitations"},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"This custom fields definition has the following limitations:"},"children":[]}]}]},{"$$mdtype":"Node","type":"list","attributes":{"ordered":false,"marker":"*"},"children":[{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"The maximum number of characters for custom field API name is\t64."},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"The maximum number of characters for custom field label ("},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"label"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":") is\t64."},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"The maximum number of characters for custom field description\tis 250."},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"The maximum number of picklist options\tis 250."},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Custom field names are case sensitive and must contain "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"__c"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" as the suffix."},"children":[]}]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"If you want to add new custom fields or update existing custom fields, you must include the schema of all existing custom fields in the request body."},"children":[]}]}]}]},{"nodeType":"item-content","variant":"headers","label":"Headers","labelTranslationKey":"header","parameters":[{"name":"Authorization","in":"header","schemaId":"schema_0","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"Bearer {token}"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" for a valid OAuth token."},"children":[]}]}]}],"required":true},{"name":"Zuora-Entity-Ids","in":"header","schemaId":"schema_0","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"An entity ID. If you have "},"children":[]},{"$$mdtype":"Node","type":"link","inline":true,"attributes":{"href":"https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Zuora Multi-entity"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you do not need to set this header."},"children":[]}]}]}]},{"name":"Zuora-Track-Id","in":"header","schemaId":"schema_1","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"The value of this field must use the US-ASCII character set and must not include any of the following characters: colon ("},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":":"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"), semicolon ("},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":";"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"), double quote ("},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"\""},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"), and quote ("},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"'"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":")."},"children":[]}]}]}]},{"name":"If-Match","in":"header","schemaId":"schema_0","description":"The expected ETag of the resource. You can use this header to perform a conditional request. Zuora responds with 412 Precondition Failed if the ETag of the resource does not match the value of this header.\n"}],"pointer":"/paths/~1fields~1definitions~1Usage/put/parameters"},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","required":true,"mediaTypes":["application/json; charset=utf-8"],"mediaTypeSchemas":{"application/json; charset=utf-8":{"schemaId":"components/schemas/UpdateCustomFieldsDefinitionRequestNoNamespace"}},"schemaId":"components/schemas/UpdateCustomFieldsDefinitionRequestNoNamespace","pointer":"/paths/~1fields~1definitions~1Usage/put/requestBody","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"The schema for the custom fields definition."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"The schema must be the complete custom fields definition that includes all Usage custom fields."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"The schema must conform to the "},"children":[]},{"$$mdtype":"Node","type":"link","inline":true,"attributes":{"href":"http://json-schema.org/specification.html"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"JSON Schema"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" specification."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"If the value of the "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"type"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" path parameter is "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"Usage"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", the schema must have "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"\"type\": \"object\""},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":". Each property in the schema must not have "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"\"type\": \"object\""},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" or "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"\"type\": \"array\""},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]}]}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"PUT","path":"/fields/definitions/Usage","servers":[{"url":"https://rest.zuora.com"}],"parameters":{"path":[],"query":[],"querystring":[],"header":[{"name":"Authorization","in":"header","required":true,"schemaId":"schema_0"},{"name":"Zuora-Entity-Ids","in":"header","required":false,"schemaId":"schema_0"},{"name":"Zuora-Track-Id","in":"header","required":false,"schemaId":"schema_1"},{"name":"If-Match","in":"header","required":false,"schemaId":"schema_0"}],"cookie":[]},"security":[],"requestBody":{"application/json; charset=utf-8":{"schemaId":"components/schemas/UpdateCustomFieldsDefinitionRequestNoNamespace"}},"responseCodes":["200","400","412"],"pointer":"/fields/definitions/Usage","href":"usage-(with-active-rating)/put_customfieldsdefinitioninglobalnamespace","openApiOperationId":"PUT_CustomFieldsDefinitionInGlobalNamespace","summary":"Set schema of Usage custom field definition"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://rest.zuora.com"}],"schemaId":"components/schemas/UpdateCustomFieldsDefinitionRequestNoNamespace","mediaTypes":["application/json; charset=utf-8"],"mediaTypeSchemas":{"application/json; charset=utf-8":{"schemaId":"components/schemas/UpdateCustomFieldsDefinitionRequestNoNamespace"}},"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"OK","mediaType":"application/json; charset=utf-8","mediaTypes":["application/json; charset=utf-8","application/json"],"mediaTypeContent":{"application/json; charset=utf-8":{"schemaId":"schema_10"},"application/json":{"exampleIds":["paths/~1fields~1definitions~1Usage/put/responses/200/content/application~1json/examples/response"]}},"schemaId":"schema_10","headers":{"Zuora-Request-Id":{"description":"The Zuora internal identifier of the API call. You cannot control the value of this header.\n","schema":{"type":"string","minLength":36,"maxLength":36}},"Zuora-Track-Id":{"description":"A custom identifier for tracing the API call. If you specified a tracing identifier in the request headers, Zuora returns the same tracing identifier. Otherwise, Zuora does not set this header.\n","schema":{"type":"string","maxLength":64}}},"headerSchemaId":"schema_2"},{"code":"400","description":"Bad Request","mediaType":"application/json; charset=utf-8","mediaTypes":["application/json; charset=utf-8","application/json"],"mediaTypeContent":{"application/json; charset=utf-8":{"schemaId":"components/schemas/CommonErrorResponse"},"application/json":{"exampleIds":["paths/~1fields~1definitions~1Usage/put/responses/400/content/application~1json/examples/response"]}},"schemaId":"components/schemas/CommonErrorResponse","headers":{"Zuora-Request-Id":{"description":"The Zuora internal identifier of the API call. You cannot control the value of this header.\n","schema":{"type":"string","minLength":36,"maxLength":36}},"Zuora-Track-Id":{"description":"A custom identifier for tracing the API call. If you specified a tracing identifier in the request headers, Zuora returns the same tracing identifier. Otherwise, Zuora does not set this header.\n","schema":{"type":"string","maxLength":64}}},"headerSchemaId":"schema_2"},{"code":"412","description":"Precondition Failed","mediaType":"application/json; charset=utf-8","mediaTypes":["application/json; charset=utf-8","application/json"],"mediaTypeContent":{"application/json; charset=utf-8":{"schemaId":"components/schemas/CommonErrorResponse"},"application/json":{"exampleIds":["paths/~1fields~1definitions~1Usage/put/responses/412/content/application~1json/examples/response"]}},"schemaId":"components/schemas/CommonErrorResponse","headers":{"Zuora-Request-Id":{"description":"The Zuora internal identifier of the API call. You cannot control the value of this header.\n","schema":{"type":"string","minLength":36,"maxLength":36}},"Zuora-Track-Id":{"description":"A custom identifier for tracing the API call. If you specified a tracing identifier in the request headers, Zuora returns the same tracing identifier. Otherwise, Zuora does not set this header.\n","schema":{"type":"string","maxLength":64}}},"headerSchemaId":"schema_2"}],"pointer":"/paths/~1fields~1definitions~1Usage/put/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"schema_10","mediaTypes":["application/json; charset=utf-8","application/json"],"mediaTypeContent":{"application/json; charset=utf-8":{"schemaId":"schema_10"},"application/json":{"exampleIds":["paths/~1fields~1definitions~1Usage/put/responses/200/content/application~1json/examples/response"]}}},{"code":"400","schemaId":"components/schemas/CommonErrorResponse","mediaTypes":["application/json; charset=utf-8","application/json"],"mediaTypeContent":{"application/json; charset=utf-8":{"schemaId":"components/schemas/CommonErrorResponse"},"application/json":{"exampleIds":["paths/~1fields~1definitions~1Usage/put/responses/400/content/application~1json/examples/response"]}}},{"code":"412","schemaId":"components/schemas/CommonErrorResponse","mediaTypes":["application/json; charset=utf-8","application/json"],"mediaTypeContent":{"application/json; charset=utf-8":{"schemaId":"components/schemas/CommonErrorResponse"},"application/json":{"exampleIds":["paths/~1fields~1definitions~1Usage/put/responses/412/content/application~1json/examples/response"]}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/usage-(with-active-rating)/put_customfieldsdefinitioninglobalnamespace"}],"panels":[]}]},"httpPath":"/fields/definitions/Usage"},{"label":"Delete schema of Usage custom field definition","deprecated":false,"httpVerb":"delete","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/archive/active-rating/active-rating-api/active-rating-api/usage-(with-active-rating)/delete_customfieldsdefinitioninglobalnamespace","routeSlug":"/archive/active-rating/active-rating-api/active-rating-api/usage-(with-active-rating)/delete_customfieldsdefinitioninglobalnamespace","metadata":{"seo":{"title":"Delete schema of Usage custom field definition","description":"Note: This operation is available only if Active Rating and Custom Fields services are enabled. The Custom Fields service is in Limited Availability and Active Rating is in development. If you wish to have access to the services, submit a request at Zuora Global Support."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"DELETE_CustomFieldsDefinitionInGlobalNamespace","name":"Delete schema of Usage custom field definition","isWebhook":false,"pointer":"/paths/~1fields~1definitions~1Usage/delete","hasSamples":false},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Delete schema of Usage custom field definition","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Note:"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" This operation is available only if Active Rating and Custom Fields services are enabled. The Custom Fields service is in "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Limited Availability"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" and Active Rating is in development. If you wish to have access to the services, submit a request at "},"children":[]},{"$$mdtype":"Node","type":"link","inline":true,"attributes":{"href":"http://support.zuora.com/"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Zuora Global Support"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Before calling this operation, you must delete all data stored in the custom fields. To delete all data stored in custom fields that are part of Active Rating, use "},"children":[]},{"$$mdtype":"Node","type":"link","inline":true,"attributes":{"href":"/v1-api-reference/api/usage/object_deleteusage"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Delete usage record"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"When you delete the schema of a custom fields definition, Zuora sets "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"\"schema\": {}"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" and "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"\"type\": \"_internal\""},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" for the custom fields definition."},"children":[]}]}]}]},{"nodeType":"item-content","variant":"headers","label":"Headers","labelTranslationKey":"header","parameters":[{"name":"Authorization","in":"header","schemaId":"schema_0","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"Bearer {token}"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" for a valid OAuth token."},"children":[]}]}]}],"required":true},{"name":"Zuora-Entity-Ids","in":"header","schemaId":"schema_0","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"An entity ID. If you have "},"children":[]},{"$$mdtype":"Node","type":"link","inline":true,"attributes":{"href":"https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Zuora Multi-entity"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you do not need to set this header."},"children":[]}]}]}]},{"name":"Zuora-Track-Id","in":"header","schemaId":"schema_1","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"The value of this field must use the US-ASCII character set and must not include any of the following characters: colon ("},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":":"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"), semicolon ("},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":";"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"), double quote ("},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"\""},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"), and quote ("},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"'"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":")."},"children":[]}]}]}]}],"pointer":"/paths/~1fields~1definitions~1Usage/delete/parameters"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"DELETE","path":"/fields/definitions/Usage","servers":[{"url":"https://rest.zuora.com"}],"parameters":{"path":[],"query":[],"querystring":[],"header":[{"name":"Authorization","in":"header","required":true,"schemaId":"schema_0"},{"name":"Zuora-Entity-Ids","in":"header","required":false,"schemaId":"schema_0"},{"name":"Zuora-Track-Id","in":"header","required":false,"schemaId":"schema_1"}],"cookie":[]},"security":[],"responseCodes":["200","400"],"pointer":"/fields/definitions/Usage","href":"usage-(with-active-rating)/delete_customfieldsdefinitioninglobalnamespace","openApiOperationId":"DELETE_CustomFieldsDefinitionInGlobalNamespace","summary":"Delete schema of Usage custom field definition"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://rest.zuora.com"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"OK","mediaType":"application/json; charset=utf-8","mediaTypes":["application/json; charset=utf-8","application/json"],"mediaTypeContent":{"application/json; charset=utf-8":{"schemaId":"schema_10"},"application/json":{"exampleIds":["paths/~1fields~1definitions~1Usage/delete/responses/200/content/application~1json/examples/response"]}},"schemaId":"schema_10","headers":{"Zuora-Request-Id":{"description":"The Zuora internal identifier of the API call. You cannot control the value of this header.\n","schema":{"type":"string","minLength":36,"maxLength":36}},"Zuora-Track-Id":{"description":"A custom identifier for tracing the API call. If you specified a tracing identifier in the request headers, Zuora returns the same tracing identifier. Otherwise, Zuora does not set this header.\n","schema":{"type":"string","maxLength":64}}},"headerSchemaId":"schema_2"},{"code":"400","description":"Bad Request","mediaType":"application/json; charset=utf-8","mediaTypes":["application/json; charset=utf-8","application/json"],"mediaTypeContent":{"application/json; charset=utf-8":{"schemaId":"components/schemas/CommonErrorResponse"},"application/json":{"exampleIds":["paths/~1fields~1definitions~1Usage/delete/responses/400/content/application~1json/examples/response"]}},"schemaId":"components/schemas/CommonErrorResponse","headers":{"Zuora-Request-Id":{"description":"The Zuora internal identifier of the API call. You cannot control the value of this header.\n","schema":{"type":"string","minLength":36,"maxLength":36}},"Zuora-Track-Id":{"description":"A custom identifier for tracing the API call. If you specified a tracing identifier in the request headers, Zuora returns the same tracing identifier. Otherwise, Zuora does not set this header.\n","schema":{"type":"string","maxLength":64}}},"headerSchemaId":"schema_2"}],"pointer":"/paths/~1fields~1definitions~1Usage/delete/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"schema_10","mediaTypes":["application/json; charset=utf-8","application/json"],"mediaTypeContent":{"application/json; charset=utf-8":{"schemaId":"schema_10"},"application/json":{"exampleIds":["paths/~1fields~1definitions~1Usage/delete/responses/200/content/application~1json/examples/response"]}}},{"code":"400","schemaId":"components/schemas/CommonErrorResponse","mediaTypes":["application/json; charset=utf-8","application/json"],"mediaTypeContent":{"application/json; charset=utf-8":{"schemaId":"components/schemas/CommonErrorResponse"},"application/json":{"exampleIds":["paths/~1fields~1definitions~1Usage/delete/responses/400/content/application~1json/examples/response"]}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/usage-(with-active-rating)/delete_customfieldsdefinitioninglobalnamespace"}],"panels":[]}]},"httpPath":"/fields/definitions/Usage"}],"content":{"contentType":"group","meta":{"name":"Usage (with Active Rating)"},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Usage (with Active Rating)","showPageActions":true},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Note:"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" The Usage (with Active Rating) operations are part of the "},"children":[]},{"$$mdtype":"Node","type":"link","inline":true,"attributes":{"href":"https://knowledgecenter.zuora.com/CB_Billing/J_Billing_Operations/H_Active_Rating"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Active Rating"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" feature. You cannot use these operations with the "},"children":[]},{"$$mdtype":"Node","type":"link","inline":true,"attributes":{"href":"/v1-api-reference/api/usage"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Usage"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" operations."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"If a 500 or 502 error occurs when you call any of the Usage (with Active Rating) operations, the first troubleshooting step is to retry the call."},"children":[]}]}]}]}],"panels":[{"children":[{"kind":"group-items","title":"Operations","titleTranslationKey":"operations","items":[{"title":"/usage","summary":"Create usage records","prefix":{"name":"post","color":"post"},"badges":[],"link":"/usage-(with-active-rating)/post_usagerecords","deprecated":false},{"title":"/usage/{id}","summary":"Update usage record","prefix":{"name":"put","color":"put"},"badges":[],"link":"/usage-(with-active-rating)/put_usagerecord","deprecated":false},{"title":"/usage/{id}","summary":"Get usage record","prefix":{"name":"get","color":"get"},"badges":[],"link":"/usage-(with-active-rating)/get_usagerecord","deprecated":false},{"title":"/usage/{id}","summary":"Delete usage record","prefix":{"name":"delete","color":"delete"},"badges":[],"link":"/usage-(with-active-rating)/delete_usagerecord","deprecated":false},{"title":"/usage/query","summary":"Query usage records","prefix":{"name":"get","color":"get"},"badges":[],"link":"/usage-(with-active-rating)/get_usagerecordsquery","deprecated":false},{"title":"/usage/stream-query","summary":"Query usage records in stream","prefix":{"name":"get","color":"get"},"badges":[],"link":"/usage-(with-active-rating)/get_usagerecordsstreamquery","deprecated":false},{"title":"/usage-imports","summary":"Import usage file","prefix":{"name":"post","color":"post"},"badges":[],"link":"/usage-(with-active-rating)/post_importusagefile","deprecated":false},{"title":"/usage-imports","summary":"Get usage imports","prefix":{"name":"get","color":"get"},"badges":[],"link":"/usage-(with-active-rating)/get_usageimports","deprecated":false},{"title":"/usage-imports/{id}/detail","summary":"Get details of usage import","prefix":{"name":"get","color":"get"},"badges":[],"link":"/usage-(with-active-rating)/get_usageimportdetails","deprecated":false},{"title":"/usage-imports/{id}/status","summary":"Get status of usage import","prefix":{"name":"get","color":"get"},"badges":[],"link":"/usage-(with-active-rating)/get_usageimportstatus","deprecated":false},{"title":"/usage-imports/{id}/import-file","summary":"Download usage import file","prefix":{"name":"get","color":"get"},"badges":[],"link":"/usage-(with-active-rating)/get_downloadusageimportfile","deprecated":false},{"title":"/usage-imports/{id}/errors","summary":"Download usage import failure file","prefix":{"name":"get","color":"get"},"badges":[],"link":"/usage-(with-active-rating)/get_downloadusageimportfailurefile","deprecated":false},{"title":"/usage-imports/templates/{fileType}","summary":"Download usage file template","prefix":{"name":"get","color":"get"},"badges":[],"link":"/usage-(with-active-rating)/get_downloadusagefiletemplate","deprecated":false},{"title":"/rating/rated-results/account/{accountNumber}","summary":"Get rating results by account","prefix":{"name":"get","color":"get"},"badges":[],"link":"/usage-(with-active-rating)/get_ratingresultsbyaccount","deprecated":false},{"title":"/rating/rated-results/subscription/{subscriptionNumber}","summary":"Get rating results by subscription","prefix":{"name":"get","color":"get"},"badges":[],"link":"/usage-(with-active-rating)/get_ratingresultsbysubscripiton","deprecated":false},{"title":"/rating/rated-results/charge/{chargeNumber}","summary":"Get rating results by charge","prefix":{"name":"get","color":"get"},"badges":[],"link":"/usage-(with-active-rating)/get_ratingresultsbycharge","deprecated":false},{"title":"/rating/rated-usages/account/{accountNumber}","summary":"Get rated usage by account","prefix":{"name":"get","color":"get"},"badges":[],"link":"/usage-(with-active-rating)/get_usageratingbyaccount","deprecated":false},{"title":"/rating/rated-usages/subscription/{subscriptionNumber}","summary":"Get rated usage by subscription","prefix":{"name":"get","color":"get"},"badges":[],"link":"/usage-(with-active-rating)/get_usageratingbysubscription","deprecated":false},{"title":"/rating/rated-usages/charge/{chargeNumber}","summary":"Get rated usage by charge","prefix":{"name":"get","color":"get"},"badges":[],"link":"/usage-(with-active-rating)/get_usageratingbycharge","deprecated":false},{"title":"/fields/definitions/Usage","summary":"Get Usage custom field definition","prefix":{"name":"get","color":"get"},"badges":[],"link":"/usage-(with-active-rating)/get_customfieldsdefinitioninglobalnamespace","deprecated":false},{"title":"/fields/definitions/Usage","summary":"Set schema of Usage custom field definition","prefix":{"name":"put","color":"put"},"badges":[],"link":"/usage-(with-active-rating)/put_customfieldsdefinitioninglobalnamespace","deprecated":false},{"title":"/fields/definitions/Usage","summary":"Delete schema of Usage custom field definition","prefix":{"name":"delete","color":"delete"},"badges":[],"link":"/usage-(with-active-rating)/delete_customfieldsdefinitioninglobalnamespace","deprecated":false}]}]}]}]}}],"store":{"schemaStore":{"components/schemas/POSTUsageRecordRequestType":{"id":"components/schemas/POSTUsageRecordRequestType","kind":"json-schema","title":"POSTUsageRecordRequestType","data":{"example":{"data":[{"accountNumber":"A00002689","tag":"AccountNumber:A00002689","quantity":"15","unitOfMeasure":"Each","startDateTime":"2017-01-14T21:32:00+08:00","description":"Disk usage for A00002689","groupId":"Group A"},{"accountNumber":"A00002689","tag":"AccountNumber:A00002689","quantity":"15","unitOfMeasure":"Each","startDateTime":"2017-01-14T21:32:00+08:00","description":"Disk usage for A00002689","groupId":"Group B"}]},"type":"object","properties":{"data":{"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"(Conditional) This field is only used for creating multiple usage records. If you create a single usage record, you do not need to specify the "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"data"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" field in the request."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"An array of usage records information."},"children":[]}]}]}],"type":"array","items":{"$ref":"#/components/schemas/POSTUsageType"}}}}},"components/schemas/POSTUsageType":{"id":"components/schemas/POSTUsageType","kind":"json-schema","title":"data","data":{"title":"data","type":"object","required":["accountNumber","quantity","startDateTime","tag","unitOfMeasure"],"properties":{"accountNumber":{"type":"string","maxLength":70,"description":"The account number associated with the usage record. The customer account must be the subscription owner.\n\nThe account number must be valid, and the account must be active.\n"},"customFields":{"$ref":"#/components/schemas/CustomFields"},"description":{"type":"string","maxLength":200,"description":"The description of the usage record.\n"},"quantity":{"type":"number","format":"double","description":"The number of units the usage record is used.\n"},"uniqueKey":{"type":"string","maxLength":50,"description":"A unique key of the usage record. You can define the unique key for each usage record.\n"},"startDateTime":{"type":"string","format":"date-time","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"The start date and time when the usage is consumed."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"See "},"children":[]},{"$$mdtype":"Node","type":"link","inline":true,"attributes":{"href":"https://knowledgecenter.zuora.com/CB_Billing/WA_Dates_in_Zuora/A_Date_and_dateTime_Format#section_2"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"supported date and time format"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]}]},"tag":{"type":"string","maxLength":255,"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Specifies which subscription, charge, or account the usage record is related to."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"The value of this field must be in the following formats:"},"children":[]}]}]},{"$$mdtype":"Node","type":"list","attributes":{"ordered":false,"marker":"-"},"children":[{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"SubscriptionNumber:"},"children":[]},{"$$mdtype":"Node","type":"em","inline":true,"attributes":{"marker":"*"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"value"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"ChargeNumber:"},"children":[]},{"$$mdtype":"Node","type":"em","inline":true,"attributes":{"marker":"*"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"value"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"AccountNumber:"},"children":[]},{"$$mdtype":"Node","type":"em","inline":true,"attributes":{"marker":"*"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"value"},"children":[]}]}]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"For example, ChargeNumber:C-00000002"},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"If the value of this field is in AccountNumber:"},"children":[]},{"$$mdtype":"Node","type":"em","inline":true,"attributes":{"marker":"*"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"value"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" format, the value must be the same as the value of the "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"accountNumber"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" field."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"If the value of this field is in the ChargeNumber:"},"children":[]},{"$$mdtype":"Node","type":"em","inline":true,"attributes":{"marker":"*"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"value"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" format, the value must be the same as the value of the "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"unitOfMeasure"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" field corresponding to the usage charge."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"The subscription number, charge number, and account number must be active, and the subscription cannot be in Draft status."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"The customer account must be the subscription and charge owner."},"children":[]}]}]}]},"unitOfMeasure":{"type":"string","maxLength":50,"description":"The unit used to measure the usage.\n\nThe value of this field is case insensitive.\n"},"groupId":{"type":"string","maxLength":50,"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"The group ID used for "},"children":[]},{"$$mdtype":"Node","type":"link","inline":true,"attributes":{"href":"https://knowledgecenter.zuora.com/CB_Billing/J_Billing_Operations/Usage/Usage_Rating_by_Group"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"usage rating by group"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":". Zuora groups the usage records based on the group ID when you choose the Custom Group option for usage rating."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Note:"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" The Usage Rating by Group feature is in "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Limited Availability"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":". If you wish to have access to the feature, submit a request at "},"children":[]},{"$$mdtype":"Node","type":"link","inline":true,"attributes":{"href":"http://support.zuora.com/"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Zuora Global Support"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]}]}}}},"components/schemas/PUTUsageType":{"id":"components/schemas/PUTUsageType","kind":"json-schema","title":"PUTUsageType","data":{"type":"object","example":{"quantity":"15","unitOfMeasure":"Each","startDateTime":"2017-01-14T21:00:00+08:00","description":"Disk usage for A00002689"},"properties":{"customFields":{"$ref":"#/components/schemas/CustomFields"},"description":{"type":"string","maxLength":200,"description":"The description of the usage record.\n"},"quantity":{"type":"number","format":"double","description":"The number of units the usage record is used.\n"},"startDateTime":{"type":"string","format":"date-time","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"The start date and time when the usage is consumed. See "},"children":[]},{"$$mdtype":"Node","type":"link","inline":true,"attributes":{"href":"https://knowledgecenter.zuora.com/CB_Billing/WA_Dates_in_Zuora/A_Date_and_dateTime_Format#section_2"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"supported date and time format"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]}]},"unitOfMeasure":{"type":"string","maxLength":50,"description":"The definable unit used to measure consumed usage.\n"}}}},"components/schemas/QueryUsageResponseType":{"id":"components/schemas/QueryUsageResponseType","kind":"json-schema","title":"QueryUsageResponseType","data":{"type":"object","properties":{"data":{"type":"array","description":"An array of usage records information.\n","items":{"$ref":"#/components/schemas/GETUsageResponseType"}}}}},"components/schemas/GETUsageResponseType":{"id":"components/schemas/GETUsageResponseType","kind":"json-schema","title":"data","data":{"type":"object","title":"data","properties":{"accountNumber":{"type":"string","maxLength":70,"description":"The account number associated with this usage record.\n"},"createdBy":{"type":"string","maxLength":36,"description":"The ID of the user who created this usage record.\n"},"createdOn":{"type":"string","format":"date-time","description":"The start date and time when this usage record is created.\n"},"customFields":{"$ref":"#/components/schemas/CustomFields"},"description":{"type":"string","maxLength":200,"description":"The description of this usage record.\n"},"fileName":{"type":"string","maxLength":50,"description":"The name of the import file when the usage record is imported from the file.\n"},"groupId":{"type":"string","maxLength":50,"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"The group ID used for "},"children":[]},{"$$mdtype":"Node","type":"link","inline":true,"attributes":{"href":"https://knowledgecenter.zuora.com/CB_Billing/J_Billing_Operations/Usage/Usage_Rating_by_Group"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"usage rating by group"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":". Zuora groups the usage records based on the group ID when you choose the Custom Group option for usage rating."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Note:"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" The Usage Rating by Group feature is in "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Limited Availability"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":". If you wish to have access to the feature, submit a request at "},"children":[]},{"$$mdtype":"Node","type":"link","inline":true,"attributes":{"href":"http://support.zuora.com/"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Zuora Global Support"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]}]},"id":{"type":"string","maxLength":36,"description":"The ID of this usage record.\n"},"importId":{"type":"string","maxLength":36,"description":"The ID of the usage import if this usage record is imported through a usage file.\n"},"quantity":{"type":"number","format":"double","description":"The number of units this usage record is used.\n"},"startDateTime":{"type":"string","format":"date-time","description":"The start date and time when this usage is consumed.\n"},"status":{"type":"string","enum":["Pending","Rated","Processed"],"description":"The status of this usage record.\n"},"tag":{"type":"string","maxLength":50,"description":"Specifies which subscription, charge, or account this usage record is related to.\n"},"uniqueKey":{"type":"string","maxLength":50,"description":"A unique key of this usage record. You can define the unique key for each usage record.\n"},"unitOfMeasure":{"type":"string","maxLength":50,"description":"The unit used to measure the usage.\n"},"updatedBy":{"type":"string","maxLength":36,"description":"The ID of the user who last updated this usage record.\n"},"updatedOn":{"type":"string","format":"date-time","description":"The date and time when this usage record is last updated.\n"}}}},"components/schemas/POSTUsageRecordResponseType":{"id":"components/schemas/POSTUsageRecordResponseType","kind":"json-schema","title":"POSTUsageRecordResponseType","data":{"type":"object","properties":{"data":{"description":"(Conditional) This field is only returned in the response if you create multiple usage records. If you create a single usage record, this field will not be returned in the response.\n\nAn array of usage record IDs you created.\n","type":"array","items":{"type":"object","title":"data","properties":{"id":{"type":"string","description":"The ID of the usage record.\n"}}}}}}},"components/schemas/PUTUpdateUsageResponseType":{"id":"components/schemas/PUTUpdateUsageResponseType","kind":"json-schema","title":"PUTUpdateUsageResponseType","data":{"type":"object","properties":{"id":{"type":"string","description":"The ID of the usage record that is updated.\n"}}}},"components/schemas/DELETEUsageResponseType":{"id":"components/schemas/DELETEUsageResponseType","kind":"json-schema","title":"DELETEUsageResponseType","data":{"type":"object","properties":{"success":{"type":"boolean","description":"Indicates whether the call succeeded.\n"}}}},"components/schemas/CustomFields":{"id":"components/schemas/CustomFields","kind":"json-schema","title":"customFields","data":{"type":"object","title":"customFields","description":"Container for custom fields.\n","additionalProperties":{"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Custom fields. Custom field names are case sensitive. For more information about custom fields, see "},"children":[]},{"$$mdtype":"Node","type":"link","inline":true,"attributes":{"href":"/archive/active-rating/active-rating-api"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Custom Fields"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]}]}}},"components/schemas/CommonUsageErrorResponse":{"id":"components/schemas/CommonUsageErrorResponse","kind":"json-schema","title":"CommonUsageErrorResponse","data":{"type":"object","properties":{"error":{"type":"object","description":"Container for the error information.\n","properties":{"message":{"description":"The error message that is returned. If multiple errors occurred, the first error message is returned in this field.\n","type":"string"},"errors":{"type":"array","description":"Container for the information about detailed errors.\n","items":{"type":"object","title":"errors","properties":{"objectName":{"description":"The object where the error occurred.\n","type":"string"},"field":{"description":"The field where the error occurred.\n","type":"string"},"reason":{"description":"The reason for the error.\n","type":"string"},"message":{"description":"The error message that is returned.\n","type":"string"}}}}}}}}},"components/schemas/POSTUsageImportResponseType":{"id":"components/schemas/POSTUsageImportResponseType","kind":"json-schema","title":"POSTUsageImportResponseType","data":{"type":"object","properties":{"id":{"type":"string","description":"The ID of the usage import.\n"},"status":{"type":"string","maxLength":32,"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"The processing status of the usage import file."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Possible values:"},"children":[]}]}]},{"$$mdtype":"Node","type":"list","attributes":{"ordered":false,"marker":"-"},"children":[{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"PENDING"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":": The usage import file is waiting to be processed."},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"PROCESSING"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":": The usage import file is being processed."},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"COMPLETED"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":": The processing of the usage import file is completed successfully."},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"VALIDATION_FAILED"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":": The processing of the usage import file is completed with validation errors. If a validation error occurs in one usage record, no usage records will be imported from the usage import file."},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"IMPORTED_WITH_ERRORS"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":": The usage import file is imported with errors because of some exceptions. Not all usage records are imported from the usage import file. If this status is displayed, contact "},"children":[]},{"$$mdtype":"Node","type":"link","inline":true,"attributes":{"href":"http://support.zuora.com/"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Zuora Global Support"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" for help."},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"FAILED"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":": The usage import file fails to be processed."},"children":[]}]}]}]}],"enum":["PENDING","PROCESSING","COMPLETED","VALIDATION_FAILED","IMPORTED_WITH_ERRORS","FAILED"]}}}},"components/schemas/UsageImports":{"id":"components/schemas/UsageImports","kind":"json-schema","title":"UsageImports","data":{"type":"object","properties":{"data":{"type":"array","description":"An array of usage imports information.\n","items":{"$ref":"#/components/schemas/UsageImport"}}}}},"components/schemas/UsageImport":{"id":"components/schemas/UsageImport","kind":"json-schema","title":"data","data":{"type":"object","title":"data","properties":{"id":{"type":"string","maxLength":36,"description":"The ID of the usage import.\n"},"name":{"type":"string","maxLength":50,"description":"The name of the import file.\n"},"description":{"type":"string","maxLength":255,"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"The description of the import file."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"You can add some comments about the import file in this field. For example, "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"This import file contains 50 usage records related to four customer accounts."},"children":[]}]}]}]},"status":{"type":"string","maxLength":32,"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"The processing status of the usage import file."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Possible values:"},"children":[]}]}]},{"$$mdtype":"Node","type":"list","attributes":{"ordered":false,"marker":"-"},"children":[{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"PENDING"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":": The usage import file is waiting to be processed."},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"PROCESSING"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":": The usage import file is being processed."},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"COMPLETED"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":": The processing of the usage import file is completed successfully."},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"VALIDATION_FAILED"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":": The processing of the usage import file is completed with validation errors. If a validation error occurs in one usage record, no usage records will be imported from the usage import file."},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"IMPORTED_WITH_ERRORS"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":": The usage import file is imported with errors because of some exceptions. Not all usage records are imported from the usage import file. If this status is displayed, contact "},"children":[]},{"$$mdtype":"Node","type":"link","inline":true,"attributes":{"href":"http://support.zuora.com/"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Zuora Global Support"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" for help."},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"FAILED"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":": The usage import file fails to be processed."},"children":[]}]}]}]}],"enum":["PENDING","PROCESSING","COMPLETED","VALIDATION_FAILED","IMPORTED_WITH_ERRORS","FAILED"]},"error":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"The error message of the usage import failure."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"The value of this field is the detailed error message if the usage import status is "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"FAILED"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":". Otherwise, the value of this field is "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"null"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]}]},"processStart":{"type":"string","format":"date-time","description":"The date and time when the file processing is started.\n"},"processEnd":{"type":"string","format":"date-time","description":"The date and time when the file processing is completed.\n"},"totalCount":{"type":"number","format":"long","description":"The total number of usage records that are validated.\n"},"errorCount":{"type":"number","format":"long","description":"The number of usage records with validation errors.\n\nIf a validation error occurs in any usage record, no usage records will be imported from the usage import file.\n"},"importedCount":{"type":"number","format":"long","description":"The number of usage records that are imported successfully.\n"},"createdBy":{"type":"string","maxLength":32,"description":"The ID of the user who imported this usage file.\n"},"createdOn":{"type":"string","format":"date-time","description":"The date and time when you submit the request for importing the usage file.\n"},"updatedBy":{"type":"string","maxLength":32,"description":"The ID of the user who updated the usage import file.\n"},"updatedOn":{"type":"string","format":"date-time","description":"The date and time when the progress of the file processing is updated.\n"}}}},"components/schemas/GetUsageDetailResponseType":{"id":"components/schemas/GetUsageDetailResponseType","kind":"json-schema","title":"GetUsageDetailResponseType","data":{"type":"object","properties":{"id":{"type":"string","maxLength":36,"description":"The ID of the usage import.\n"},"name":{"type":"string","maxLength":50,"description":"The name of the usage import file.\n"},"description":{"type":"string","maxLength":255,"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"The description of the import file."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"You can add some comments about the import file in this field. For example, "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"This import file contains 50 usage records related to four customer accounts."},"children":[]}]}]}]},"status":{"type":"string","maxLength":32,"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"The processing status of the usage import file."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Possible values:"},"children":[]}]}]},{"$$mdtype":"Node","type":"list","attributes":{"ordered":false,"marker":"-"},"children":[{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"PENDING"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":": The usage import file is waiting to be processed."},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"PROCESSING"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":": The usage import file is being processed."},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"COMPLETED"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":": The processing of the usage import file is completed successfully."},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"VALIDATION_FAILED"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":": The processing of the usage import file is completed with validation errors. If a validation error occurs in one usage record, no usage records will be imported from the usage import file."},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"IMPORTED_WITH_ERRORS"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":": The usage import file is imported with errors because of some exceptions. Not all usage records are imported from the usage import file. If this status is displayed, contact "},"children":[]},{"$$mdtype":"Node","type":"link","inline":true,"attributes":{"href":"http://support.zuora.com/"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Zuora Global Support"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" for help."},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"FAILED"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":": The usage import file fails to be processed."},"children":[]}]}]}]}],"enum":["PENDING","PROCESSING","COMPLETED","VALIDATION_FAILED","IMPORTED_WITH_ERRORS","FAILED"]},"error":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"The error message of the usage import failure."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"The value of this field is the detailed error message if the usage import status is "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"FAILED"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":". Otherwise, the value of this field is "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"null"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]}]},"processStart":{"type":"string","format":"date-time","description":"The date and time when the file processing is started.\n"},"processEnd":{"type":"string","format":"date-time","description":"The date and time when the file processing is completed.\n"},"totalCount":{"type":"number","format":"long","description":"The total number of usage records that are validated.\n"},"errorCount":{"type":"number","format":"long","description":"The number of usage records with validation errors.\n\nIf a validation error occurs in any usage record, no usage records will be imported from the usage import file.\n"},"importedCount":{"type":"number","format":"long","description":"The number of usage records that are imported successfully.\n"},"createdBy":{"type":"string","maxLength":32,"description":"The ID of the user who imported this usage file.\n"},"createdOn":{"type":"string","format":"date-time","description":"The date and time when you submit the request of importing the usage file.\n"},"updatedBy":{"type":"string","maxLength":32,"description":"The ID of the user who updated the import file.\n"},"updatedOn":{"type":"string","format":"date-time","description":"The date and time when the progress of the file processing is updated.\n"}}}},"components/schemas/GETUsageImportStatusResponseType":{"id":"components/schemas/GETUsageImportStatusResponseType","kind":"json-schema","title":"GETUsageImportStatusResponseType","data":{"type":"object","properties":{"status":{"type":"string","maxLength":32,"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"The processing status of the usage import file."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Possible values:"},"children":[]}]}]},{"$$mdtype":"Node","type":"list","attributes":{"ordered":false,"marker":"-"},"children":[{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"PENDING"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":": The usage import file is waiting to be processed."},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"PROCESSING"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":": The usage import file is being processed."},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"COMPLETED"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":": The processing of the usage import file is completed successfully."},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"VALIDATION_FAILED"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":": The processing of the usage import file is completed with validation errors. If a validation error occurs in one usage record, no usage records will be imported from the usage import file."},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"IMPORTED_WITH_ERRORS"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":": The usage import file is imported with errors because of some exceptions. Not all usage records are imported from the usage import file. If this status is displayed, contact "},"children":[]},{"$$mdtype":"Node","type":"link","inline":true,"attributes":{"href":"http://support.zuora.com/"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Zuora Global Support"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" for help."},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"FAILED"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":": The usage import file fails to be processed."},"children":[]}]}]}]}],"enum":["PENDING","PROCESSING","COMPLETED","VALIDATION_FAILED","IMPORTED_WITH_ERRORS","FAILED"]}}}},"components/schemas/CommonUsageImportsErrorResponse":{"id":"components/schemas/CommonUsageImportsErrorResponse","kind":"json-schema","title":"CommonUsageImportsErrorResponse","data":{"type":"object","properties":{"error":{"type":"object","description":"Container for the error information.\n","properties":{"message":{"description":"The error message that is returned. If multiple errors occurred, the first error message is returned in this field.\n","type":"string"},"errors":{"type":"array","description":"Container for the information about detailed errors.\n","items":{"type":"object","title":"errors","properties":{"objectName":{"description":"The object where the error occurred.\n","type":"string"},"rejectedValue":{"description":"The value that was rejected.\n","type":"string"},"reason":{"description":"The reason for the error.\n","type":"string"},"message":{"description":"The error message that is returned.\n","type":"string"}}}}}}}}},"components/schemas/GetRatedResultsType":{"id":"components/schemas/GetRatedResultsType","kind":"json-schema","title":"GetRatedResultsType","data":{"type":"object","properties":{"dataSet":{"type":"array","items":{"$ref":"#/components/schemas/GETARatedResultType"}},"cursor":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"The cursor indicator of the next page of data."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"You can pass in the value of the "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"cursor"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" field as the cursor parameter for a subsequent call to get the next page of data. If there is no data after the current page, the cursor returns "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"null"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]}]},"count":{"type":"integer","description":"The number of data sets in the returned page of the response.\n"},"hasMore":{"type":"boolean","description":"Whether the query results have more data after the current page.\n"}}}},"components/schemas/GETARatedResultType":{"id":"components/schemas/GETARatedResultType","kind":"json-schema","title":"dataSet","data":{"title":"dataSet","properties":{"id":{"type":"string","description":"The unique ID of the rating result item.\n"},"startDate":{"type":"string","format":"date","description":"The start date of the rating result.\n"},"endDate":{"type":"string","format":"date","description":"The end date of the rating result.\n"},"amount":{"type":"number","format":"double","description":"The rating amount of the charge.\n"},"currency":{"type":"string","description":"The type of the currency used in the charge.\n"},"additionalInfo":{"type":"object","properties":{"quantity":{"type":"number","format":"double","description":"The number of units that the charge consumed.\n"},"uom":{"type":"string","description":"The unit used to measure usage consumption.\n"},"isOverage":{"type":"boolean","description":"Whether this usage is using the overage charge model. This field is only returned in the response if you are using the overage charge model.\n"},"isCredit":{"type":"boolean","description":"Whether this usage is using the smoothing charge model. This field is only returned in the response if you are using the overage smoothing charge model.\n"}}},"ratedTime":{"type":"string","format":"datetime","description":"The date and time when the charge is rated.\n"},"chargeNumber":{"type":"string","description":"A unique number that identifies the charge.\n"},"subscriptionNumber":{"type":"string","description":"A unique number that identifies the subscription.\n"},"accountNumber":{"type":"string","description":"A unique number that identifies the account.\n"}},"type":"object"}},"components/schemas/GetRatedUsageResultsType":{"id":"components/schemas/GetRatedUsageResultsType","kind":"json-schema","title":"GetRatedUsageResultsType","data":{"type":"object","properties":{"dataSet":{"type":"array","items":{"$ref":"#/components/schemas/GetARatedUsageResultType"}},"cursor":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"The cursor indicator of the next page of data."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Pass the value of this field in as the "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"cursor"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" parameter for a subsequent call to get the next page of data. If there is no data after the current page, the cursor returns null."},"children":[]}]}]}]},"count":{"type":"integer","description":"The number of data sets in the returned page of the response.\n"},"hasMore":{"type":"boolean","description":"Whether the query results have more data after the current page.\n"}}}},"components/schemas/GetARatedUsageResultType":{"id":"components/schemas/GetARatedUsageResultType","kind":"json-schema","title":"dataSet","data":{"title":"dataSet","type":"object","properties":{"id":{"type":"string","description":"The unique ID of this rated usage.\n"},"startDate":{"type":"string","format":"date","description":"The start date when this usage is consumed. The date is returned in your tenant time zone.\n"},"quantity":{"type":"number","format":"double","description":"The number of units used.\n"},"unitOfMeasure":{"type":"string","description":"The unit used to measure the usage.\n"},"amount":{"type":"number","format":"double","description":"The rating amount of this usage.\n"},"currency":{"type":"string","description":"The type of the currency used in this usage.\n"},"accountNumber":{"type":"string","description":"A unique number of the account that associated with this usage.\n"},"subscriptionNumber":{"type":"string","description":"A unique number of the subscription that associated with this usage.\n"},"chargeNumber":{"type":"string","description":"A unique number of the charge that associated with this usage.\n"},"usageId":{"type":"string","description":"The unique ID of this usage.\n"},"ratedResultId":{"type":"string","description":"The ID of the rated result that associated with this rated usage.\n"}}}},"components/schemas/CommonRatingErrorResponse":{"id":"components/schemas/CommonRatingErrorResponse","kind":"json-schema","title":"CommonRatingErrorResponse","data":{"type":"object","properties":{"reasons":{"type":"array","description":"Container for the error information.\n","items":{"type":"object","properties":{"code":{"description":"The error code of the response.\n","type":"string"},"message":{"description":"The error message that is returned.\n","type":"string"}}}}}}},"components/schemas/UpdateCustomFieldsDefinitionRequestNoNamespace":{"id":"components/schemas/UpdateCustomFieldsDefinitionRequestNoNamespace","kind":"json-schema","title":"Custom Fields Definition Schema","data":{"type":"object","title":"Custom Fields Definition Schema","additionalProperties":true,"example":{"title":"Usage","type":"object","properties":{"firstName__c":{"type":"string"},"lastName__c":{"type":"string"},"country__c":{"type":"string"},"age__c":{"description":"Age in years","type":"integer","minimum":0}},"required":["firstName__c","lastName__c"]}}},"components/schemas/CommonErrorResponse":{"id":"components/schemas/CommonErrorResponse","kind":"json-schema","title":"CommonErrorResponse","data":{"type":"object","properties":{"code":{"type":"integer","format":"int32","description":"The error code.\n"},"message":{"type":"string","description":"The error message.\n"}}}},"components/schemas/CustomFieldsDefinitionNoNamespace":{"id":"components/schemas/CustomFieldsDefinitionNoNamespace","kind":"json-schema","title":"CustomFieldsDefinitionNoNamespace","data":{"type":"object","description":"A custom fields definition.\n","properties":{"id":{"type":"string","format":"uuid","description":"The internal ID of the custom fields definition.\n"},"type":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"The type of the custom fields definition. The type is unique within the global namespace."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"The value "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"_internal"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" indicates that no schema has been set for the custom fields definition."},"children":[]}]}]}]},"createdById":{"type":"string","description":"The internal ID of the Zuora user who first set the schema.\n"},"updatedById":{"type":"string","description":"The internal ID of the Zuora user who last set the schema.\n"},"createdDate":{"type":"string","format":"date-time","description":"The date and time when the schema was first set.\n"},"updatedDate":{"type":"string","format":"date-time","description":"The date and time when the schema was last set.\n"},"schema":{"type":"object","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"The schema of the custom fields definition. The schema conforms to the "},"children":[]},{"$$mdtype":"Node","type":"link","inline":true,"attributes":{"href":"http://json-schema.org/specification.html"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"JSON Schema"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" specification."},"children":[]}]}]}]}}}},"schema_0":{"kind":"json-schema","data":{"type":"string"},"id":"schema_0"},"schema_1":{"kind":"json-schema","data":{"type":"string","maxLength":64},"id":"schema_1"},"schema_2":{"kind":"json-schema","data":{"type":"object","properties":{"Zuora-Request-Id":{"type":"string","minLength":36,"maxLength":36,"description":"The Zuora internal identifier of the API call. You cannot control the value of this header.\n"},"Zuora-Track-Id":{"type":"string","maxLength":64,"description":"A custom identifier for tracing the API call. If you specified a tracing identifier in the request headers, Zuora returns the same tracing identifier. Otherwise, Zuora does not set this header.\n"}}},"id":"schema_2"},"schema_3":{"kind":"json-schema","data":{"type":"integer","format":"int32","default":0},"id":"schema_3"},"schema_4":{"kind":"json-schema","data":{"type":"integer","format":"int32","minimum":25,"maximum":2000,"default":100},"id":"schema_4"},"schema_5":{"kind":"json-schema","data":{"type":"object","properties":{"file":{"description":"The path and name of the usage file to be imported.\n","type":"string","format":"binary"},"description":{"description":"The description of the usage file to be imported.\n","type":"string"}},"required":["file"]},"id":"schema_5"},"schema_6":{"kind":"json-schema","data":{"type":"object","properties":{"Zuora-Request-Id":{"type":"string","minLength":36,"maxLength":36,"description":"The Zuora internal identifier of the API call. You cannot control the value of this header.\n"},"Zuora-Track-Id":{"type":"string","maxLength":64,"description":"A custom identifier for tracing the API call. If you specified a tracing identifier in the request headers, Zuora returns the same tracing identifier. Otherwise, Zuora does not set this header.\n"},"Location":{"type":"string","format":"uri","description":"The URL for your import file. After you have uploaded the file, Zuora assigns the file to this address.\n"}}},"id":"schema_6"},"schema_7":{"kind":"json-schema","data":{"type":"string","enum":["csv","xls"]},"id":"schema_7"},"schema_8":{"kind":"json-schema","data":{"type":"string","format":"date"},"id":"schema_8"},"schema_9":{"kind":"json-schema","data":{"type":"object","properties":{"Zuora-Request-Id":{"type":"string","minLength":36,"maxLength":36,"description":"The Zuora internal identifier of the API call. You cannot control the value of this header.\n"},"Zuora-Track-Id":{"type":"string","maxLength":64,"description":"A custom identifier for tracing the API call. If you specified a tracing identifier in the request headers, Zuora returns the same tracing identifier. Otherwise, Zuora does not set this header.\n"},"ETag":{"type":"string","description":"The ETag of the resource. You can provide the ETag to operations that support the If-Match header.\n"}}},"id":"schema_9"},"schema_10":{"kind":"json-schema","data":{"type":"string","format":"uri"},"id":"schema_10"}},"exampleStore":{"paths/~1usage/post/responses/200/content/application~1json/examples/response":{"value":{"data":[{"id":"448219e0-faa4-4fd7-b13e-ecd308a92454"},{"id":"850fe5c1-8d2d-45e4-a01e-875a0199e108"}]},"key":"response","summary":"response","id":"paths/~1usage/post/responses/200/content/application~1json/examples/response"},"paths/~1usage/post/responses/400/content/application~1json/examples/response":{"value":{"error":{"message":"Invalid date format","errors":[{"objectName":"usage","field":"startDateTime","reason":"InvalidDateFormat","message":"Invalid date format"}]}},"key":"response","summary":"response","id":"paths/~1usage/post/responses/400/content/application~1json/examples/response"},"paths/~1usage/post/responses/409/content/application~1json/examples/response":{"value":{"error":{"message":"There is already a usage record with the same uniqueKey. The uniqueKey must be unique, value: abc","errors":[{"objectName":"usage","field":"uniqueKey","reason":"DuplicateValue","message":"There is already a usage record with the same uniqueKey. The uniqueKey must be unique, value: abc"}]}},"key":"response","summary":"response","id":"paths/~1usage/post/responses/409/content/application~1json/examples/response"},"paths/~1usage/post/responses/500/content/application~1json/examples/response":{"value":{"error":{"message":"An internal error occurred. Please retry the request."}},"key":"response","summary":"response","id":"paths/~1usage/post/responses/500/content/application~1json/examples/response"},"paths/~1usage~1{id}/put/responses/200/content/application~1json/examples/response":{"value":{"id":"035e35bd-880a-47c9-99df-830143b13aed"},"key":"response","summary":"response","id":"paths/~1usage~1{id}/put/responses/200/content/application~1json/examples/response"},"paths/~1usage~1{id}/put/responses/400/content/application~1json/examples/response":{"value":{"error":{"message":"Invalid date format","errors":[{"objectName":"usage","field":"startDateTime","reason":"InvalidDateFormat","message":"Invalid date format"}]}},"key":"response","summary":"response","id":"paths/~1usage~1{id}/put/responses/400/content/application~1json/examples/response"},"paths/~1usage~1{id}/put/responses/404/content/application~1json/examples/response":{"value":{"error":{"message":"The usage record 03c816b4-60a2-4586-9625-0003ce35010a could not be found.","errors":[{"objectName":"usage","reason":"ResourceNotFound","message":"The usage record 03c816b4-60a2-4586-9625-0003ce35010a could not be found."}]}},"key":"response","summary":"response","id":"paths/~1usage~1{id}/put/responses/404/content/application~1json/examples/response"},"paths/~1usage~1{id}/put/responses/409/content/application~1json/examples/response":{"value":{"error":{"message":"There is already a usage record with the same uniqueKey. The uniqueKey must be unique, value: abc","errors":[{"objectName":"usage","field":"uniqueKey","reason":"DuplicateValue","message":"There is already a usage record with the same uniqueKey. The uniqueKey must be unique, value: abc"}]}},"key":"response","summary":"response","id":"paths/~1usage~1{id}/put/responses/409/content/application~1json/examples/response"},"paths/~1usage~1{id}/put/responses/500/content/application~1json/examples/response":{"value":{"error":{"message":"Usage has been already billed and invoiced, and can no longer be modified 03c816b4-60a2-4586-9625-3ce3bc65010a"}},"key":"response","summary":"response","id":"paths/~1usage~1{id}/put/responses/500/content/application~1json/examples/response"},"paths/~1usage~1{id}/get/responses/200/content/application~1json/examples/response":{"value":{"id":"03c816b4-60a2-4586-9625-3ce3bc65010a","accountNumber":"A00000001","tag":"ChargeNumber:C-00000003","quantity":30,"unitOfMeasure":"Each","groupId":"B","startDateTime":"2017-02-03T00:00:00Z","uniqueKey":null,"description":null,"importId":null,"fileName":null,"status":"Processed","customFields":{"username":"Grace","age":20},"createdOn":"2017-11-17T00:38:15.961Z","createdBy":"1dfee841-92f2-4da1-8ab1-4f7b45df9feb","updatedOn":"2017-11-17T00:41:29.196Z","updatedBy":"1dfee841-92f2-4da1-8ab1-4f7b45df9feb"},"key":"response","summary":"response","id":"paths/~1usage~1{id}/get/responses/200/content/application~1json/examples/response"},"paths/~1usage~1{id}/get/responses/404/content/application~1json/examples/response":{"value":{"error":{"message":"The usage record ab123-34f could not be found.","errors":[{"objectName":"usage","reason":"ResourceNotFound","message":"The usage record ab123-34f could not be found."}]}},"key":"response","summary":"response","id":"paths/~1usage~1{id}/get/responses/404/content/application~1json/examples/response"},"paths/~1usage~1{id}/get/responses/500/content/application~1json/examples/response":{"value":{"error":{"message":"An internal error occurred. Please retry the request."}},"key":"response","summary":"response","id":"paths/~1usage~1{id}/get/responses/500/content/application~1json/examples/response"},"paths/~1usage~1{id}/delete/responses/200/content/application~1json/examples/response":{"value":{"success":"true"},"key":"response","summary":"response","id":"paths/~1usage~1{id}/delete/responses/200/content/application~1json/examples/response"},"paths/~1usage~1{id}/delete/responses/404/content/application~1json/examples/response":{"value":{"error":{"message":"The usage record 03c816b4-60a2-4586-9625-0003ce35010a could not be found.","errors":[{"objectName":"usage","reason":"ResourceNotFound","message":"The usage record 03c816b4-60a2-4586-9625-0003ce35010a could not be found."}]}},"key":"response","summary":"response","id":"paths/~1usage~1{id}/delete/responses/404/content/application~1json/examples/response"},"paths/~1usage~1{id}/delete/responses/500/content/application~1json/examples/response":{"value":{"error":{"message":"Usage has been already billed and invoiced, and can no longer be modified 03c816b4-60a2-4586-9625-3ce3bc65010a"}},"key":"response","summary":"response","id":"paths/~1usage~1{id}/delete/responses/500/content/application~1json/examples/response"},"paths/~1usage~1query/get/responses/200/content/application~1json/examples/response":{"value":{"data":[{"id":"63b75b21-64a8-410e-a391-13865261933c","accountNumber":"A000003","tag":"ChargeNumber:C-00000001","quantity":50,"unitOfMeasure":"Each","groupId":"B","startDateTime":"2017-02-03T00:00:00Z","uniqueKey":null,"description":null,"importId":null,"fileName":null,"status":"Pending","customFields":{"username":"Grace","age":28},"createdOn":"2017-11-23T07:52:08.673Z","createdBy":"c189f9bd-e529-457a-9b8a-102fe0a5bc4f","updatedOn":"2017-11-23T07:52:08.673Z","updatedBy":"c189f9bd-e529-457a-9b8a-102fe0a5bc4f"}]},"key":"response","summary":"response","id":"paths/~1usage~1query/get/responses/200/content/application~1json/examples/response"},"paths/~1usage~1query/get/responses/500/content/application~1json/examples/response":{"value":{"error":{"message":"An internal error occurred. Please retry the request."}},"key":"response","summary":"response","id":"paths/~1usage~1query/get/responses/500/content/application~1json/examples/response"},"paths/~1usage~1stream-query/get/responses/200/content/application~1json/examples/response":{"value":{"data":[{"id":"63b75b21-64a8-410e-a391-13865261933c","accountNumber":"A000003","tag":"ChargeNumber:C-00000001","quantity":50,"unitOfMeasure":"Each","groupId":"B","startDateTime":"2017-02-03T00:00:00Z","uniqueKey":null,"description":null,"importId":null,"fileName":null,"status":"Pending","customFields":{"name":"Grace","age":28},"createdOn":"2017-11-23T07:52:08.673Z","createdBy":"c189f9bd-e529-457a-9b8a-102fe0a5bc4f","updatedOn":"2017-11-23T07:52:08.673Z","updatedBy":"c189f9bd-e529-457a-9b8a-102fe0a5bc4f"}]},"key":"response","summary":"response","id":"paths/~1usage~1stream-query/get/responses/200/content/application~1json/examples/response"},"paths/~1usage~1stream-query/get/responses/500/content/application~1json/examples/response":{"value":{"error":{"message":"An internal error occurred. Please retry the request."}},"key":"response","summary":"response","id":"paths/~1usage~1stream-query/get/responses/500/content/application~1json/examples/response"},"paths/~1usage-imports/post/responses/200/content/application~1json/examples/response":{"value":{"id":"2ec7dc51-9171-48b1-b7e1-9eb915d12734","status":"PENDING"},"key":"response","summary":"response","id":"paths/~1usage-imports/post/responses/200/content/application~1json/examples/response"},"paths/~1usage-imports/post/responses/400/content/application~1json/examples/response":{"value":{"error":{"message":"Required request part 'file' is not present"}},"key":"response","summary":"response","id":"paths/~1usage-imports/post/responses/400/content/application~1json/examples/response"},"paths/~1usage-imports/post/responses/500/content/application~1json/examples/response":{"value":{"error":{"message":"An internal error occurred. Please retry the request."}},"key":"response","summary":"response","id":"paths/~1usage-imports/post/responses/500/content/application~1json/examples/response"},"paths/~1usage-imports/get/responses/200/content/application~1json/examples/response":{"value":{"data":[{"id":"2ec7dc51-9171-48b1-b7e1-9eb915d12734","name":"Usages.csv","description":"Usages","status":"VALIDATED_FAILED","processStart":"2017-09-14T14:54:16+08:00","processEnd":"2017-09-14T14:54:16+08:00","totalCount":2,"errorCount":2,"importedCount":0,"createdBy":"10","createdOn":"2017-09-14T14:54:15+08:00","updatedBy":"10","updatedOn":"2017-09-14T14:54:16+08:00"}]},"key":"response","summary":"response","id":"paths/~1usage-imports/get/responses/200/content/application~1json/examples/response"},"paths/~1usage-imports/get/responses/500/content/application~1json/examples/response":{"value":{"error":{"message":"An internal error occurred. Please retry the request."}},"key":"response","summary":"response","id":"paths/~1usage-imports/get/responses/500/content/application~1json/examples/response"},"paths/~1usage-imports~1{id}~1detail/get/responses/200/content/application~1json/examples/response":{"value":{"id":"2ec7dc51-9171-48b1-b7e1-9eb915d12734","name":"Usages.csv","description":"Usages import","status":"VALIDATED_FAILED","processStart":"2017-09-14T14:54:16+08:00","processEnd":"2017-09-14T14:54:16+08:00","totalCount":2,"errorCount":2,"importedCount":0,"createdBy":"10","createdOn":"2017-09-14T14:54:15+08:00","updatedBy":"10","updatedOn":"2017-09-14T14:54:16+08:00"},"key":"response","summary":"response","id":"paths/~1usage-imports~1{id}~1detail/get/responses/200/content/application~1json/examples/response"},"paths/~1usage-imports~1{id}~1detail/get/responses/404/content/application~1json/examples/response":{"value":{"error":{"message":"No usage import has been found (importId: 0574342c-d565-4fbf-bba3-262054ffd546)","errors":[{"objectName":"UsageImport","reason":"ResourceNotFound","rejectedValue":"0574342c-d565-4fbf-bba3-262054ffd546","message":"No usage import has been found (importId: 0574342c-d565-4fbf-bba3-262054ffd546)"}]}},"key":"response","summary":"response","id":"paths/~1usage-imports~1{id}~1detail/get/responses/404/content/application~1json/examples/response"},"paths/~1usage-imports~1{id}~1detail/get/responses/500/content/application~1json/examples/response":{"value":{"error":{"message":"An internal error occurred. Please retry the request."}},"key":"response","summary":"response","id":"paths/~1usage-imports~1{id}~1detail/get/responses/500/content/application~1json/examples/response"},"paths/~1usage-imports~1{id}~1status/get/responses/200/content/application~1json/examples/response":{"value":{"status":"VALIDATED_FAILED"},"key":"response","summary":"response","id":"paths/~1usage-imports~1{id}~1status/get/responses/200/content/application~1json/examples/response"},"paths/~1usage-imports~1{id}~1status/get/responses/404/content/application~1json/examples/response":{"value":{"error":{"message":"No usage import has been found (importId: 0574342c-d565-4fbf-bba3-262054ffd546)","errors":[{"objectName":"UsageImport","reason":"ResourceNotFound","rejectedValue":"0574342c-d565-4fbf-bba3-262054ffd546","message":"No usage import has been found (importId: 0574342c-d565-4fbf-bba3-262054ffd546)"}]}},"key":"response","summary":"response","id":"paths/~1usage-imports~1{id}~1status/get/responses/404/content/application~1json/examples/response"},"paths/~1usage-imports~1{id}~1status/get/responses/500/content/application~1json/examples/response":{"value":{"error":{"message":"An internal error occurred. Please retry the request."}},"key":"response","summary":"response","id":"paths/~1usage-imports~1{id}~1status/get/responses/500/content/application~1json/examples/response"},"paths/~1usage-imports~1{id}~1import-file/get/responses/404/content/application~1json/examples/response":{"value":{"error":{"message":"No usage import has been found (importId: 0574342c-d565-4fbf-bba3-262054ffd546)","errors":[{"objectName":"UsageImport","reason":"ResourceNotFound","rejectedValue":"0574342c-d565-4fbf-bba3-262054ffd546","message":"No usage import has been found (importId: 0574342c-d565-4fbf-bba3-262054ffd546)"}]}},"key":"response","summary":"response","id":"paths/~1usage-imports~1{id}~1import-file/get/responses/404/content/application~1json/examples/response"},"paths/~1usage-imports~1{id}~1import-file/get/responses/500/content/application~1json/examples/response":{"value":{"error":{"message":"An internal error occurred. Please retry the request."}},"key":"response","summary":"response","id":"paths/~1usage-imports~1{id}~1import-file/get/responses/500/content/application~1json/examples/response"},"paths/~1usage-imports~1{id}~1errors/get/responses/404/content/application~1json/examples/response":{"value":{"error":{"message":"No usage import has been found (importId: 0574342c-d565-4fbf-bba3-262054ffd546)","errors":[{"objectName":"UsageImport","reason":"ResourceNotFound","rejectedValue":"0574342c-d565-4fbf-bba3-262054ffd546","message":"No usage import has been found (importId: 0574342c-d565-4fbf-bba3-262054ffd546)"}]}},"key":"response","summary":"response","id":"paths/~1usage-imports~1{id}~1errors/get/responses/404/content/application~1json/examples/response"},"paths/~1usage-imports~1{id}~1errors/get/responses/500/content/application~1json/examples/response":{"value":{"error":{"message":"An internal error occurred. Please retry the request."}},"key":"response","summary":"response","id":"paths/~1usage-imports~1{id}~1errors/get/responses/500/content/application~1json/examples/response"},"paths/~1rating~1rated-results~1account~1{accountNumber}/get/responses/200/content/application~1json/examples/response":{"value":{"dataSet":[{"id":"c42e3a08-e439-4238-aeb8-17fd7a0f1201","startDate":"2016-02-01","endDate":"2016-02-29","amount":5000,"chargeNumber":"C-00000037","subscriptionNumber":"A-S00007532","accountNumber":"A00015562","currency":"USD","additionalInfo":{"uom":"Each","quantity":50},"ratedTime":"2017-05-17T09:23:45.288Z"}],"cursor":null,"count":1,"hasMore":false},"key":"response","summary":"response","id":"paths/~1rating~1rated-results~1account~1{accountNumber}/get/responses/200/content/application~1json/examples/response"},"paths/~1rating~1rated-results~1account~1{accountNumber}/get/responses/400/content/application~1json/examples/response":{"value":{"reasons":[{"code":"invalid_date_format","message":"Invalid format(field fromDate,value 201-08-01)"}]},"key":"response","summary":"response","id":"paths/~1rating~1rated-results~1account~1{accountNumber}/get/responses/400/content/application~1json/examples/response"},"paths/~1rating~1rated-results~1account~1{accountNumber}/get/responses/404/content/application~1json/examples/response":{"value":{"reasons":[{"code":"invalid_resource","message":"Invalid resource (/rating/ratedresults/account/)"}]},"key":"response","summary":"response","id":"paths/~1rating~1rated-results~1account~1{accountNumber}/get/responses/404/content/application~1json/examples/response"},"paths/~1rating~1rated-results~1account~1{accountNumber}/get/responses/500/content/application~1json/examples/response":{"value":{"reasons":[{"code":"unknown","message":"Internal error, please contact Zuora support"}]},"key":"response","summary":"response","id":"paths/~1rating~1rated-results~1account~1{accountNumber}/get/responses/500/content/application~1json/examples/response"},"paths/~1rating~1rated-results~1subscription~1{subscriptionNumber}/get/responses/200/content/application~1json/examples/response":{"value":{"dataSet":[{"id":"c42e3a08-e439-4238-aeb8-17fd7a0f1201","startDate":"2016-02-01","endDate":"2016-02-29","amount":5000,"chargeNumber":"C-00000037","subscriptionNumber":"A-S00007532","accountNumber":"A00015562","currency":"USD","additionalInfo":{"uom":"Each","quantity":50},"ratedTime":"2017-05-17T09:23:45.288Z"}],"cursor":null,"count":1,"hasMore":false},"key":"response","summary":"response","id":"paths/~1rating~1rated-results~1subscription~1{subscriptionNumber}/get/responses/200/content/application~1json/examples/response"},"paths/~1rating~1rated-results~1subscription~1{subscriptionNumber}/get/responses/400/content/application~1json/examples/response":{"value":{"reasons":[{"code":"invalid_date_format","message":"Invalid format(field fromDate,value 201-08-01)"}]},"key":"response","summary":"response","id":"paths/~1rating~1rated-results~1subscription~1{subscriptionNumber}/get/responses/400/content/application~1json/examples/response"},"paths/~1rating~1rated-results~1subscription~1{subscriptionNumber}/get/responses/404/content/application~1json/examples/response":{"value":{"reasons":[{"code":"invalid_resource","message":"Invalid resource (/rating/ratedresults/subscription/)"}]},"key":"response","summary":"response","id":"paths/~1rating~1rated-results~1subscription~1{subscriptionNumber}/get/responses/404/content/application~1json/examples/response"},"paths/~1rating~1rated-results~1subscription~1{subscriptionNumber}/get/responses/500/content/application~1json/examples/response":{"value":{"reasons":[{"code":"unknown","message":"Internal error, please contact Zuora support"}]},"key":"response","summary":"response","id":"paths/~1rating~1rated-results~1subscription~1{subscriptionNumber}/get/responses/500/content/application~1json/examples/response"},"paths/~1rating~1rated-results~1charge~1{chargeNumber}/get/responses/200/content/application~1json/examples/response":{"value":{"dataSet":[{"id":"c42e3a08-e439-4238-aeb8-17fd7a0f1201","startDate":"2016-02-01","endDate":"2016-02-29","amount":5000,"chargeNumber":"C-00000037","subscriptionNumber":"A-S00007532","accountNumber":"A00015562","currency":"USD","additionalInfo":{"uom":"Each","quantity":50},"ratedTime":"2017-05-17T09:23:45.288Z"}],"cursor":null,"count":1,"hasMore":false},"key":"response","summary":"response","id":"paths/~1rating~1rated-results~1charge~1{chargeNumber}/get/responses/200/content/application~1json/examples/response"},"paths/~1rating~1rated-results~1charge~1{chargeNumber}/get/responses/400/content/application~1json/examples/response":{"value":{"reasons":[{"code":"invalid_date_format","message":"Invalid format(field fromDate,value 201-08-01)"}]},"key":"response","summary":"response","id":"paths/~1rating~1rated-results~1charge~1{chargeNumber}/get/responses/400/content/application~1json/examples/response"},"paths/~1rating~1rated-results~1charge~1{chargeNumber}/get/responses/404/content/application~1json/examples/response":{"value":{"reasons":[{"code":"invalid_resource","message":"Invalid resource (/rating/ratedresults/charge/)"}]},"key":"response","summary":"response","id":"paths/~1rating~1rated-results~1charge~1{chargeNumber}/get/responses/404/content/application~1json/examples/response"},"paths/~1rating~1rated-results~1charge~1{chargeNumber}/get/responses/500/content/application~1json/examples/response":{"value":{"reasons":[{"code":"unknown","message":"Internal error, please contact Zuora support"}]},"key":"response","summary":"response","id":"paths/~1rating~1rated-results~1charge~1{chargeNumber}/get/responses/500/content/application~1json/examples/response"},"paths/~1rating~1rated-usages~1account~1{accountNumber}/get/responses/200/content/application~1json/examples/response":{"value":{"dataSet":[{"id":"0a3e8fd8-2613-41c9-99e5-c13be7fb9268","startDate":"2016-01-05","amount":2500,"currency":"USD","chargeNumber":"C-00000037","subscriptionNumber":"A-S00007532","accountNumber":"A00015562","quantity":25,"unitOfMeasure":"Each","usageId":"633223e8-7b5e-44d5-bba3-629f59f5ecbe","ratedResultId":"c4df71b9-284b-4dff-b3c4-95763e7f74ea"},{"id":"4785969a-e130-45f2-9935-c73681a3c21d","startDate":"2016-01-05","amount":2500,"currency":"USD","chargeNumber":"C-00000037","subscriptionNumber":"A-S00007532","accountNumber":"A00015562","quantity":25,"unitOfMeasure":"Each","usageId":"370d4ce8-6d29-4730-8ac9-4849e81ff13b","ratedResultId":"c4df71b9-284b-4dff-b3c4-95763e7f74ea"}],"cursor":null,"count":2,"hasMore":false},"key":"response","summary":"response","id":"paths/~1rating~1rated-usages~1account~1{accountNumber}/get/responses/200/content/application~1json/examples/response"},"paths/~1rating~1rated-usages~1account~1{accountNumber}/get/responses/400/content/application~1json/examples/response":{"value":{"reasons":[{"code":"invalid_date_format","message":"Invalid format(field fromDate,value 201-08-01)"}]},"key":"response","summary":"response","id":"paths/~1rating~1rated-usages~1account~1{accountNumber}/get/responses/400/content/application~1json/examples/response"},"paths/~1rating~1rated-usages~1account~1{accountNumber}/get/responses/404/content/application~1json/examples/response":{"value":{"reasons":[{"code":"invalid_resource","message":"Invalid resource (/rating/ratedusages/account/)"}]},"key":"response","summary":"response","id":"paths/~1rating~1rated-usages~1account~1{accountNumber}/get/responses/404/content/application~1json/examples/response"},"paths/~1rating~1rated-usages~1account~1{accountNumber}/get/responses/500/content/application~1json/examples/response":{"value":{"reasons":[{"code":"unknown","message":"Internal error, please contact Zuora support"}]},"key":"response","summary":"response","id":"paths/~1rating~1rated-usages~1account~1{accountNumber}/get/responses/500/content/application~1json/examples/response"},"paths/~1rating~1rated-usages~1subscription~1{subscriptionNumber}/get/responses/200/content/application~1json/examples/response":{"value":{"dataSet":[{"id":"0a3e8fd8-2613-41c9-99e5-c13be7fb9268","startDate":"2016-01-05","amount":2500,"currency":"USD","chargeNumber":"C-00000037","subscriptionNumber":"A-S00007532","accountNumber":"A00015562","quantity":25,"unitOfMeasure":"Each","usageId":"633223e8-7b5e-44d5-bba3-629f59f5ecbe","ratedResultId":"c4df71b9-284b-4dff-b3c4-95763e7f74ea"},{"id":"4785969a-e130-45f2-9935-c73681a3c21d","startDate":"2016-01-05","amount":2500,"currency":"USD","chargeNumber":"C-00000037","subscriptionNumber":"A-S00007532","accountNumber":"A00015562","quantity":25,"unitOfMeasure":"Each","usageId":"370d4ce8-6d29-4730-8ac9-4849e81ff13b","ratedResultId":"c4df71b9-284b-4dff-b3c4-95763e7f74ea"}],"cursor":null,"count":2,"hasMore":false},"key":"response","summary":"response","id":"paths/~1rating~1rated-usages~1subscription~1{subscriptionNumber}/get/responses/200/content/application~1json/examples/response"},"paths/~1rating~1rated-usages~1subscription~1{subscriptionNumber}/get/responses/400/content/application~1json/examples/response":{"value":{"reasons":[{"code":"invalid_date_format","message":"Invalid format(field fromDate,value 201-08-01)"}]},"key":"response","summary":"response","id":"paths/~1rating~1rated-usages~1subscription~1{subscriptionNumber}/get/responses/400/content/application~1json/examples/response"},"paths/~1rating~1rated-usages~1subscription~1{subscriptionNumber}/get/responses/404/content/application~1json/examples/response":{"value":{"reasons":[{"code":"invalid_resource","message":"Invalid resource (/rating/ratedusages/subscription/)"}]},"key":"response","summary":"response","id":"paths/~1rating~1rated-usages~1subscription~1{subscriptionNumber}/get/responses/404/content/application~1json/examples/response"},"paths/~1rating~1rated-usages~1subscription~1{subscriptionNumber}/get/responses/500/content/application~1json/examples/response":{"value":{"reasons":[{"code":"unknown","message":"Internal error, please contact Zuora support"}]},"key":"response","summary":"response","id":"paths/~1rating~1rated-usages~1subscription~1{subscriptionNumber}/get/responses/500/content/application~1json/examples/response"},"paths/~1rating~1rated-usages~1charge~1{chargeNumber}/get/responses/200/content/application~1json/examples/response":{"value":{"dataSet":[{"id":"0a3e8fd8-2613-41c9-99e5-c13be7fb9268","startDate":"2016-01-05","amount":2500,"currency":"USD","chargeNumber":"C-00000037","subscriptionNumber":"A-S00007532","accountNumber":"A00015562","quantity":25,"unitOfMeasure":"Each","usageId":"633223e8-7b5e-44d5-bba3-629f59f5ecbe","ratedResultId":"c4df71b9-284b-4dff-b3c4-95763e7f74ea"},{"id":"4785969a-e130-45f2-9935-c73681a3c21d","startDate":"2016-01-05","amount":2500,"currency":"USD","chargeNumber":"C-00000037","subscriptionNumber":"A-S00007532","accountNumber":"A00015562","quantity":25,"unitOfMeasure":"Each","usageId":"370d4ce8-6d29-4730-8ac9-4849e81ff13b","ratedResultId":"c4df71b9-284b-4dff-b3c4-95763e7f74ea"}],"cursor":null,"count":2,"hasMore":false},"key":"response","summary":"response","id":"paths/~1rating~1rated-usages~1charge~1{chargeNumber}/get/responses/200/content/application~1json/examples/response"},"paths/~1rating~1rated-usages~1charge~1{chargeNumber}/get/responses/400/content/application~1json/examples/response":{"value":{"reasons":[{"code":"invalid_date_format","message":"Invalid format(field fromDate,value 201-08-01)"}]},"key":"response","summary":"response","id":"paths/~1rating~1rated-usages~1charge~1{chargeNumber}/get/responses/400/content/application~1json/examples/response"},"paths/~1rating~1rated-usages~1charge~1{chargeNumber}/get/responses/404/content/application~1json/examples/response":{"value":{"reasons":[{"code":"invalid_resource","message":"Invalid resource (/rating/ratedusages/charge/)"}]},"key":"response","summary":"response","id":"paths/~1rating~1rated-usages~1charge~1{chargeNumber}/get/responses/404/content/application~1json/examples/response"},"paths/~1rating~1rated-usages~1charge~1{chargeNumber}/get/responses/500/content/application~1json/examples/response":{"value":{"reasons":[{"code":"unknown","message":"Internal error, please contact Zuora support"}]},"key":"response","summary":"response","id":"paths/~1rating~1rated-usages~1charge~1{chargeNumber}/get/responses/500/content/application~1json/examples/response"},"paths/~1fields~1definitions~1Usage/get/responses/200/content/application~1json/examples/response":{"value":{"id":"97de95f6-1991-4469-95b3-9a2c7090b96f","type":"Usage","createdById":"8a534f48-4194-4a4b-812a-166e87ccf714","updatedById":"8a534f48-4194-4a4b-812a-166e87ccf714","createdDate":"2018-01-18T08:41:06.530Z","updatedDate":"2018-01-18T08:41:06.530Z","schema":{"title":"Usage","type":"object","properties":{"firstName":{"type":"string"},"lastName":{"type":"string"},"country":{"type":"string"},"age":{"description":"Age in years","type":"integer","minimum":0}},"required":["firstName","lastName"]}},"key":"response","summary":"response","id":"paths/~1fields~1definitions~1Usage/get/responses/200/content/application~1json/examples/response"},"paths/~1fields~1definitions~1Usage/get/responses/400/content/application~1json/examples/response":{"value":{"code":400,"message":"Bad Request"},"key":"response","summary":"response","id":"paths/~1fields~1definitions~1Usage/get/responses/400/content/application~1json/examples/response"},"paths/~1fields~1definitions~1Usage/put/responses/200/content/application~1json/examples/response":{"value":"/fields/definitions/Usage","key":"response","summary":"response","id":"paths/~1fields~1definitions~1Usage/put/responses/200/content/application~1json/examples/response"},"paths/~1fields~1definitions~1Usage/put/responses/400/content/application~1json/examples/response":{"value":{"code":400,"message":"Bad Request"},"key":"response","summary":"response","id":"paths/~1fields~1definitions~1Usage/put/responses/400/content/application~1json/examples/response"},"paths/~1fields~1definitions~1Usage/put/responses/412/content/application~1json/examples/response":{"value":{"code":412,"message":"Precondition Failed"},"key":"response","summary":"response","id":"paths/~1fields~1definitions~1Usage/put/responses/412/content/application~1json/examples/response"},"paths/~1fields~1definitions~1Usage/delete/responses/200/content/application~1json/examples/response":{"value":"/fields/definitions/Usage","key":"response","summary":"response","id":"paths/~1fields~1definitions~1Usage/delete/responses/200/content/application~1json/examples/response"},"paths/~1fields~1definitions~1Usage/delete/responses/400/content/application~1json/examples/response":{"value":{"code":400,"message":"Cannot delete definition that has data"},"key":"response","summary":"response","id":"paths/~1fields~1definitions~1Usage/delete/responses/400/content/application~1json/examples/response"}},"securitySchemeStore":{},"specVersion":"3.2.0","servers":[{"url":"https://rest.zuora.com"}],"logo":{"imageUrl":"https://www.zuora.com/wp-content/uploads/2016/10/zuora-dev-logo-api-ref.svg"},"specType":"openapi"},"options":{"codeSamples":{"languages":[{"lang":"Payload","label":"Payload"},{"lang":"curl","label":"cURL"}]},"mockServer":{"url":"/_mock/archive/active-rating/active-rating-api/active-rating-api","position":"off","description":"Mock server"},"disableRouter":true,"downloadUrls":[{"url":"/_bundle/archive/active-rating/active-rating-api/active-rating-api.json?download"},{"url":"/_bundle/archive/active-rating/active-rating-api/active-rating-api.yaml?download"}],"excludeFromSearch":false,"replayFeatures":{"graphql":false},"specType":"openapi","markdocOptions":{"tags":{},"nodes":{},"components":{}},"metadata":{"title":"Active Rating API","description":""}},"baseSlug":"/archive/active-rating/active-rating-api/active-rating-api","routesMapping":{}}