Purchases
POST /api/public/purchases
Record a product purchase for a trainee. Credits, expiration and membership dates are derived from the product when omitted: a punch card opens with the product credits and a one-year expiration, a membership starts immediately for the product duration.
Request
- Base URLhttps://api.coach-platform.com
- AuthHTTP bearer
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
Response
Created
Changes
No recorded changes to this operation across all 6 revisions of this API.