Accountants

Create or replace the prepared onboarding profile for a custom pricing offer (#2560)

Changed on

Service-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.

put/accountant/admin/custom-pricing/{offerId}/prepared-profile

Request

  • Base URL
    https://api.medianfi.com/api/v1
  • Auth
    • HTTP bearer
    • or API key in header X-API-Key

Path parameters

offerId, string uuid required

Request body

PreparedOnboardingProfileInput required

Accountant-authored engagement setup bound to a custom pricing offer (#2560).

engagement, object required
companyFacts, object required
taskIds, string[] required
verifiedAccess, PreparedOnboardingVerifiedAccess[]
requests, PreparedOnboardingRequest[]
stripe, object
welcomeCall, object

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.

contact, object

What the accountant already knows about the person who will sign up (#3973). Both optional.

billing, object

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

object required
success, true required
data, PreparedOnboardingProfile required

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