Skip to main content
DELETE
/
contacts
/
{id}
/
payment-email
Unlink a payment email from a contact
curl --request DELETE \
  --url https://api.getfernand.com/contacts/{id}/payment-email \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "source": "STRIPE",
  "email": "billing@piedpiper.com"
}
'
{
  "error": "You cannot unlink the same email as the contact email."
}
Removes the association between a contact and a payment email from a payment processor. Deletes the payment email link record and clears the contact’s financial information (financials, subscription_status, and subscription_start). The payment email being unlinked cannot be the same as the contact’s primary email.

Authorizations

X-API-Key
string
header
required

Authenticate your account by including your secret key in API requests. You can manage your API keys in the Dashboard.

Authentication to the API is performed by using the HTTP Header X-API-Key.

Path Parameters

id
integer
required

ID of the contact to unlink the payment email from.

Body

application/json
source
enum<string>
required

Payment processor source (case-insensitive, will be converted to uppercase).

Available options:
STRIPE,
PADDLE,
LEMON
Example:

"STRIPE"

email
string<email>
required

Payment email address to unlink from the contact. Cannot be the same as the contact's primary email.

Example:

"billing@piedpiper.com"

Response

Payment email unlinked successfully.