QuickBooks
Activate a customer
Makes an inactive QuickBooks customer active again.
POSThttps://api.clickr.cloud/ v2/ integrations/ quickbooks/ customers/ activate
- Uses 1 credit, whatever the result. Talk to us to add credits.
Request
curl -X POST https://api.clickr.cloud/v2/integrations/quickbooks/customers/activate \
-H "Authorization: Bearer $CLICKR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"customerId": "312",
"statusCallbackUrl": "https://example.com/clickr/runs"
}'const response = await fetch(`https://api.clickr.cloud/v2/integrations/quickbooks/customers/activate`, {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.CLICKR_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"customerId": "312",
"statusCallbackUrl": "https://example.com/clickr/runs"
}),
});
const data = await response.json();import os
import requests
response = requests.post(
"https://api.clickr.cloud/v2/integrations/quickbooks/customers/activate",
headers={"Authorization": f"Bearer {os.environ['CLICKR_API_KEY']}"},
json={
"customerId": "312",
"statusCallbackUrl": "https://example.com/clickr/runs"
},
)
data = response.json()Response
200
{
"receipt": "6729c1f04b7e3d0012a91e07"
}Body
JSON, with Content-Type: application/json.
customerIdstringRequiredQuickBooks' id for the customer to activate.
statusCallbackUrlstringA URL Clickr POSTs the run's result to when it finishes, as JSON with your metaData. Sent once, with a 30-second timeout.
metaDataobjectAny JSON object of your own, such as your id for the job. Sent back with the result to statusCallbackUrl.
Response
200, as JSON, once the run is queued. What the run did comes from Get a run, or is POSTed to your statusCallbackUrl.
receiptstringThe id of the run this call started. Pass it to Get a run.
Errors
JSON with an error and, on most, a message saying what to change. All errors
| Status | Error | When |
|---|---|---|
| 401 | No API Key provided | The Authorization header is missing. |
| 401 | No account found for api key provided | The key isn't recognised: mistyped, revoked, or held by someone who has left the account. |
| 401 | No integration found for account | The account has no connector connected yet. |
| 401 | This integration is still pending setup… | QuickBooks isn't fully set up in Clickr: its sign-in or two-factor setup is unfinished. The error says what to do. |
| 403 | Forbidden | Your access on the account doesn't include this action. |
| 403 | Insufficient credits | The account has no credits left for this action. |
| 500 | Failed to create project | The run couldn't be started. (The error text is shared with Create a project.) |