Skip to content

Developer settings

The Developers menu group of the console holds everything a business system needs for integration. It has four entries:

Menu Purpose
API keys Create and revoke the keys business systems use to call the business API
Webhooks Set the endpoint and signing secret for events, review deliveries and resend them
Test mode See how much test data exists and delete all of it
Integration docs Open the integration guide and API reference in a new window, and call the business API from the browser

For integration steps and the API itself, see the Integration guide and the API overview.

The business system calls the business API with an API key. Developers → API keys lists the keys of both modes under two tabs, Active and Revoked. Each row shows the name, mode, scopes, prefix, last use and creation time.

Creating and revoking a key requires the admin role and step-up verification every time. Other roles can view the list.

  1. Select Create API key.
  2. Enter a Name that tells keys apart, such as “Website” or “ERP”.
  3. Choose the Mode. It defaults to the mode the console is currently in.
  4. Tick the Scopes.
  5. Select Create and complete step-up verification.
  6. The dialog shows the full key. Copy and store it, then select I’ve saved it.
Mode Prefix Description
Live fpk_live_ Creates real orders that collect real funds
Test fpk_test_ Reads and writes test data only; payments use testnets and no real funds

Keys of the two modes are separate. Reading a live order with a test key (or the reverse) returns 404, and GET /v1/events lists only the events of the key’s own mode. Test mode is described in full in Test mode (Sandbox).

Scope Console label Description
orders:write Create orders Create orders through the API
orders:read Read orders Read orders, payments and splits
subscriptions:write Create and manage subscriptions Create, pause, resume and cancel subscriptions
subscriptions:read Read subscriptions Read subscriptions and their charges
events:read Read events Fetch events (GET /v1/events) to catch up on missed webhooks
risk:read Read the risk address list Read the risk address list
risk:write Maintain the risk address list Add and remove addresses on the risk list
  • A new key has every scope ticked except risk:read and risk:write. The risk address list is installation-wide configuration, so these two scopes are chosen explicitly.
  • A test-mode key can write list entries for testnet chains only.
  • A request that lacks the required scope returns 403 insufficient_scope.

The business system calls the API with this header:

Authorization: Bearer <API key>

Select Revoke in the list, confirm, and complete step-up verification. Systems using the key lose API access at once, and this cannot be undone. A revoked key stays under the Revoked tab with the time it was revoked.

Creating and revoking keys is written to the audit log and notified to the other admins by email; see Admins and passkeys.

When an order, a subscription or another object changes state, the system POSTs an event to the business system’s endpoint with a signature header. On Developers → Webhooks, the endpoint card is at the top and the delivery log below it. For event types, signature verification and retry rules, see Webhooks.

Live mode and test mode each have their own endpoint and signing secret. The page shows and changes the set that belongs to the mode the console is currently in:

Console mode Card title Used for
Live Endpoint Live events; return signatures of live orders
Test Webhook (test mode) Test events; return signatures of test orders

The card shows the URL and the state of the Signing secret (set or not set). Changes require the admin role and step-up verification, and are written to the audit log.

To set up a webhook:

  1. Choose the mode in the top bar (Live or Test).
  2. Open Developers → Webhooks, select Edit, enter an endpoint address starting with https://, and save.
  3. Select Rotate secret. The dialog shows the new signing secret (whsec_…). Copy it into the business system for signature verification, then select I’ve saved it.

Events of the two modes are delivered in order independently: a failing endpoint in one mode does not hold up the other.

Below the card, the page lists every event of the current mode with its delivery state.

Column Description
# Event sequence number
Event Event type; events that concern an order link to it
Status Pending, Delivered or Failed
Attempts Number of delivery attempts so far
Last result HTTP status code or error of the latest attempt; while waiting for a retry, the time of the next one
Created When the event was produced
  • Status tabs: All, Pending, Delivered, Failed.
  • Search: by event ID, sequence, order ID or subscription ID.
  • Filters: event type (a whole family can be selected, for example order.*) and date range.

An event counts as delivered when the endpoint returns 2xx within 10 seconds. Otherwise delivery is retried with backoff for about 24 hours, after which the event is marked Failed.

Select Resend on the event in the delivery log; the system queues it for delivery again. Admins and operators can resend, and the action is written to the audit log. The Webhook deliveries section of an order’s detail page offers the same action.

A resent event carries the same id as the original, so the business system should process events idempotently by id.

One deployment keeps two separate sets of data, live and test. Developers → Test mode explains how test mode works and manages test data. The Switch to test mode and Back to live mode buttons at the top right of the page do the same as the Live / Test switch in the top bar.

Test mode page: counts of each kind of test data, how test mode works, and the clean-up card

Area Content
Test mode (Sandbox) Number of test orders, test subscriptions, test refunds, test tickets, test events and test alerts, and the number of active test API keys
How test mode works Notes on test API keys, the test webhook (showing its current endpoint, or that it is still to be set) and testnet payments
Clean up test data The Delete all test data button

After switching to test mode, a banner appears at the top of every page. Its Manage test data link leads to this page.

Order list in test mode, with the test mode banner at the top

  1. Under Clean up test data, select Delete all test data.
  2. The dialog states how many records will be deleted. Select Delete and complete step-up verification.
Deleted Kept
Every test order, subscription (with its charges), refund, ticket, event and alert Test API keys, the test webhook, and shared configuration such as chains, payees, split rules and plans
  • The operation requires the admin role and step-up verification every time. It is written to the audit log and notified to the other admins.
  • Deletion is permanent. Live data is not affected.
  • Test subscriptions that exist on chain remain on their testnets; the system no longer charges them.

Developers → Integration docs (and the button of the same name at the top right of the API keys page) opens the console’s built-in integration docs in a new window, at /admin/docs of the console. Viewing them requires being signed in to the console; every role can use them.

Tab Content
Guides Integration guide, Testing in test mode, Popup / iframe embedding, Developer resources
API reference Generated from the business API’s OpenAPI specification and grouped by resource. Each operation lists its required scope, parameters, request body fields and responses

The guides are written in Chinese; the API reference is in English.

Each operation in the API reference has a Try it panel that sends requests from the browser straight to this deployment’s business API:

  1. Enter an API key at the top right of the page.
  2. In the operation’s Try it panel, edit the parameters and the request body. The body is prefilled with the example from the specification. Operations that create objects get an Idempotency-Key automatically; New generates another one.
  3. Select Send request. The page shows the status code, the time taken and the response.
  4. To reproduce the call on the command line, copy the equivalent curl command shown on the page.
  • The API key is kept in the current browser tab only and is cleared when the tab is closed. Requests go from the page straight to the business API.
  • With a live key (fpk_live_…) the page warns that the orders, subscriptions and risk list changes it makes are real.