Skip to main content

Providers API

List​

GET /providers/get/ returns the configured provider properties.

Edit provider restrictions​

POST /providers/edit/ requires a JSON body containing id. It updates only these properties, and ignores any other key:

PropertyTypeWhat it does
tbk_RestrictServicesbooleanTurns on Restrict services for the provider.
tbk_AllowedServicesarray of service IDsThe services the provider can offer when Restrict services is on.
tbk_PausedbooleanPauses (true) or resumes (false) the provider. See Pause a provider.
{
"id": 12,
"tbk_Paused": true
}

A value of tbk_Paused that is not a boolean returns 422, and nothing is saved. The endpoint is not a generic WordPress user editor.

Edit provider service settings​

POST /providers/edit/service/?serviceId=s_example&providerId=12

Use this endpoint only for provider/service properties accepted by the current public route. Service-scoped duration and buffer settings must be changed on the service, not as provider overrides.

Response​

GET /providers/get/ returns the providers in response. The fields follow the Provider schema of the API reference; values here are examples.

{
"status": "OK",
"response": [
{
"id": 12,
"name": "Clara Whitfield",
"email": "clara@example.com"
}
]
}

Errors​

HTTP statusWhen
400The request is not valid.
401The token is missing or not valid.
403The token has no write scope.
404No provider, or no service, has this ID.
422tbk_Paused is not a boolean.