Get Source Business Hours
get
https://api.flxpoint.com/source/{sourceId}/business-hoursUse 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-hourscurl -X GET "https://api.flxpoint.com/source/{sourceId}/business-hours" \
-H "Accept: application/json" \
-H "X-API-TOKEN: YOUR_TOKEN"Responses
200OKapplication/json
isWithinBusinessDaysbooleansundayobjectstartingAtstringendingAtstringmondayobjectstartingAtstringendingAtstringtuesdayobjectstartingAtstringendingAtstringwednesdayobjectstartingAtstringendingAtstringthursdayobjectstartingAtstringendingAtstringfridayobjectstartingAtstringendingAtstringsaturdayobjectstartingAtstringendingAtstringExample 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
errorstringA generalized error message, may or may not be fit for human consumption.
dataobjectData 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