POST jobs/all_scopes/cancel
Available from CRM.COM R10.0.0
This method cancels a job of any fulfillment scope, which is not already completed or cancelled.
Resource URL
Parameters
Name | Type | Description | ||||||||||||
token | String | The token retrieved from the login method | ||||||||||||
job_identifier (mandatory) | Job Identifier | The identifier of the job to be cancelled. The allowed job identifier fields are the following:
| ||||||||||||
status_identifier (optional) | Job Status Identifier | The status that will be set on the job, after the cancellation. If not specified the the default status for cancelling jobs of that type will be used. The allowed job status identifiers are the following:
| ||||||||||||
cancellation_reason_identifier (optional) | Job Cancellation Reason Identifier | The reason for cancelling the job. If not specified, then the default cancellation reason of the job's type will be used. The allowed job cancellation reason identifiers are the following:
From CRM.COM R13.0.0 this identifier changes from mandatory to optional. | ||||||||||||
cancel_provided_items (optional) | Boolean | Indicates whether the job's cancellation will also trigger the cancellation of all provided job items or not. Defaults to "false" which means that any provided items should be removed manually. Available CRM.COM R13.0.0 | ||||||||||||
fields_set (optional) | List of Strings, comma separated | A list of fields that should be included in the results. If not specified then all the available fields will be returned |
Restrictions
- It is mandatory to specify one of the semi-optional parameters. Only one of those parameters is allowed to be specified.
Response Data
Name | Type | Description |
---|---|---|
id | String | The ID of the retrieved job |
number | String | The number of the retrieved job |
description | String | The description of the retrieved job |
life_cycle_state | String | The life cycle state of the retrieved job which can be DRAFT, PENDING, IN PROGRESS, COMPLETED, CANCELLED |
rating_state | String | The rating state of the job that can be PENDING or COMPLETED |
expiration_date | Date | The date on which the job expires. Available form CRM.COM R13.0.0 |
scheduled_date | Date | The date on which the job is scheduled to be performed. Applicable only for fulfillment scopes that deliver Subscription amendments:
Available form CRM.COM R13.0.0 |
assigned_to | Assign Object | The assignment information of the retrieved job |
type | Job type object | The type information of the retrieved job |
status | Job Status object | The status information of the retrieved job |
Log Information Object | The log information related with the retrieved job |
Referred Objects Response Data