FlxpointAPI Help CenterBeta

Get Source Business Hours

gethttps://api.flxpoint.com/source/{sourceId}/business-hours

Use this when you want to pull source data through the API.

🔑 X-API-TOKEN⏱ 2 req/sToken: Account · Source · Channel

This page explains the endpoint. To send a live test request, use the interactive tester in Stoplight or your own Postman / HTTP client.

Returns the hours for which Purchase Orders may be processed for the Source

Request

Example request

get/source/{sourceId}/business-hours
curl -X GET "https://api.flxpoint.com/source/{sourceId}/business-hours" \
  -H "Accept: application/json" \
  -H "X-API-TOKEN: YOUR_TOKEN"

Responses

200OKapplication/json
isWithinBusinessDaysboolean
sundayobject
startingAtstring
endingAtstring
mondayobject
startingAtstring
endingAtstring
tuesdayobject
startingAtstring
endingAtstring
wednesdayobject
startingAtstring
endingAtstring
thursdayobject
startingAtstring
endingAtstring
fridayobject
startingAtstring
endingAtstring
saturdayobject
startingAtstring
endingAtstring
Example response
{
  "isWithinBusinessDays": true,
  "sunday": {
    "startingAt": "string",
    "endingAt": "string"
  },
  "monday": {
    "startingAt": "string",
    "endingAt": "string"
  },
  "tuesday": {
    "startingAt": "string",
    "endingAt": "string"
  },
  "wednesday": {
    "startingAt": "string",
    "endingAt": "string"
  },
  "thursday": {
    "startingAt": "string",
    "endingAt": "string"
  },
  "friday": {
    "startingAt": "string",
    "endingAt": "string"
  },
  "saturday": {
    "startingAt": "string",
    "endingAt": "string"
  }
}
401Unauthorized

No schema documented for this status.

404Not Found

No schema documented for this status.

500Internal Server Errorapplication/json
errorstring
A generalized error message, may or may not be fit for human consumption.
dataobject
Data points that could be useful in debugging the error.
No properties documented.
Example response
{
  "error": "string",
  "data": {}
}
OpenAPI fragment
{
  "get": {
    "summary": "Get Source Business Hours",
    "description": "Returns the hours for which Purchase Orders may be processed for the Source",
    "parameters": [],
    "responses": {
      "200": {
        "description": "OK",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/PurchaseOrderBusinessHours"
            }
          }
        }
      },
      "401": {
        "description": "Unauthorized"
      },
      "404": {
        "description": "Not Found"
      },
      "500": {
        "description": "Internal Server Error",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/GenericApiError"
            }
          }
        }
      }
    }
  }
}
Ready to run it? Send the curl from your terminal or Postman, or use the interactive tester in Stoplight.Open in Stoplight