Choose the Ascora credential bookings use, check its access and watch the request limit
Settings in the Ascora Bookings menu opens Ascora Bookings settings, and its first page, Ascora Credentials, is the Ascora account every form books into. The credential is used to read your Scheduler and to make customers, jobs and bookings from the booking forms.
Before you start
You need an Ascora credential with a key saved on it. The key is made in Ascora, under Administration, Integrations & API, API Settings, and pasted into the Ascora integration. Connecting Ascora with Formpiece covers making it. Ascora shows a key once.
Step by step
- Open Settings, then Ascora Credentials.
- Under Ascora Credential, pick the credential. Create new Ascora credential adds another one on the integrations page.
- Click Update Ascora credential. The page says "Ascora credential updated". If the credential was already chosen it says "The Ascora credential is already set to this one."
With no credential the page says "No Ascora credential yet" and offers Create Ascora credential. If Ascora isn't switched on for the account it says "Ascora is not available yet" and "Ascora is not enabled on this account."
Ascora API key details
Once a credential is chosen, this card summarises its key. The saved key is never shown. To replace it, click Manage key and paste a new one on the Ascora integration.
- A badge beside the credential name reads Connected, Not confirmed, Not connected or Key expired. Connected is shown only when the booking service has confirmed Ascora accepts the key. Not connected means the credential has no key saved.
- Key says "The company key", or the key's name with the start of the key in brackets and three dots after it. Until Ascora has reported it, it says "Not reported yet. Run Test Connection."
- Key expires shows the date and how many days are left, or how long ago it ended. The days left turn red within 30 days, and Needs attention on the dashboard warns at the same point. The company key says "The company key does not expire." If Ascora gave no date the page says "No expiry date was reported." Ascora reports the date when the key is saved or tested.
- Test Connection asks Ascora about the key and shows the answer: "Ascora accepted this key" with the key's name in brackets, or for the company key "Ascora accepted this key. It is the company key, which can call every endpoint Formpiece uses." A passing test writes what Ascora reported (name, access and expiry) back to the credential.
What this key is allowed to do
The company key holds every scope, so the card says "The company key has every scope, so it can do everything the booking forms need."
A named key can do only what was ticked under Access when it was made. The card lists each area with a Read and a Write column. Each shows Allowed or Not allowed, and a column an area doesn't use says "Not used". Until Ascora has reported the key's access the card says "Ascora has not reported this key's scopes yet. Run Test Connection to check them."
| Scope on the key | Needed | What Formpiece does with it |
|---|---|---|
| Customers: Read | Always | Finding an existing customer, site and contact |
| Customers: Write | Always | Making the customer, site and contact |
| Jobs: Read | Always | Job templates, and finding the job again when a booking is sent again |
| Jobs: Write | Always | Making the job, and the payment line on it |
| Schedule: Read | Always | Working out free times from the Scheduler |
| Schedule: Write | Always | Booking the staff |
| Users: Read | Always | The staff a service can book |
| Timesheets: Read | Always | Leave, which Ascora keeps behind this access, so a person on leave is not offered |
| Settings: Read | Always | Job types, priorities, customer types, lead sources, payment methods and custom fields |
| Notes: Write | Always | The booking note and the customer's files |
| Notes: Read | Forms that ask for files | Checking a file was not already sent when it is sent again |
| Quotes: Read and Quotes: Write | Forms that book a quote | Making the quote and finding it again |
| Invoices: Read and Invoices: Write | Forms that take a card or send Ascora's payment link | The invoice, and the payment or link, and finding the invoice again |
A scope marked for forms that use it is shown red, with "(a form on this account uses it)", once an active Business form on the account needs it. Otherwise it shows "(only when used)" and is not counted as a problem. A form that books a quote needs the quote scopes. A form with payments switched on, which isn't a quote form, needs the invoice scopes. A form that asks for files needs Notes: Read. The Free plan books a job, takes no payment and asks for no files, so none of these count there.
A missing scope that is needed puts Access missing on the dashboard's Needs attention, listing the scopes by name.
Ascora request limit
Ascora allows 2,000 reads and 300 writes a minute, and 60,000 reads and 6,000 writes an hour, for the whole Ascora account. The limit is shared by everything connected to that account: Formpiece and any other tool that uses the Ascora API. Checking availability uses reads. Making a booking uses writes.
The Ascora request limit card shows reads and writes apart: how many have been used this hour, when the count starts again, and how many are left this minute. It shows a dash and "Not reported yet: Ascora reports it on the next call." until Ascora has reported a count. Limit near appears at 80% of the hour's allowance and Almost reached at 95%. Needs attention says the same, and when Ascora is refusing requests it says so with Limit reached and the time it allows them again.
When it goes wrong
Test Connection says Ascora did not recognise the key
"Ascora did not recognise this API key. Check it was copied whole from Administration > Integrations & API > API Settings." The key was mistyped or cut short. Paste it again.
"This Ascora API key has been revoked." or "has expired."
Make a new key in Ascora and replace it under Manage key. Ascora can't renew a key. Nothing can be sent to Ascora until a new one is saved.
"Ascora refused this key because the Ascora account is locked, inactive or cancelled."
The key is fine. The Ascora account is not, so this has to be sorted out with Ascora.
"Ascora is limiting requests from this account right now. Try again in a minute."
The account is over its request limit. Bookings carry on when the count starts again.
"The Ascora API could not be reached." or "Could not connect to Ascora."
Formpiece's booking service or Ascora didn't answer. Try again in a minute. "Ascora could not be reached. Try again in a minute." is the same problem reported by the booking service.
The badge says Key expired
The expiry Ascora reported has passed. Make a new key in Ascora and save it on the credential.
A scope shows Not allowed
Edit the key in Ascora under Administration, Integrations & API, API Settings, tick the access, save, then click Test Connection so Formpiece reads the new access.
"Could not update the Ascora credential."
The choice could not be saved. Try again.
"Your Ascora settings could not be loaded."
Reload the page. Nothing has been changed.