Subscriptions
Path Parameters
Query Parameters
int32Response Body
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/v1/customers/string/subscriptions"{ "nextPageToken": "string", "subscriptions": [ { "contract": "string", "createTime": "2019-08-24T14:15:22Z", "effectivePeriod": { "endTime": "2019-08-24T14:15:22Z", "startTime": "2019-08-24T14:15:22Z" }, "items": [ { "dimensions": { "property1": "string", "property2": "string" }, "product": "string", "quantity": { "value": "string" } } ], "name": "string", "status": "SUBSCRIPTION_STATUS_UNSPECIFIED" } ]}Path Parameters
Query Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Subscription represents a customer's recurring product enrollment.
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/v1/customers/string/subscriptions?subscriptionId=string" \ -H "Content-Type: application/json" \ -d '{ "contract": "string", "effectivePeriod": { "startTime": "2019-08-24T14:15:22Z" }, "items": [ { "product": "string", "quantity": { "value": "string" } } ] }'{ "contract": "string", "createTime": "2019-08-24T14:15:22Z", "effectivePeriod": { "endTime": "2019-08-24T14:15:22Z", "startTime": "2019-08-24T14:15:22Z" }, "items": [ { "dimensions": { "property1": "string", "property2": "string" }, "product": "string", "quantity": { "value": "string" } } ], "name": "string", "status": "SUBSCRIPTION_STATUS_UNSPECIFIED"}Path Parameters
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/v1/customers/string/subscriptions/string"{ "contract": "string", "createTime": "2019-08-24T14:15:22Z", "effectivePeriod": { "endTime": "2019-08-24T14:15:22Z", "startTime": "2019-08-24T14:15:22Z" }, "items": [ { "dimensions": { "property1": "string", "property2": "string" }, "product": "string", "quantity": { "value": "string" } } ], "name": "string", "status": "SUBSCRIPTION_STATUS_UNSPECIFIED"}Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/v1/customers/string/subscriptions/string:cancel" \ -H "Content-Type: application/json" \ -d '{ "effectiveTime": "2019-08-24T14:15:22Z" }'{ "contract": "string", "createTime": "2019-08-24T14:15:22Z", "effectivePeriod": { "endTime": "2019-08-24T14:15:22Z", "startTime": "2019-08-24T14:15:22Z" }, "items": [ { "dimensions": { "property1": "string", "property2": "string" }, "product": "string", "quantity": { "value": "string" } } ], "name": "string", "status": "SUBSCRIPTION_STATUS_UNSPECIFIED"}Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/v1/customers/string/subscriptions/string:scheduleAmendment" \ -H "Content-Type: application/json" \ -d '{ "amendment": { "effectiveTime": "2019-08-24T14:15:22Z", "items": [ { "product": "string", "quantity": { "value": "string" } } ], "prorationBehavior": "PRORATION_BEHAVIOR_UNSPECIFIED", "reason": "string" } }'{ "createTime": "2019-08-24T14:15:22Z", "effectiveTime": "2019-08-24T14:15:22Z", "items": [ { "dimensions": { "property1": "string", "property2": "string" }, "product": "string", "quantity": { "value": "string" } } ], "name": "string", "prorationBehavior": "PRORATION_BEHAVIOR_UNSPECIFIED", "reason": "string", "status": "AMENDMENT_STATUS_UNSPECIFIED"}Path Parameters
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/v1/customers/string/subscriptions/string/amendments/string"{ "createTime": "2019-08-24T14:15:22Z", "effectiveTime": "2019-08-24T14:15:22Z", "items": [ { "dimensions": { "property1": "string", "property2": "string" }, "product": "string", "quantity": { "value": "string" } } ], "name": "string", "prorationBehavior": "PRORATION_BEHAVIOR_UNSPECIFIED", "reason": "string", "status": "AMENDMENT_STATUS_UNSPECIFIED"}Path Parameters
Query Parameters
int32Response Body
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/v1/customers/string/subscriptions/string/amendments"{ "amendments": [ { "createTime": "2019-08-24T14:15:22Z", "effectiveTime": "2019-08-24T14:15:22Z", "items": [ { "dimensions": { "property1": "string", "property2": "string" }, "product": "string", "quantity": { "value": "string" } } ], "name": "string", "prorationBehavior": "PRORATION_BEHAVIOR_UNSPECIFIED", "reason": "string", "status": "AMENDMENT_STATUS_UNSPECIFIED" } ], "nextPageToken": "string"}Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/v1/customers/string/subscriptions/string/amendments/string:cancel" \ -H "Content-Type: application/json" \ -d '{ "reason": "string" }'{ "createTime": "2019-08-24T14:15:22Z", "effectiveTime": "2019-08-24T14:15:22Z", "items": [ { "dimensions": { "property1": "string", "property2": "string" }, "product": "string", "quantity": { "value": "string" } } ], "name": "string", "prorationBehavior": "PRORATION_BEHAVIOR_UNSPECIFIED", "reason": "string", "status": "AMENDMENT_STATUS_UNSPECIFIED"}