Unarchive a product (atomic)
Atomically clears `deleted_at` AND sets `active = true`. Use this instead of `PATCH /:id/restore` followed by `PATCH /:id` with `active: true` — separate calls leave a brief window where the product is restored-but-inactive.
Authorization
apiKey Merchant API key. Publishable keys (pk_test_* / pk_live_) are safe for browser/frontend use and carry a limited scope set (sessions, payment_instruments, customers, orders writes; products, product_prices, payment_links reads). Secret keys (sk_test_ / sk_live_*) grant full admin access and must only be used server-side.
In: header
Path Parameters
1 <= lengthResponse Body
application/json
application/json
application/json
application/json
curl -X PATCH "https://loading/v1/api/products/string/unarchive"{
"success": true,
"timestamp": "2019-08-24T14:15:22Z",
"data": null,
"message": "string",
"pagination": {
"total": 0,
"limit": 1,
"offset": 0,
"has_more": true,
"truncated": true,
"cursors": {
"first": "string",
"last": "string"
}
}
}{
"success": false,
"timestamp": "2019-08-24T14:15:22Z",
"error": {
"code": "string",
"message": "string",
"details": null
}
}{
"success": false,
"timestamp": "2019-08-24T14:15:22Z",
"error": {
"code": "string",
"message": "string",
"details": null
}
}{
"success": false,
"timestamp": "2019-08-24T14:15:22Z",
"error": {
"code": "string",
"message": "string",
"details": null
}
}Restore an archived product
Restores a soft-deleted product back to the Active state: atomically clears `deleted_at` AND sets `active = true`.
Get product by product ID and price ID
Returns the product (including its `default_price_id`) with the requested price under `price_data`, which carries a precomputed `is_default` boolean.