Business Workflow APIs
  • 03 Mar 2023
  • 11 読む分
  • PDF

Business Workflow APIs

  • PDF

The content is currently unavailable in Ja - 日本語. You are viewing the default English version.
記事の要約

To get started, go to Workflow API Settings, select the desired Business Workflow and Business Entity to view workflow specific document. The generated endpoints would contain attributes which are required to perform specific action in the configured business workflow. By default, no endpoints are available in this section, follow the below mentioned steps:

  1. Select Business Workflow
  2. Select Business Entity
  3. View Workflow specific Endpoints

image.png

Business Workflow APIs

Update Workflow Instance

This endpoint is used to update a workflow instance. One can refer to the Header and Request Body for integration purposes.

  1. On the Update Workflow Instance page, by default, the below information is available in the API documentation for each endpoint to update the workflow instance:
  • PATCH (The URL is used to Update a Workflow Instance).

  • Header:

  • Security: Bearer Auth

    • This parameter is required to authenticate the user by a token which needs to be passed in as a header.
      Example – Authorization: Bearer {{Access token}}
  • Path Parameters: In the path parameters, unique workflow_id and tag_id are required to identify an instance and provide its details in the response.

image.png

Update Workflow Instance – Header

image.png

Update Workflow Instance – Path parameters

  1. In the Request Body section, click on Example to view the attributes required to enter.
Request Body ExampleDescription
CR_Order_Number*This field is mandatory to update.

All the mandatory attributes are marked with an asterisk symbol (*). All other parameters are dynamic in nature and may or may not be applicable for a business entity.

image.png

Update Workflow Instance - Request Body - Example

  1. To view the properties of the attributes displayed in Example section, click on Schema.

image.png

Update Workflow Instance - Request Body - Schema

  1. In the Responses section, below are the different types of responses that will be generated:
ResponsesDescription
200Successfully done
400Error occurred in updating the instance
401Invalid token
404Client id not found.
409Some asset attributes are not found.
412Validation errors/Invalid Arguments.
503Something went wrong.

image.png

Update Workflow Instance - Responses

There are multiple responses for every Response code. Select a response code where you can view several response messages the code displays. You can select the Response message from the drop-down list.

Resolve Dispute

This endpoint is used to resolve a dispute. One can refer to the Header and Request Body for integration purposes.

  1. On the Resolve Dispute page, by default, the below information is available in the API documentation for each endpoint to resolve the workflow instance:
  • POST URL (The Post URL is used to resolve a dispute).

  • Header:

  • Security: Bearer Auth

    • This parameter is required to authenticate the user by a token which needs to be passed in as a header.
  • Path Parameters: In the path parameters, unique workflow_id and tag_id are required to identify an instance and provide its details in the response.

image.png

Resolve Dispute – Header

image.png

Resolve Dispute – Path Parameters

  1. In the Request Body section, click on Example to view the attributes required enter.
Request Body ExampleDescription
CommentEnter the comment as required.

image.png

Resolve Dispute - Request Body Example

  1. To view the properties of the attributes displayed in Example section, click on Schema.

image.png

Resolve Dispute - Request Body Schema

  1. In the Responses section, below are the different types of responses that will be generated:
ResponsesDescription
200Successfully done
400Workflow instance id is invalid
401Invalid token
404Client id not found.
412Validation errors/Invalid Arguments.
503Something went wrong.

image.png

Resolve Dispute - Responses

There are multiple responses for every Response code. Select a response code where you can view several response messages the code displays. You can select the Response message from the drop-down list.

Hard Update Workflow Instance

This endpoint is used to Hard Update Workflow Instance. One can refer to the Header and Request Body for integration purposes.

  1. On the Hard Update Workflow Instance page, by default, the below information is available in the API documentation for each endpoint to hard update the workflow instance:
  • PATCH (The URL is used to Hard Update a Workflow Instance).

  • Header:

  • Security: Bearer Auth

    • This parameter is required to authenticate the user by a token which needs to be passed in as a header.
  • Path Parameter: In the path parameters, unique workflow_id and tag_id are required to identify an instance and provide its details in the response.

  • Query Parameter: The query parameter helps the user in filtering and organizing the data.

image.png

Hard Update Workflow Instance – Header

image.png

Hard Update Workflow Instance – Path Parameters and Query parameter

  1. In the Request Body section, click on Example to view the attributes required to enter.
Request Body ExampleDescription
CR_Order_Number*This field is mandatory to update.

All the important sections are marked with an asterisk symbol (*). All other parameters are dynamic in nature and may or may not be applicable for a business entity.

image.png

Hard Update Workflow Instance - Request Body - Example

  1. To view the properties of the attributes displayed in Example section, click on Schema.

image.png

Hard Update Workflow Instance - Request Body - Schema

  1. In the Responses section, below are the different types of responses that will be generated:
ResponsesDescription
200Successfully done
400User is not associated to the given workflow instance id
401Invalid token
404Client id not found.
409Some asset attributes are not found
412Attribute name ……required.
503Something went Wrong.

image.png

Hard Update Workflow Instance - Responses

There are multiple responses for every Response code. Select a response code where you can view several response messages the code displays. You can select the Response message from the drop-down list.

Get Activities for a Business Workflow Instance

This endpoint is used to Get activities for a Business Workflow Instance. One can refer to the Header and Request Body for integration purposes.

  1. On the Get Activities for a Workflow Instance page, by default, the below information is available in the API documentation for each endpoint to get activities for a workflow instance:
  • GET (The URL is used to Get Activities for a Workflow Instance).

  • Header:

  • Security: Bearer Auth

    • This parameter is required to authenticate the user by a token which needs to be passed in as a header.
  • Path Parameters: In the path parameters, unique workflow_id and tag_id are required to identify an instance and provide its details in the response.

  • Query Parameters: The query parameters help the user in filtering and organizing the data.

image.png

Get Activities for a Workflow Instance – Header

image.png

Get Activities for a Workflow Instance – Path Parameters and Query Parameters

  1. In the Responses section, below are the different types of responses that will be generated:
ResponsesDescription
200Successfully done
400Workflow Instance id is invalid
401Invalid token
404Client id not found
412Validation errors/Invalid Arguments
503Something went wrong

image.png

Get Activities for a Workflow Instance - Responses

There are multiple responses for every Response code. Select a response code where you can view several response messages the code displays. You can select the Response message from the drop-down list.

Get Comments for a Business Workflow Instance

This endpoint is used to Get comments for a Workflow Instance. One can refer to the Header and Request Body for integration purposes.

  1. On the Get Comments for a Workflow Instance page, by default, the below information is available in the API documentation for each endpoint to send the workflow instance:
  • GET (The URL is used to Get Comments for a Workflow Instance).

  • Header:

  • Security: Bearer Auth

    • This parameter is required to authenticate the user by a token which needs to be passed in as a header.
  • Path Parameters: In the path parameters, unique workflow_id and tag_id are required to identify an instance and provide its details in the response.

  • Query Parameters: The query parameters help the user in filtering and organizing the data.

image.png

Get Comments for a Workflow Instance – Header

image.png

Get Comments for a Workflow Instance – Path Parameters and Query Parameters

  1. In the Responses section, below are the different types of responses that will be generated:
ResponsesDescription
200Successfully done
400Workflow Instance id is invalid
401Invalid token
404Client id not found
412Validation errors/Invalid Arguments
503Something went wrong

image.png

Get Comments for a Workflow Instance - Responses

There are multiple responses for every Response code. Select a response code where you can view several response messages the code displays. You can select the Response message from the drop-down list.

Add Comments in a Business Workflow Instance

This endpoint is used to Add Comments in a Workflow Instance. One can refer to the Header and Request Body for integration purposes.

  1. On the Add comments in a Workflow Instance page, by default, the below information is available in the API documentation for each endpoint to add comments in a business workflow instance:
  • POST (The URL is used to Add comments in a Workflow Instance).

  • Header:

  • Security: Bearer Auth

    • This parameter is required to authenticate the user by a token which needs to be passed in as a header.
  • Path Parameters: In the path parameters, unique workflow_id and tag_id are required to identify an instance and provide its details in the response.

image.png

Add Comments in a Workflow Instance -Header

image.png

Add Comments in a Workflow Instance -Path Parameters

  1. In the Request Body section, click on Example to view the parameters required to get the access token:
Request Body ExampleDescription
commentEnter the comment as required

image.png

Add Comments in a Workflow Instance -Request Body -Example

  1. To view the properties of the attributes displayed in Example section, click on Schema.

image.png

Add Comments in a Workflow Instance -Request Body -Schema

  1. In the Responses section, below are the different types of responses that will be generated:
ResponsesDescription
200Successfully done.
400Workflow is deactivated. No operation is permitted.
401Invalid token
404Client id not found
412Validation errors/Invalid Arguments
503Something went wrong

image.png

Add Comments in a Workflow Instance - Responses

There are multiple responses for every Response code. Select a response code where you can view several response messages the code displays. You can select the Response message from the drop-down list.

Activate Workflow Instances

This endpoint is used to Activate the Workflow Instances which are currently Inactive. One can refer to the Header and Request Body for integration purposes.

  1. On the Activate Workflow Instances page, by default, the below information is available in the API documentation for each endpoint to activate the workflow instances:
  • PATCH (The URL is used to Activate Workflow Instances).

  • Header:

  • Security: Bearer Auth

    • This parameter is required to authenticate the user by a token which needs to be passed in as a header.
  • Path Parameters: In the path parameters, unique workflow_id and tag_id are required to identify an instance and provide its details in the response.

image.png

Activate Workflow Instance -Header and Path Parameter

  1. In the Request Body section, click on Example to view the parameters required to get the access token:
Request Body ExampleDescription
workflow_instances*Users can enter the workflow instances (tag_id) in this field to activate the workflow instances.

All the important sections are marked with an asterisk symbol (*). All other parameters are dynamic in nature and may or may not be applicable for a business entity.

image.png

Activate Workflow Instance - Request Body – Example

  1. To view the properties of the attributes displayed in Example section, click on Schema.

image.png

Activate Workflow Instance - Request Body - Schema

  1. In the Responses section, below are the different types of responses that will be generated:
ResponsesDescription
200Successfully done.
400User is not associated to the given workflow instance id
401Invalid token
404Client id not found
412Validation errors/Invalid Arguments
503Something went wrong

image.png

Activate Workflow Instance - Responses

There are multiple responses for every Response code. Select a response code where you can view several response messages the code displays. You can select the Response message from the drop-down list.

Deactivate Workflow Instances

This endpoint is used to Deactivate the Workflow Instances which are currently active. One can refer to the Header and Request Body for integration purposes.

  1. On the Deactivate Workflow Instances page, by default, the below information is available in the API documentation for each endpoint to send the workflow instance:
  • POST (The URL is used to Deactivate Workflow Instances).

  • Header:

  • Security: Bearer Auth

    • This parameter is required to authenticate the user by a token which needs to be passed in as a header.
  • Path Parameters: In the path parameters, unique workflow_id and tag_id are required to identify an instance and provide its details in the response.

image.png

Deactivate Workflow Instance – Header and Path parameter

  1. In the Request Body section, click on Example to view the parameters required to get the access token:
Request Body ExampleDescription
workflow_instances*Users can enter the workflow instances in this field.

All the mandatory attributes are marked with an asterisk symbol (*). All parameters are dynamic in nature and may or may not be applicable for a business entity.

image.png

Deactivate Workflow Instance – Request Body – Example

  1. To view the properties of the attributes displayed in Example section, click on Schema.

image.png

Deactivate Workflow Instance – Request Body - Schema

  1. In the Responses section, below are the different types of responses that will be generated:
ResponsesDescription
200Successfully done.
400Movable product version mismatch
401Invalid token
404Client id not found
412Validation errors/Invalid Arguments
503Something went wrong

image.png

Deactivate Workflow Instance - Responses

There are multiple responses for every Response code. Select a response code where you can view several response messages the code displays. You can select the Response message from the drop-down list.


この記事は役に立ちましたか?

Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.