---
updatedAt: 2026-09-28T17:55:29.000Z
agentTools:
  projectIndex: https://docs.helix.q2.com/llms.txt
---

# Archive a customer

Archive a customer by the Helix-assigned `customerId`.

<Callout icon="🚧" theme="warn">
  <strong style={{ display: "block" }}>Warning</strong>
  Archiving is permanent and cannot be undone.
</Callout>

#### Error Codes

<details>
  <summary>Click to expand</summary>

| Code    | Message (en-US)                                                                                        | Notes                                            |
| :------ | :----------------------------------------------------------------------------------------------------- | :----------------------------------------------- |
| 1-60000 | Any "Common Error Code" may occur.                                                                     | See [Common Error Codes](https://docs.helix.q2.com/reference/common-error-codes) |
| 60001   | Customer id {0} is invalid.                                                                            |                                                  |
| 67201   | One or more pending transactions exist. e.g. TransactionId={0}.                                        |                                                  |
| 67202   | One or more accounts have a non-zero balance. e.g. AccountId={0}.                                      |                                                  |
| 67203   | One or more accounts are not in a Closed status. e.g. AccountId={0}.                                   |                                                  |
| 67204   | One or more cards are still active for CustomerId={0}. Those must first be archived.  e.g. CardId={0}. |                                                  |

</details>

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "Helix API",
    "version": "3.0.0",
    "description": "Helix Public API (no customer KYC/IDV). **This spec covers all of Helix 3.x and is subject to change at any time.**"
  },
  "servers": [
    {
      "url": "https://sandbox-api.helix.q2.com",
      "description": "Sandbox server"
    },
    {
      "url": "https://api.helix.q2.com",
      "description": "Production server"
    }
  ],
  "tags": [
    {
      "name": "Card",
      "description": "Endpoints for the card object"
    },
    {
      "name": "Customer",
      "description": "Endpoints for the customer object"
    }
  ],
  "security": [
    {
      "basicAuth": []
    }
  ],
  "paths": {
    "/card/lock": {
      "post": {
        "tags": [
          "Card"
        ],
        "summary": "Lock a card",
        "description": "Lock a card. Most locks can be reversed by calling [/card/unlock](https://docs.helix.q2.com/reference/cardunlock). Please check the [/card/unlock](https://docs.helix.q2.com/reference/cardunlock) documentation to see which lock scenarios can be subsequently unlocked. Will apply a `lockTypeCode` of `CST` on success and all card-based transactions will fail.",
        "externalDocs": {
          "url": "https://docs.helix.q2.com/reference/cardlock"
        },
        "operationId": "cardLock",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "customerId",
                  "cardId",
                  "lockReasonTypeCode"
                ],
                "properties": {
                  "customerId": {
                    "$ref": "#/components/schemas/HelixId"
                  },
                  "cardId": {
                    "$ref": "#/components/schemas/HelixId"
                  },
                  "lockReasonTypeCode": {
                    "type": "string",
                    "enum": [
                      "UNK",
                      "FRD",
                      "DMG",
                      "TMP"
                    ],
                    "description": "- `UNK`: Unknown\n- `FRD`: Fraud\n- `DMG`: Physical Damage\n- `TMP`: Temporary\n"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "An <a href=\"https://docs.helix.q2.com/reference/response-format\" target=\"_blank\">envelope</a> whose data node is a <a href=\"https://docs.helix.q2.com/docs/card\" target=\"_blank\">card</a> object",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CardObject200Response"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "$ref": "#/components/schemas/HelixId"
                          },
                          "message": {
                            "type": "string"
                          }
                        }
                      }
                    },
                    "requestId": {
                      "type": "string",
                      "example": "b75a96f8-2fbc-4b14-9ba4-7b06aa431c9d"
                    },
                    "status": {
                      "type": "integer",
                      "enum": [
                        400
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "integer",
                            "enum": [
                              50401
                            ]
                          },
                          "message": {
                            "type": "string",
                            "example": "User is not authorized"
                          }
                        }
                      }
                    },
                    "requestId": {
                      "type": "string",
                      "enum": [
                        "00000000-0000-0000-0000-000000000000"
                      ]
                    },
                    "status": {
                      "type": "integer",
                      "enum": [
                        401
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "integer",
                            "enum": [
                              50404
                            ]
                          },
                          "message": {
                            "type": "string",
                            "example": "The requested resource 'https://sandbox-api.helix.q2.com/customer/updat/805592' was not found"
                          }
                        }
                      }
                    },
                    "requestId": {
                      "type": "string",
                      "example": "b75a96f8-2fbc-4b14-9ba4-7b06aa431c9d"
                    },
                    "status": {
                      "type": "integer",
                      "enum": [
                        404
                      ]
                    }
                  }
                }
              }
            }
          },
          "405": {
            "description": "HTTP Method Not Allowed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "integer",
                            "enum": [
                              50405
                            ]
                          },
                          "message": {
                            "type": "string",
                            "example": "The HTTP method 'POST' for requested resource 'https://sandbox-api.helix.q2.com/customer/get/805594' is not allowed."
                          }
                        }
                      }
                    },
                    "requestId": {
                      "type": "string",
                      "enum": [
                        "00000000-0000-0000-0000-000000000000"
                      ]
                    },
                    "status": {
                      "type": "integer",
                      "enum": [
                        405
                      ]
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate Limit Exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "integer",
                            "enum": [
                              50429
                            ]
                          },
                          "message": {
                            "type": "string",
                            "example": "Rate limit exceeded"
                          }
                        }
                      }
                    },
                    "requestId": {
                      "type": "string",
                      "enum": [
                        "00000000-0000-0000-0000-000000000000"
                      ]
                    },
                    "status": {
                      "type": "integer",
                      "enum": [
                        429
                      ]
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/customer/archive": {
      "post": {
        "tags": [
          "Customer"
        ],
        "summary": "Archive a customer",
        "description": "Archive a customer by the Helix-assigned `customerId`.",
        "externalDocs": {
          "url": "https://docs.helix.q2.com/reference/customerarchive"
        },
        "operationId": "customerArchive",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "customerId"
                ],
                "properties": {
                  "customerId": {
                    "$ref": "#/components/schemas/HelixId"
                  },
                  "archiveReason": {
                    "type": "string",
                    "enum": [
                      "FirstPartyFraud",
                      "ThirdPartyFraud",
                      "SyntheticIdFraud",
                      "AccountTakeoverFraud",
                      "NonActivity",
                      "CustomerRequest",
                      "BankDiscretion",
                      "Other"
                    ],
                    "default": "Other",
                    "description": "- `FirstPartyFraud`: When someone uses his/her own identity to obtain products and services with no intent to fulfill their payment obligation.\n- `ThirdPartyFraud`: When someone uses a stolen identity to commit fraud. Refers to fraud that is committed without the knowledge of the person whose identity is used to commit the fraud. \n- `SyntheticIdFraud`: When someone uses a possible combination of real and phony attributes, including possible real attributes that don’t correlate to each other, in order to assemble a phony identity. This information is then used to open fraudulent accounts and/or obtain goods and services.\n- `AccountTakeoverFraud`: When someone uses another person's account information to make purchases or withdraw money and often involves changing credentials and/or personal profile information. \n- `NonActivity`: Non-Activity.\n- `BankDiscretion`: Bank chose to archive for a non-fraud reason\n- `Other`: Default value. Providing a detailed reason is strongly encouraged as it informs and improves fraud detection mechanisms. \n"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "A pared down customer object",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerArchive200Response"
                }
              }
            }
          },
          "400": {
            "$ref": "#/paths/~1card~1lock/post/responses/400"
          },
          "401": {
            "$ref": "#/paths/~1card~1lock/post/responses/401"
          },
          "404": {
            "$ref": "#/paths/~1card~1lock/post/responses/404"
          },
          "405": {
            "$ref": "#/paths/~1card~1lock/post/responses/405"
          },
          "429": {
            "$ref": "#/paths/~1card~1lock/post/responses/429"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "CardArray200Response": {
        "allOf": [
          {
            "type": "object",
            "properties": {
              "errors": {
                "type": "array",
                "items": {},
                "example": []
              },
              "requestId": {
                "type": "string",
                "example": "1249a3bf-aca1-40dd-9fba-2a3193550c39"
              },
              "status": {
                "type": "integer",
                "enum": [
                  200
                ]
              },
              "throttle": {
                "type": "object",
                "properties": {
                  "periodEndsAt": {
                    "$ref": "#/components/schemas/CustomerSetLastContact200Response/allOf/1/properties/data/items/properties/lastContactDate"
                  },
                  "periodLengthInSeconds": {
                    "$ref": "#/components/schemas/HelixId"
                  },
                  "periodRequestLimit": {
                    "$ref": "#/components/schemas/HelixId"
                  },
                  "requestsRemainingInPeriod": {
                    "$ref": "#/components/schemas/HelixId"
                  },
                  "warningThreshold": {
                    "type": "number",
                    "format": "decimal",
                    "example": 0.2
                  }
                }
              }
            }
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/CardObject200Response/allOf/1/properties/data"
                }
              }
            }
          }
        ]
      },
      "CustomerArchive200Response": {
        "allOf": [
          {
            "$ref": "#/components/schemas/CardArray200Response/allOf/0"
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "type": "object",
                "properties": {
                  "accounts": {
                    "type": "array",
                    "items": {}
                  },
                  "addresses": {
                    "type": "array",
                    "items": {}
                  },
                  "cards": {
                    "type": "array",
                    "items": {}
                  },
                  "customerId": {
                    "$ref": "#/components/schemas/HelixId"
                  },
                  "externalAccounts": {
                    "type": "array",
                    "items": {}
                  },
                  "phones": {
                    "type": "array",
                    "items": {}
                  },
                  "status": {
                    "type": "string",
                    "enum": [
                      "Archived"
                    ]
                  }
                }
              }
            }
          }
        ]
      },
      "CustomerSetLastContact200Response": {
        "allOf": [
          {
            "$ref": "#/components/schemas/CardArray200Response/allOf/0"
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "customerId": {
                      "$ref": "#/components/schemas/HelixId"
                    },
                    "dormancyStatus": {
                      "type": "string",
                      "enum": [
                        "Active",
                        "Inactive",
                        "Dormant"
                      ]
                    },
                    "lastContactDate": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2021-01-07T19:00:59.761-06:00"
                    },
                    "lastContactType": {
                      "$ref": "#/components/schemas/LastContactType"
                    }
                  }
                }
              }
            }
          }
        ]
      },
      "HelixId": {
        "type": "integer",
        "format": "int32",
        "minimum": 1
      }
    },
    "securitySchemes": {
      "basicAuth": {
        "type": "http",
        "scheme": "basic"
      }
    }
  },
  "x-samples-languages": [
    "curl",
    "node",
    "python",
    "csharp",
    "ruby",
    "go",
    "java",
    "kotlin",
    "php"
  ]
}
```