Skip to navigation

Set the earnings goal

Sets the creator’s earnings goal, replacing the current one.

The goal is validated and built exactly as when the creator sets it.

Response

The answer is { goal }: the goal’s terms as set (goalRef, targetMinor, currency, periodStart, periodEnd, label) and its progress (earnedMinor, otherCurrencies).

The progress is money. It is filled only when your application also passes the revenue check of GET /partner/v1/accounts/{creatorId}/earnings-goal: its effective access covers read:revenue. Otherwise both fields are null. write:goals alone sets a goal but never reads the creator’s earnings.

Errors

  • 409 GOAL_CHANGED — another change to the goal won a race with this request.

Required scopes: write:goals.

Authentication

AuthorizationBearer

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.

Required scopes:write:goals

Path parameters

creatorIdstringRequired>=1 character

The creator profile id — the ONLY source of the creator a request acts for.

Headers

X-Creator-IdstringOptional

Optional echo of the path creatorId; any other value is refused with 403 CREATOR_CONTEXT_MISMATCH.

Request

This endpoint expects an object.
targetMinorstringRequiredformat: "^[0-9]{1,15}$"
The target in minor units, as digits.
currencystringRequiredformat: "^[A-Z]{3}$"
periodStartdatetimeRequired
An instant with an offset.
periodEnddatetimeRequired
labelstring or nullOptional1-60 characters

Response

OK.

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
409
Conflict Error
429
Too Many Requests Error
500
Internal Server Error
503
Service Unavailable Error