Join the coding plan, or change your monthly amount [write]

Changed on

Joining charges the caller's saved card amount_usd plus the card processing fee and adds amount_usd as purchased credit; the plan renews monthly on the same card. A current member's call changes the amount from the next renewal, charges nothing, and undoes a pending cancellation. request_id makes a repeat of the same join charge once. 409 card_required without a saved card (POST /billing/card-setup adds one), 402 card_declined, 403 enrollment_closed, 409 enrollment_full, 409 charge_in_progress, 503 payments_unavailable. A workspace key or a restricted credential cannot change the plan.

post/billing/coding-plan

Request

  • Base URL
    https://api.agentsky.dev/v1
  • URL
    https://api.agentsky.dev/v1/billing/coding-plan
  • Auth
    none declared

Request body

amount_usd10 | 40 required
request_idstring required

Response

The plan after the change

activeboolean required

A paid month covers now

monthly_credit_usdnumber nullable required
current_period_endstring date-time nullable required
renewsboolean required

The plan charges again at current_period_end

charge_failurestring nullable required

Why the last charge failed, worded for the cardholder

enrollment'open' | 'full' | 'closed' required
amounts_usdnumber[] required

Changes