Skip to content
Navigation

createStripeEvent

Stripe sends the stage's billing events here, signed with the stage's webhook secret. An event already applied is answered without being applied again.

POST
/billing/stripe/events

Request body JSON required

Returns

204

<No Content>

400

InvalidStripeSignature | InvalidRequest
JSON

One of the following:

  • InvalidStripeSignatureEncoded
    • _tag
      InvalidStripeSignature
      required
  • InvalidRequestEncoded
    • _tag
      InvalidRequest
      required
    • part
      path
      or
      query
      or
      headers
      or
      body
      required
    • issues
      array of
      object
      required
      • path
        array of
        required

        One of the following:

        • string
        • integer
      • message
        string
        required

413

RequestBodyTooLarge
JSON
  • _tag
    RequestBodyTooLarge
    required
  • max_bytes
    integer
    required
    maximum: 9007199254740991 · minimum: -9007199254740991

429

RateLimited
JSON
  • _tag
    RateLimited
    required

500

ControlPlaneFailure | OrgFailure
JSON

One of the following:

  • ControlPlaneFailureEncoded
    • _tag
      ControlPlaneFailure
      required
    • reason
      string
      required
  • OrgFailureEncoded
    • _tag
      OrgFailure
      required
    • reason
      string
      required

502

StripeFailure
JSON
  • _tag
    StripeFailure
    required
  • reason
    string
    required

503

BillingNotConfigured | RateLimitUnavailable
JSON

One of the following:

  • BillingNotConfiguredEncoded
    • _tag
      BillingNotConfigured
      required
  • RateLimitUnavailableEncoded
    • _tag
      RateLimitUnavailable
      required

Type to search…

↑↓ navigate↵ selectEsc close