Archive an offer
Archive (soft delete) an offer by its ID. Archived offers can no longer be purchased but existing subscriptions continue. This action is reversible.
Authorization
Public key Secret key In: header
In: header
Request Body
application/json
PATCH /v0/offers/:offerId/archive Request body
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X PATCH "https://example.com/v0/offers/{offerId}/archive" \ -H "Content-Type: application/json" \ -d '{ "id": "550e8400-e29b-41d4-a716-446655440000" }'{ "status": "success", "data": { "success": true }}Update an offer PATCH
Update an existing offer's details. Can modify name, price, and settings. Note that changing pricing on an active offer may affect existing subscription customers depending on your configuration. An offer priced in several currencies answers 409 to a change of its price, currency or billing interval; sending its current values back, or leaving them out, still saves the other fields.
Add product keys POST
Add product keys (license keys, game keys, etc.) to an offer. Keys are automatically assigned to customers upon successful purchase. Each key can only be used once.