Create a subscription price version
Adds a new price version to the creator’s subscription plan; existing subscribers keep their version.
Request
The same body as the creator’s own reprice: planRef, priceMinor, currency, periodMonths, discountMinor, trialDays and introPriceMinor. The trial, the introductory price and the discount are terms of the version.
The creator’s link must carry money:subscription, which is off by default. The creator’s account must allow monetization (MONETIZATION_SURFACE).
Action approval
Every new version goes through action approval, bound to every term, under the agency’s rule for this operation. The amount is the new priceMinor. When it needs a person, you get 202 APPROVAL_REQUIRED.
The plan-version rules and the account restrictions are checked again when the approved request runs:
- the price must be positive;
- the discount must be below the price;
- an introductory price needs introductory days.
Idempotency
Your application must send an Idempotency-Key, as every request that goes through action approval must. A first append answers 201. With a key, the append happens exactly once:
- a retry answers the first append;
- concurrent requests with the same key answer the first append (
200); - a retry after a failure between the append and its record answers the version already appended (
200) instead of appending another.
Errors
409— a conflict, such asIDEMPOTENCY_KEY_CONFLICTwhen the key was already used for different terms.
Required scopes: money:subscription.
Approval: this operation runs through action approval for applications.
Authentication
OAuth 2.0 client credentials. Request an access token at POST /partner/v1/oauth/token (grant_type=client_credentials) with the application’s client secret or a private_key_jwt assertion, then send it as Authorization: Bearer evpa_live_… (or evpa_test_… for a sandbox application). Tokens are opaque and short lived (see expires_in); there is no refresh token. Each operation lists the scopes it requires.
money:subscriptionPath parameters
The creator profile id — the ONLY source of the creator a request acts for.
Headers
Optional echo of the path creatorId; any other value is refused with 403 CREATOR_CONTEXT_MISMATCH.
Required, because the operation may need approval: action approval claims an approval, or reserves the agency’s automatic budget, under this key. Without it the request is 400 IDEMPOTENCY_KEY_REQUIRED, and nothing is asked or reserved. With a key the new version is appended exactly once: concurrent requests and a retry after a failure answer 200 with the version the first one appended. The same key with different terms is 409 IDEMPOTENCY_KEY_CONFLICT.
The approvalId a previous 202 APPROVAL_REQUIRED returned, for an operation your application may run only with approval. Re-send it with the same payload once a person has approved. A blank value is no approval.
The approval is spent once, for exactly that agency, application, creator, operation and payload digest, the same amount and currency, and at most the units it was given for. It is claimed for the request’s Idempotency-Key (required) and becomes final when the operation succeeds:
- A refusal before the effect, a
4xxor429, hands it back for your next attempt. - A
5xx,503included, keeps it claimed for this key, because the effect may have happened. It is handed back only when EVVA knows nothing was done. - The same key re-sent replays the request and never has a second effect. You get the stored result where the operation keeps one, otherwise
409 APPROVAL_CONSUMEDwithdetails.replay: true: read the resource to see the result. - Another key is
409 APPROVAL_CONSUMED.
When the approval cannot be used, the request is refused with 403 (APPROVAL_INVALID, APPROVAL_MISMATCH or APPROVAL_DECLINED) or 409 (APPROVAL_PENDING, APPROVAL_EXPIRED or APPROVAL_CONSUMED). See action approval.
Request
Response
A replay: the version this Idempotency-Key already appended (nothing is appended again).
