Purchases

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

Changed on

Add credits to a punch card purchase. An EXPIRED punch card that ran out of credits becomes ACTIVE again. Punch cards only.

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

amountnumber required

Credits to add

notestring

Note stored on the purchase history

Response

Successful response

Changes