Archive a plan
Draft scaffold — not implemented or available in the API.
Archives the plan. It can’t be put on new orders or chosen in a plan change, and running orders keep their lines. An archived plan can’t be restored. {plan} takes the plan’s plan_ ID or your externalId.
Authentication
AuthorizationBearer
API Key authentication using Bearer token
Path parameters
plan
A Paid ID, external ID or resource key, as supported by the referenced resource.
Headers
Paid-Beta
This endpoint is in the plans=v1 beta. Send this header to use it.
Allowed values:
Response
200
id
The Plan ID.
object
The type of object. Always plan.
Allowed values:
createdAt
When the object was created.
archivedAt
When this resource was archived, or null.
currencies
Currencies offered by every line.
default
The default plan in its upgrade group.
description
What the resource represents.
displayName
What your customers see on invoices, credit notes, checkout and the portal; null uses the resource name.
externalId
Your stable identifier, 1 to 255 characters.
legacy
Legacy configuration when conversion is unavailable.
lines
Catalog lines sold by this plan.
livemode
true for an object on a live account, false on a test account.
metadata
String key-value pairs of your own, up to 500 characters per value. Always updatable.
name
The resource name.
products
Products sold by the plan.
updatedAt
When the object was last changed.
upgradePath
PlanUpgradePath.
version
Version of the plan lines.
Errors
400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
409
Conflict Error
429
Too Many Requests Error
500
Internal Server Error
501
Not Implemented Error