Create or replace the prepared onboarding profile for a custom pricing offer (#2560)
Changed onService-key access requires SERVICE_KEY_CUSTOM_PRICING_ENABLED (default false); otherwise the operation is concealed with 404. Human accountant access is unchanged. Service keys cannot change or remove human-verified request definitions (403). With billing.source existing_subscription the subscription is read from Stripe (never written) and its customer stored as billing.snapshot. The pricing must be one fixed, undiscounted USD recurring price billed once per month or year. Unsupported terms answer 422 ONBOARDING_EXISTING_SUBSCRIPTION_UNSUPPORTED_TERMS. An ID Stripe does not have answers 422 ONBOARDING_EXISTING_SUBSCRIPTION_NOT_FOUND, and production with no billing provider answers 503. An ID another company is billed on, another onboarding flow holds, or another not-void offer's profile records answers 409 ONBOARDING_EXISTING_SUBSCRIPTION_IN_USE before Stripe is read. When Stripe's customer email is not the offer email, the save answers 409 ONBOARDING_EXISTING_SUBSCRIPTION_CONFIRM_CUSTOMER with extensions { snapshot, offerEmail } until billing.confirmStripeCustomerId names that customer; the confirmation is then stored as billing.customerConfirmation and kept across saves of the same subscription and customer.
Request
- Base URLhttps://api.medianfi.com/api/v1
- Auth
- HTTP bearer
- or API key in header X-API-Key
Path parameters
Request body
Accountant-authored engagement setup bound to a custom pricing offer (#2560).
Retired (#3971). Every accountant-prepared engagement now skips the welcome call, so this is accepted for older clients and stored profiles, ignored, and not stored again.
What the accountant already knows about the person who will sign up (#3973). Both optional.
Absent = a new subscription at Checkout. existing_subscription: the client already pays through this Stripe subscription, so signup skips the plan screen and Checkout (POST /onboarding/v3/existing-subscription-activation).
Response
Prepared profile saved
Changes
- info
added the new optional request property
billing - info
added the non-success response with the status
- info
added the non-success response with the status
1 more change in this revision
- info