Purchases

POST /api/public/purchases/{purchaseId}/extend

Changed on

Push the expiration date of a purchase forward by a duration, e.g. 2 WEEK. Works for punch cards and memberships.

Request

  • Base URL
    https://api.coach-platform.com
  • Auth
    HTTP bearer

Path parameters

purchaseIdstring required

Headers

Idempotency-Keystring

Optional. Send a unique key (e.g. a UUID) to make this POST safe to retry. The same key within 24h returns the original result instead of creating a duplicate.

Request body

valuenumber required

How many units to extend by

unit'DAY' | 'WEEK' | 'MONTH' | 'YEAR' required
notestring

Note stored on the purchase history

Response

Successful response

Changes