This function can be used to submit a cancel request for a previously submitted job using the JobId string.
Syntax
C# | ![]() |
---|---|
bool CancelFax( string UserID, string strPIN, string JobId, out WSError WSError ) |
Visual Basic | ![]() |
---|---|
CancelFax( ByVal UserID As String, ByVal strPIN As String, ByVal JobId As String, ByRef WSError As WSError ) As Boolean |
Parameters
Parameter | Type | Required? | Description | |
---|---|---|---|---|
Input Header | Authorization | String | Required for OAuth 2.0 authorization | A string representing the authentication of the request via an access token in the format of Authorization: Bearer {AccessToken}. Example: Authorization: Bearer M1Q0NjJvZ7Q5OPM2NDW1ZTCjOGZmYjI4 |
x-ch-request-id | String | Client generated unique identifier for tracking | ||
Content-Type | String | Indicates the expected content type of the payload. Valid options are:
If a value is not supplied then the default of application/soap+xml is used. | ||
Input Body | UserID | String | Required | String representing the API Service User Id. Example: mbx1234567890 |
strPIN | String | Required for username and password authentication | Deprecated. Use OAuth 2.0 and Authorization header for modern authentication | |
JobId | String | Required | String representing the job id in 'brxxxx' format | |
Output Header | x-ch-activity-id | String | Server generated unique identifier of tracking | |
x-ch-execution-time | String | Server execution time in milli-seconds | ||
Output Body | WSError | Return error details. | ||
Result | return | bool | True/False indicating result of method call |
Code Examples
Detailed code examples for cancel method