Programs
Create a program
Create a new program.
post/v1/programs
Request
- Base URL: https://api.scrip.dev
- URL: https://api.scrip.dev/v1/programs
- Auth: HTTP bearer
Headers
Idempotency-Keystring
A key you choose to make this request safe to retry: 1 to 255 printable ASCII characters. Send the same key with the same request to get the first response again, marked Idempotent-Replayed: true. Routes that return a secret once, and claim links, do not replay a response. Event ingest uses the key as the event's identity.
Request body
Example request
{
"description": "Quarterly sales incentive program for the sales team",
"fulfillment_max_face_value_minor": 10000,
"fulfillment_mode": "ASYNC",
"fulfillment_participant_max_amount_minor": 25000,
"fulfillment_participant_max_count": 3,
"fulfillment_participant_window_seconds": 86400,
"name": "Acme Rewards",
"on_unknown_participant": "CREATE",
"pending_redemption_ttl": "24h"
}Response
Program created
Example response
{
"created_at": "2027-01-15T10:30:00Z",
"deleted_at": "2027-01-15T10:30:00Z",
"description": "Quarterly sales incentive program",
"fulfillment_max_face_value_minor": 10000,
"fulfillment_mode": "INSTANT",
"fulfillment_participant_max_amount_minor": 25000,
"fulfillment_participant_max_count": 3,
"fulfillment_participant_window_seconds": 86400,
"id": "8f14e45f-ceea-4e70-9df8-2a7d1b3c9f01",
"name": "Acme Rewards",
"on_unknown_participant": "CREATE",
"pending_redemption_ttl": "24h",
"redemption_target_entity_id": "5e7a9c13-2d4f-4b68-9a0c-e1b3d5f7a920",
"redemption_target_type": "SYSTEM_REDEMPTION",
"status": "ACTIVE",
"updated_at": "2027-01-15T10:30:00Z"
}Changes
No recorded changes to this operation across all 1 revision of this API.