Skip to main content
POST
/
v1
/
partners
/
cancelAccount
curl -X POST https://api.infinipost.co/v1/partners/cancelAccount \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "accountId": "acc_9n2x7yp0dg"
  }'
{
  "success": true
}

Request Body

accountId
string
required
The unique account ID to cancel. Retrieve this from the Get Accounts endpoint.

Response

success
boolean
Returns true if the account was successfully cancelled.
curl -X POST https://api.infinipost.co/v1/partners/cancelAccount \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "accountId": "acc_9n2x7yp0dg"
  }'
{
  "success": true
}

Cancellation Details

  • The Stripe subscription is cancelled immediately with prorated billing
  • The account status is updated to cancelled in Infinipost
  • Cancelled accounts cannot be reactivated — a new checkout session must be created to purchase a replacement account
This action is irreversible. Once an account is cancelled, it cannot be reactivated. Make sure to confirm with your user before calling this endpoint.

Error Responses

Invalid API Key
{
  "error": "This API key does not have partner access"
}
Missing Required Fields
{
  "error": "accountId is required"
}
Account Not Found
{
  "error": "Account not found"
}