novinzodevelopers
Your store's APIApps referenceReseller catalog

Archive Product

POST/admin/products/{productId}/archive

Archives every duration of a product for good: resellers can no longer buy it, and nothing unarchives it. Keys already bought keep working. ListProducts still lists it, with its archivedAt.

Path Parameters

productId*string
Match^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$

Response Body

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/admin/products/string/archive"
{  "id": "string",  "name": "string",  "connectionId": "string",  "providerProductId": "string",  "visibility": {    "_tag": "Everyone"  },  "skus": [    {      "id": "string",      "productId": "string",      "connectionId": "string",      "providerProductId": "string",      "name": "string",      "durationMinutes": 1,      "listPriceMinor": 0,      "minOrderQuantity": 1,      "visibility": {        "_tag": "Everyone"      },      "archivedAt": "string",      "createdAt": "string",      "updatedAt": "string"    }  ],  "archivedAt": "string",  "createdAt": "string",  "updatedAt": "string"}