Skip to main content
POST
/
api
/
v1
/
customers
/
{customer_key}
/
archive
Python SDK
from metrifox_sdk import MetrifoxClient

client = MetrifoxClient(api_key="your_api_key")

result = client.customers.archive("cust-mit7k5v8obzs")
print(result['data']['archived_at'])
{
  "statusCode": 200,
  "message": "Customer archived successfully",
  "meta": {},
  "data": {
    "customer_key": "cust-mit7k5v8obzs",
    "archived_at": "2026-05-13T04:30:00.000Z"
  },
  "errors": {}
}

Documentation Index

Fetch the complete documentation index at: https://docs.metrifox.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

x-api-key
string
header
required

Path Parameters

customer_key
string
required

The unique identifier for the customer

Response

Customer archived successfully

statusCode
integer
Example:

200

message
string
Example:

"Customer archived successfully"

data
object

The archived customer record (same shape as Get Customer), with archived_at set