Create Embed Session
POST
/embed_sessionsAuthorization
bearerAuth AuthorizationBearer <token>
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X POST "https://example.com/embed_sessions" \ -H "Content-Type: application/json" \ -d '{ "audience": "customer_billing", "subject": { "type": "customer", "id": "string" }, "allowed_origins": [ "string" ] }'{ "id": "string", "object": "embed_session", "audience": "customer_billing", "subject": { "type": "customer", "id": "string" }, "product": "string", "allowed_origins": [ "string" ], "expires_at": "2019-08-24T14:15:22Z", "idle_expires_at": "2019-08-24T14:15:22Z", "livemode": true, "token": "string"}Create Custom Role POST
Previous Page
Revoke access to a purchase with nothing further to bill POST
Records one revocation for the entitlement; recomputation then ends it with reason revoked. Refused 409 already_ended on an ended entitlement or one already revoked, and 409 cancel_instead on anything still billing (cancel the subscription or line instead). A reason is required (400). Agents are refused (agent_revoke_not_available). Staff mode is not served: a request carrying Hms-Staff-Session is refused 400 staff_session_not_allowed, as on every member route.