Skip to main content

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"
  }'

Response

200
{
  "receipt": "6729c1f04b7e3d0012a91e07"
}

Body

JSON, with Content-Type: application/json.

customerIdstringRequired

QuickBooks' id for the customer to activate.

statusCallbackUrlstring

A URL Clickr POSTs the run's result to when it finishes, as JSON with your metaData. Sent once, with a 30-second timeout.

metaDataobject

Any 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.

receiptstring

The 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

StatusErrorWhen
401No API Key providedThe Authorization header is missing.
401No account found for api key providedThe key isn't recognised: mistyped, revoked, or held by someone who has left the account.
401No integration found for accountThe account has no connector connected yet.
401This 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.
403ForbiddenYour access on the account doesn't include this action.
403Insufficient creditsThe account has no credits left for this action.
500Failed to create projectThe run couldn't be started. (The error text is shared with Create a project.)