The Billing Customers API is designed for you to be able to create a billable Staylist customer prior to building any property accounts. When you finally do build the property, you can tell us about the Billing Customer ID.
Billing Customers require authentication
Make a POST request to the following endpoint:
https://app.staylists.com/api/v3/billing_customers
All parameters are optional. But we recommend you include at least one.
company optional, string, max chars=250first_name optional, string, max chars=150last_name optional, string, max chars=150phone optional, string, max chars=50email optional, string, max chars=70vat_number optional, string, max chars=20billing_address see belowcompany optional, string, max chars=250line1 optional, string, max chars=150line2 optional, string, max chars=150city optional, string, max chars=50state optional, string, max chars=50country 2-letter ISO 3166 alpha-2 country code.zip optional, string, max chars=20We’ll return a 200 with a body that looks something like this:
{
    "object": "BillingCustomer",
    "data": {
        "id": "16CHKwSDqpcCX7rp",
    }
}Store this Billing Customer ID to use it with other API calls
{
    "error": "vat_number : Billing country needed to validate the VAT number."
}