HomeGuidesAPI ReferenceChangelog
Log In
Guides

Third Party Portals

Resend a third-party portal verification email for an activated ConEdison account.

Use this endpoint to resend a verification email for an account with a third-party portal provider, like ConEdison. You can use it when the account is activated, the provider supports third-party portals, and the account's statusDetail is EMAIL_APPROVAL. That status means the verification link has expired.

This is an asynchronous process, so the email doesn't arrive in the response.

When to use it

Use this when an end user missed the ConEdison verification email or the link has expired. Wait until the account is back in EMAIL_APPROVAL before you call the endpoint again.

How it works

POST /plug/accounts/{accountId}/resendVerificationEmail
curl --request POST \
     --url 'https://api.arcadia.com/plug/accounts/{accountId}/resendVerificationEmail' \
     --header 'Arcadia-Version: 2024-02-21' \
     --header 'accept: application/json' \
     --header 'authorization: Bearer {accessToken}' \
     --header 'Sandbox-Mode: false'

Send the request with no body, using the Plug account ID (act_...).

A 202 response means we've received your request and queued the account for a new verification email. It usually arrives a few minutes after ConEdison accepts the request. After a successful call, the account status changes from EMAIL_APPROVAL to ISSUE_UNDER_REVIEW. Poll the account until it's back in EMAIL_APPROVAL before you try again.

Responses

202 Accepted

The request is queued.

{
  "id": "act_1efc16d6-6f93-d9d8-aec5-8e4fb6995ccb",
  "status": "CONNECTION_IN_PROGRESS",
  "statusDetail": "ISSUE_UNDER_REVIEW"
}

400 Bad Request

The account isn't eligible for a resend. This happens when the account isn't in EMAIL_APPROVAL (for example, a resend is already queued), when the account is disabled, or when the provider doesn't support third-party portals.

Already queued or not in EMAIL_APPROVAL:

{
  "errors": [{
    "type": "invalidParameter",
    "message": "Account act_... must be in EMAIL_APPROVAL to resend verification. Current statusDetail=REQUIRES_ENROLLMENT",
    "param": null
  }]
}

Disabled account:

{
  "errors": [{
    "type": "invalidParameter",
    "message": "Account act_... is disabled and cannot resend verification.",
    "param": null
  }]
}

Provider doesn't support third-party portals:

{
  "errors": [{
    "type": "invalidParameter",
    "message": "Provider prv_... does not support third-party portal verification email resend.",
    "param": null
  }]
}

404 Not Found

The account doesn't exist.

{
  "errors": [{
    "type": "notFound",
    "message": "Account with id ... not found",
    "param": null
  }]
}

Details

  • Each call resends the email for one account. There's no bulk option, so call the endpoint once per account.
  • The Sandbox-Mode header has to match the account. Sandbox requests against live accounts, and live requests against sandbox accounts, are rejected.
  • If an account stays in EMAIL_APPROVAL for 8 days, we automatically send a new verification email. You don't need to call the endpoint for that. There's no separate failed status for a missed link.
  • If an account has been waiting for email approval for 30 days and has never connected, we disable it. After that, resend calls for the account return a 400 error. Please contact customer support in this case.

Did this page help you?