Skip to main content
WIP — coming soon. This page describes the planned integration; the contract may change. Confirm availability in your environment with Vibrant before testing or sending platform-paid orders.
Your platform can place an order on behalf of a provider and pay with its own card. The order still belongs to the provider’s account. You handle any settlement with the patient or provider outside Vibrant. Use the existing POST /orders endpoint with chargeIndicator: "T", your platformId, and a signed payment authorization. Existing C, P, I, and O billing flows stay the same.

Set up your platform

Complete these steps once before placing platform-paid orders.
1

Register your public key

Generate an RSA key pair for RS256 signing. Keep the private key on your server and send only the public key to your Vibrant contact. Vibrant registers it and gives you a platformId.
2

Add your payment card

Vibrant sends you a Stax-hosted payment link. Open it to enter your card details directly with Stax. Vibrant then associates the stored card with your platform and confirms setup. You do not send card details in API requests.
3

Prepare the provider's access token

Use the provider account’s existing client ID and client secret with the OAuth2 client credentials flow. This token determines the account under which orders are placed. There is no additional platform client secret or platform token exchange.
This phase supports one card per platform. Contact Vibrant to replace or remove it, or to register a replacement public key and retire the old key.

Two credentials, two purposes

Each platform-paid order carries both headers: Obtain the provider access token through the existing token endpoint and reuse it until it expires. Create a fresh signed JWT for every platform-paid order request. Send this JWT directly on the order request; you do not exchange it at /oauth2/token. platformId identifies the platform whose registered public key and stored card Vibrant should use. The ID alone does not authorize a charge: the signed JWT must verify against that platform’s key.

Create the payment JWT

Sign the JWT with your platform’s private key using RS256. The planned flow uses the order’s platformId to look up your registered public key.
Key ID (kid) — pending confirmation. Whether this integration requires a separate key ID is still being confirmed. If one is required, Vibrant will provide its value with your platformId after registering your public key. Do not assume kid equals platformId. Confirm the required header with Vibrant before testing; the example below is provisional.
Proposed JWT header
The payload identifies your platform and is valid for approximately 60 seconds. For example, build these claims in JavaScript, then sign them with an RS256-capable JWT library:
Claims to sign
Vibrant verifies the signature, audience, expiration, and single-use jti before charging the platform’s stored card. Keep the signing key on your server; never send it to Vibrant or expose it in browser code.

Place a platform-paid order

Use the same patient, product codes, and provider attribution rules as an ordinary order. Add these payment fields:
Vibrant charges the card registered to your platformId. orderingProviderId is an existing optional order field. If you omit it, the account must have a default ordering provider configured. See provider attribution.

Order and payment outcomes

For a new order, Vibrant validates the provider and platform credentials, charges the platform’s stored card, and places the order. An unknown platform, missing or invalid payment JWT, missing card, or failed charge prevents the order from being placed. Successful requests use the existing order response; no additional token exchange or payment-confirmation call is needed. Use a unique placerId for each order. If a network retry is needed, keep the same placerId and sign a new JWT with a new jti. The existing order idempotency rule returns the original result if the order was already placed, without a second charge.

What this phase includes

  • One stored card per platform, set up and changed with Vibrant’s assistance.
  • A signed payment authorization on each platform-paid order request.
  • Existing receipt delivery; a separate platform-only receipt destination is not part of this phase.
Multiple cards, card-management API endpoints, and charge-notification webhooks are outside this phase. For setup or card changes, contact your Vibrant representative or Developer Support.