RocketKOR

Search LinX Workflows

Search for LinX workflows based on filters such as the workflow ID and status, and the Customer’s first name, last name, email address and phone number.

Use the sort query parameter to sort the results, and use the page and size query parameters to limit the number of results returned.

Endpoint

GET /v2/linx/workflows

Authorization Header

Authorization: Bearer <access_token>

Query Parameters

search

string

Perform a full-text search on the workflow ID and the Customer’s first name, last name, email address, and phone number.

You can also use the status filter to limit the search results. If both full-text search and the status filter are used, they will be joined using AND.

status

string enum, values: ACTIVE, ARCHIVED, CANCELLED, COMPLETED, CREATED, DECLINED, EXPIRED

Workflow status.

page

integer (int32), default value: 1

Page number to return. Uses one-based indexing.

size

integer (int32)

Maximum number of results to return per page.

sort

array of strings

Sort the response by any field in ascending or descending order. The default sort order is createdAt,DESC. For more information, see Sorting and Pagination.

Request Body

None

Returns

Returns a paginated response with an array of LinX workflows matching the request filters. The following fields are returned.

id

string (UUID)

ID of the workflow.

status

string enum, values: ACTIVE, ARCHIVED, CANCELLED, COMPLETED, CREATED, DECLINED, EXPIRED

Current status of the workflow.

title

string

Name for the LinX workflow. This name is used internally and should describe the purpose of the workflow. Example: Send refund to John Smith

expireAt

string (date-time)

Date and time the request expires.

nextNotificationAt

string (date-time)

Date and time the next reminder notification will be sent to the Customer.

phoneNumber  

string

Customer’s mobile phone number. The LinX request is sent to this number via SMS.

email

string

Customer’s email address.

SAMPLE RESPONSE

				
					[
  {
    "id": "b6c0d73e-bd7b-4447-a30f-971ecad5fa8b",
    "status": "ACTIVE",
    "title": "Send a rebate to John Doe",
    "expireAt": "2023-11-11T21:00:49.776302Z",
    "nextNotificationAt": "2023-11-10T21:00:49.776302Z",
    "phoneNumber": "+16471234567",
    "email": "john.doe@abc.com"
  },
  {...},
  {...}
]