Before your first request
- Sign in as the business owner and open Business → Settings → API access at /business/{businessId}/settings/api. Create an application, choose the environment and grant catalog.read and availability.read. Add booking.create only when your integration is ready to create bookings.
- Copy the key when it is shown once and save it in a server-side secret store. Set FENY_API_KEY on your server; do not place it in frontend code, a public repository or a URL.
- Use https://feny.fenix2soft.com as the production API origin. A TEST key requires a separately configured sandbox origin and tenant; the production origin does not become a sandbox when you use a test key.
- The examples below use an existing published service and a future date. Replace placeholders with values returned by your own API calls. Create bookings only with a customer’s explicit consent.
1. Read the published catalog
curl --fail-with-body --get 'https://feny.fenix2soft.com/api/partner/v1/catalog' \
--header "Authorization: Bearer $FENY_API_KEY" \
--data-urlencode 'locale=en' \
--data-urlencode 'limit=25'
# Read data.services[].id and, when present, data.locations[].id.
# Follow data.next_cursor until it is null.2. Find an available time
SERVICE_ID='<service_id_from_catalog>'
VISIT_DATE='<future_YYYY-MM-DD>'
curl --fail-with-body --get 'https://feny.fenix2soft.com/api/partner/v1/availability' \
--header "Authorization: Bearer $FENY_API_KEY" \
--data-urlencode "service_id=$SERVICE_ID" \
--data-urlencode "date=$VISIT_DATE"
# Read data.slots[].start. Availability is not a reservation.3. Create a guest booking
IDEMPOTENCY_KEY="$(openssl rand -hex 16)" # Save this with the logical request.
curl --fail-with-body 'https://feny.fenix2soft.com/api/partner/v1/bookings' \
--header "Authorization: Bearer $FENY_API_KEY" \
--header "Idempotency-Key: $IDEMPOTENCY_KEY" \
--header 'Content-Type: application/json' \
--data '{
"service_id": "<service_id_from_catalog>",
"date": "<future_YYYY-MM-DD>",
"start_time": "<start_from_availability>",
"external_reference": "<your_unique_order_reference>",
"customer": {
"name": "Example Customer",
"phone": "+15550001111",
"consent_to_contact": true
}
}'
# Save data.booking.reference (pbr_...) for later management.
# On a network timeout, resend the identical request with the SAME key.4. Retrieve and manage your booking
BOOKING_REF='<pbr_reference_from_create_response>'
curl --fail-with-body \
--header "Authorization: Bearer $FENY_API_KEY" \
"https://feny.fenix2soft.com/api/partner/v1/bookings/$BOOKING_REF"
# Before a cancel or reschedule, read data.booking.version.
# POST /api/partner/v1/bookings/{reference}/actions/cancel
# Body: {"expected_version": <current_version>}
# A reschedule also needs date and start_time.Integration sequence
1. Prepare a sandbox
Use the dedicated sandbox API origin, test tenant and credentials. Populate only synthetic services, staff and guest contacts.
2. Create a least-privilege application
Enable only the required scopes. Confirm write scopes explicitly and set selected-location, origin and IP restrictions where applicable.
3. Read before writing
Resolve a current published service and free slot, then send the returned identifiers unchanged in the booking request.
4. Make writes replay-safe
Use a fresh Idempotency-Key per logical operation. For a cancel or reschedule, retrieve the booking first and send expected_version.
5. Verify delivery
Subscribe a public HTTPS endpoint, store the one-time signing secret in a server-side vault, then persist webhook event ids before side effects.
6. Promote intentionally
Issue a new production key and signing secret. Do not reuse sandbox credentials, tenant handles, bookings or webhook URLs as a migration mechanism.
Server-side authorization example
GET /api/partner/v1/catalog?locale=en&limit=25 HTTP/1.1
Authorization: Bearer fnx_test_example_key_not_a_real_credential
Origin: https://partner.exampleSandbox and production are separate
Sandbox (TEST)
A dedicated database, tenant, API origin and credential issuer are required. Payments are disabled, data is synthetic only, and the reset policy is explicitly DAILY or ON_DEMAND.
Production (LIVE)
Create a separate production application, credentials and webhook secret after the integration is ready. Production is never a fallback for sandbox configuration.
Authentication and scopes
| Scope | Access | Permitted work |
|---|---|---|
| catalog.read | Read | Read the current published service, location and specialist catalog. |
| availability.read | Read | Read bounded current free slots. |
| booking.create | Write | Create a partner guest booking with consent, external_reference and Idempotency-Key. |
| booking.manage | Write | Read and change only bookings owned by the application using opaque pbr_ references. |
| webhooks.manage | Write | Configure, pause, replay and rotate the application webhook endpoint from the owner Control Center. |
Keep these values out of browser storage
- Partner API keys and webhook signing secrets.
- Raw Idempotency-Key values if they carry business meaning or customer data.
- Webhook payload archives that contain an opaque booking reference and operational schedule details.
Support and promotion policy
- Before production promotion, verify the current scoped application, allowed origins/IPs, selected locations, webhook receiver and retry behavior in sandbox.
- For an integration issue, provide the environment, endpoint, UTC timestamp, HTTP status and X-Request-Id. Do not include a credential, signing secret, full webhook payload or customer contact data.
- This public documentation does not promise response or uptime targets. Use the static status page as a release-contract reference and retain bounded retries in the integration.
Feny