The Availability resource represents a customer's availability. Availability is created when a customer's invoice is paid, and is updated when a customer's transaction is refunded.
- ping - Check availability
This endpoint allows you to test your connection to the Orb API and check the validity of your API key, passed in the Authorization
header. This is particularly useful for checking that your environment is set up properly, and is a great choice for connectors and integrations.
This API does not have any side-effects or return any Orb resources.
import orb
s = orb.Orb(
security=shared.Security(
api_key_auth="",
),
)
res = s.availability.ping()
if res.availability is not None:
# handle response