CorefinityCorefinityDocs
Open the Control PanelControl Panel
Marketplace keys · 3 of 8

Delete a company's Marketplace keys

Removes the company's own Marketplace keys. While Adobe Commerce sites use them, send the company's name as confirm_company.

DELETE/api/companies/{company}/magento-keys

Path parameters

companyintegerRequired

The id of a company you belong to or manage. Digits only. At least 1.

Body

confirm_companystring

The company's name, typed exactly. Needed only while Adobe Commerce sites use the keys.

Returns

200 The keys were removed. The answer shows what installs use now.

Fields of the 200 answer
agencystring or null
can_changebooleanRequired
commerce_sitesobject

The Adobe Commerce sites that use the keys.

Fields
countinteger
sitesarray
entitlementsobjectRequired

What the keys can install.

Fields
checked_atstring or nullRequired

Format: date-time.

commercebooleanRequired
errorstring or nullRequired
open_sourcebooleanRequired
fallbackstring or null
public_key_last4string or nullRequired
sourcestringRequired

Where the keys come from: company for the company's own, none when there are none. Other values name keys the company inherits.

updated_atstring or nullRequired

Format: date-time.

updated_byobject or any or nullRequired

Who saved the keys.

verified_atstring or nullRequired

Format: date-time.

If it is refused

StatusReasonWhat to do
401noneSend a valid token as Authorization: Bearer <token>.
403company_unavailableYour company is unavailable.
403scope_requiredUse a token with the scope named in scope.
403two_factor_requiredTurn on two-factor on your account, then send again.
404feature_offThis feature is not on for your organisation yet.
422invalidFix the field named in field; errors says why.
429rate_limitedWait for the seconds in Retry-After.

Reasons are listed by name in Errors and refusals.

The same task elsewhere

curl -X DELETE https://manage.corefinity.com/api/companies/1204/magento-keys \
  -H "Authorization: Bearer $COREFINITY_TOKEN" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d '{
    "confirm_company": "Harbour & Finch"
  }'
{
  "agency": "own",
  "can_change": true,
  "commerce_sites": {
    "count": 0,
    "sites": []
  },
  "entitlements": {
    "checked_at": null,
    "commerce": false,
    "error": null,
    "open_source": false
  },
  "fallback": "none",
  "public_key_last4": null,
  "source": "none",
  "updated_at": null,
  "updated_by": null,
  "verified_at": null
}
Try it

Try it is off for this endpointIt deletes data that cannot be brought back. Copy the request and run it yourself when you are sure.

Was this helpful?
Open in ClaudeOpen in ChatGPT