younifyd
Menu

/api/inspect_bookings/checkFactoryLastConsecutiveVisit (Check Factory Last Consecutive Visit)

Check Factory Last Consecutive Visit

POST/api/inspect_bookings/checkFactoryLastConsecutiveVisit

Use it in a workflow

  1. Add a step and choose the TradeBeyond connector.
  2. Pick the /api/inspect_bookings/checkFactoryLastConsecutiveVisit (Check Factory Last Consecutive Visit) action (under InspectBookingController).
  3. Fill in the fields below, then reference the result from later steps as {{apiInspectBookingsCheckfactorylastconsecutivevisitCheckFactoryLastConsecutiveVisit.response.data}}.

Request

Query parameters

inspectBookingIdstringrequired

checking inspection booking id

Request body

Enter the body as JSON in the step's Body field.

assignedInspectBookingInfoListarray<object>
idstring
factoryIdstring
locationIdstring
inspectorIdListarray<string>
plannedInspectDatestring (date)
maxConsecutiveVisitinteger (int64)
inspectTypestring
lastConsecutiveVisitBeforeWeekarray<object>
factoryIdstring
locationIdstring
inspectorIdstring
visitCountinteger (int32)
consecutiveBreakDatestring (date-time)
lastConsecutiveVisitDatestring (date-time)
consecutiveVisitDatesarray<string (date-time)>
json
{
  "assignedInspectBookingInfoList": [
    {
      "id": "string",
      "factoryId": "string",
      "locationId": "string",
      "inspectorIdList": [
        "string"
      ],
      "plannedInspectDate": "2025-01-01",
      "maxConsecutiveVisit": 0,
      "inspectType": "string"
    }
  ],
  "lastConsecutiveVisitBeforeWeek": [
    {
      "factoryId": "string",
      "locationId": "string",
      "inspectorId": "string",
      "visitCount": 0,
      "consecutiveBreakDate": "2025-01-01T00:00:00Z",
      "lastConsecutiveVisitDate": "2025-01-01T00:00:00Z",
      "consecutiveVisitDates": [
        "2025-01-01T00:00:00Z"
      ]
    }
  ]
}

Response

Returns 200 with a boolean. Read it in later steps with {{apiInspectBookingsCheckfactorylastconsecutivevisitCheckFactoryLastConsecutiveVisit.response.data.<field>}}.

Need more? See the TradeBeyond guide for connection setup and behaviour shared by every action.