Skip to navigation

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 — messageId is not a message in this sandbox creator’s conversations.
  • 409 MESSAGE_NOT_LOCKED — messageId is not a locked message the creator sent.

Required scopes: read:messages.

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:read:messages

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.

Idempotency-KeystringOptional1-128 characters
Optional. Up to 128 printable characters. A retry with the same key returns the first outcome and records nothing again.

Request

This endpoint expects an object.
conversationIdstringOptional1-64 characters
messageIdstringOptional1-64 characters

ppv-unlock only.

textstringOptional1-1000 characters

message only.

Response

A retry with the same Idempotency-Key: the first outcome, with nothing recorded again.

sandboxtrue
kindenum
Allowed values:
sourceEventslist of strings

The platform events a REAL action of this kind emits, resolved by the same resolver — never emitted here.

eventslist of objects

The events that were recorded, in order. In the feed, each also carries data.sandbox = true.

conversationIdstring or null
messageIdstring or null

Errors

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