Simulate a pay-per-view unlock
Makes a synthetic fan unlock a pay-per-view message in the sandbox, with no money involved.
The body is {messageId}: a locked message the creator sent in one of its conversations. No order, payment or entitlement exists, so the message’s purchase status in the REST reads stays unpaid.
What is recorded
The same event a paid unlock records: ppv.purchased. As for a real unlock, your application receives it only when its access also covers read:revenue. Every recorded event carries data.sandbox: true and goes to this creator’s agency only. See the event catalogue.
Nothing is ever written to an order, payment, ledger, billing, payout or entitlement record, and no platform event is emitted.
Idempotency
Send an Idempotency-Key so that a retry records nothing twice: the retry returns 200 with the first outcome instead of 201.
Errors
403 SANDBOX_APPLICATION_REQUIRED— a live application called the simulator for a real creator.403 ENVIRONMENT_MISMATCH— a live application called the simulator for a sandbox creator.404 SANDBOX_CREATOR_NOT_FOUND— the creator is not a current sandbox creator of your agency.404 MESSAGE_NOT_FOUND—messageIdis not a message in this sandbox creator’s conversations.409 MESSAGE_NOT_LOCKED—messageIdis not a locked message the creator sent.
Required scopes: read:messages.
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.
read:messagesPath 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.
Request
ppv-unlock only.
message only.
Response
A retry with the same Idempotency-Key: the first outcome, with nothing recorded again.
The platform events a REAL action of this kind emits, resolved by the same resolver — never emitted here.
The events that were recorded, in order. In the feed, each also carries data.sandbox = true.
