@inklok/api-spec 7.9.0 → 7.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/openapi.yaml +174 -1
- package/package.json +1 -1
package/openapi.yaml
CHANGED
|
@@ -8,7 +8,7 @@ info:
|
|
|
8
8
|
Authenticate using an API key or bearer token, then use the resources below to manage
|
|
9
9
|
templates, agreements, documents, and signing. For your first integration, start with
|
|
10
10
|
the Quick Start guide.
|
|
11
|
-
version: "7.9.
|
|
11
|
+
version: "7.9.1"
|
|
12
12
|
contact:
|
|
13
13
|
name: Inklok API Support
|
|
14
14
|
email: support@inklok.com
|
|
@@ -766,6 +766,54 @@ paths:
|
|
|
766
766
|
'500':
|
|
767
767
|
$ref: '#/components/responses/InternalServerError'
|
|
768
768
|
|
|
769
|
+
/platform/billing-activity:
|
|
770
|
+
get:
|
|
771
|
+
operationId: getPlatformBillingActivity
|
|
772
|
+
summary: Get Platform billing activity
|
|
773
|
+
x-visibility: internal
|
|
774
|
+
description: |
|
|
775
|
+
Returns normalized billing activity for one account, newest first.
|
|
776
|
+
Requires an authorized platform administrator.
|
|
777
|
+
Raw Paddle webhook payloads and payment details are not returned.
|
|
778
|
+
x-required-global-roles: [PLATFORM_ADMIN]
|
|
779
|
+
tags:
|
|
780
|
+
- Platform
|
|
781
|
+
parameters:
|
|
782
|
+
- in: query
|
|
783
|
+
name: accountId
|
|
784
|
+
required: true
|
|
785
|
+
schema:
|
|
786
|
+
type: string
|
|
787
|
+
description: Billing account ID to inspect.
|
|
788
|
+
- in: query
|
|
789
|
+
name: limit
|
|
790
|
+
schema:
|
|
791
|
+
type: integer
|
|
792
|
+
minimum: 1
|
|
793
|
+
maximum: 100
|
|
794
|
+
default: 25
|
|
795
|
+
description: Maximum number of activity rows to return.
|
|
796
|
+
- in: query
|
|
797
|
+
name: cursor
|
|
798
|
+
schema:
|
|
799
|
+
type: string
|
|
800
|
+
description: Opaque pagination cursor returned by the previous response.
|
|
801
|
+
responses:
|
|
802
|
+
'200':
|
|
803
|
+
description: Successfully retrieved Platform billing activity
|
|
804
|
+
content:
|
|
805
|
+
application/json:
|
|
806
|
+
schema:
|
|
807
|
+
$ref: '#/components/schemas/PlatformBillingActivityResponse'
|
|
808
|
+
'400':
|
|
809
|
+
$ref: '#/components/responses/BadRequest'
|
|
810
|
+
'401':
|
|
811
|
+
$ref: '#/components/responses/Unauthorized'
|
|
812
|
+
'403':
|
|
813
|
+
$ref: '#/components/responses/Forbidden'
|
|
814
|
+
'500':
|
|
815
|
+
$ref: '#/components/responses/InternalServerError'
|
|
816
|
+
|
|
769
817
|
/platform/ses:
|
|
770
818
|
get:
|
|
771
819
|
operationId: getPlatformSes
|
|
@@ -4911,6 +4959,131 @@ components:
|
|
|
4911
4959
|
enum:
|
|
4912
4960
|
- peak_minute
|
|
4913
4961
|
- daily_capacity
|
|
4962
|
+
generatedAt:
|
|
4963
|
+
type: string
|
|
4964
|
+
format: date-time
|
|
4965
|
+
|
|
4966
|
+
PlatformBillingActivityType:
|
|
4967
|
+
type: string
|
|
4968
|
+
enum:
|
|
4969
|
+
- plan_changed
|
|
4970
|
+
- subscription_status_changed
|
|
4971
|
+
- seats_changed
|
|
4972
|
+
- billing_reconciled
|
|
4973
|
+
- seat_change_failed
|
|
4974
|
+
|
|
4975
|
+
PlatformBillingActivitySource:
|
|
4976
|
+
type: string
|
|
4977
|
+
enum:
|
|
4978
|
+
- paddle_webhook
|
|
4979
|
+
- me_billing
|
|
4980
|
+
- billing_reconciliation
|
|
4981
|
+
|
|
4982
|
+
PlatformBillingActivityItem:
|
|
4983
|
+
type: object
|
|
4984
|
+
required:
|
|
4985
|
+
- accountId
|
|
4986
|
+
- activityId
|
|
4987
|
+
- activityKey
|
|
4988
|
+
- activityType
|
|
4989
|
+
- occurredAt
|
|
4990
|
+
- source
|
|
4991
|
+
- createdAt
|
|
4992
|
+
properties:
|
|
4993
|
+
accountId:
|
|
4994
|
+
type: string
|
|
4995
|
+
activityId:
|
|
4996
|
+
type: string
|
|
4997
|
+
activityKey:
|
|
4998
|
+
type: string
|
|
4999
|
+
activityType:
|
|
5000
|
+
$ref: '#/components/schemas/PlatformBillingActivityType'
|
|
5001
|
+
occurredAt:
|
|
5002
|
+
type: string
|
|
5003
|
+
format: date-time
|
|
5004
|
+
source:
|
|
5005
|
+
$ref: '#/components/schemas/PlatformBillingActivitySource'
|
|
5006
|
+
actorUserId:
|
|
5007
|
+
type: string
|
|
5008
|
+
nullable: true
|
|
5009
|
+
requestId:
|
|
5010
|
+
type: string
|
|
5011
|
+
nullable: true
|
|
5012
|
+
paddleEventId:
|
|
5013
|
+
type: string
|
|
5014
|
+
nullable: true
|
|
5015
|
+
paddleSubscriptionId:
|
|
5016
|
+
type: string
|
|
5017
|
+
nullable: true
|
|
5018
|
+
oldPlan:
|
|
5019
|
+
nullable: true
|
|
5020
|
+
allOf:
|
|
5021
|
+
- $ref: '#/components/schemas/Plan'
|
|
5022
|
+
newPlan:
|
|
5023
|
+
nullable: true
|
|
5024
|
+
allOf:
|
|
5025
|
+
- $ref: '#/components/schemas/Plan'
|
|
5026
|
+
oldSubscriptionStatus:
|
|
5027
|
+
type: string
|
|
5028
|
+
nullable: true
|
|
5029
|
+
newSubscriptionStatus:
|
|
5030
|
+
type: string
|
|
5031
|
+
nullable: true
|
|
5032
|
+
oldAdditionalSeats:
|
|
5033
|
+
type: integer
|
|
5034
|
+
nullable: true
|
|
5035
|
+
minimum: 0
|
|
5036
|
+
newAdditionalSeats:
|
|
5037
|
+
type: integer
|
|
5038
|
+
nullable: true
|
|
5039
|
+
minimum: 0
|
|
5040
|
+
oldEffectiveSeatLimit:
|
|
5041
|
+
type: integer
|
|
5042
|
+
nullable: true
|
|
5043
|
+
minimum: 0
|
|
5044
|
+
newEffectiveSeatLimit:
|
|
5045
|
+
type: integer
|
|
5046
|
+
nullable: true
|
|
5047
|
+
minimum: 0
|
|
5048
|
+
attemptedAdditionalSeats:
|
|
5049
|
+
type: integer
|
|
5050
|
+
nullable: true
|
|
5051
|
+
minimum: 0
|
|
5052
|
+
attemptedEffectiveSeatLimit:
|
|
5053
|
+
type: integer
|
|
5054
|
+
nullable: true
|
|
5055
|
+
minimum: 0
|
|
5056
|
+
errorCode:
|
|
5057
|
+
type: string
|
|
5058
|
+
nullable: true
|
|
5059
|
+
errorCategory:
|
|
5060
|
+
type: string
|
|
5061
|
+
nullable: true
|
|
5062
|
+
createdAt:
|
|
5063
|
+
type: string
|
|
5064
|
+
format: date-time
|
|
5065
|
+
|
|
5066
|
+
PlatformBillingActivityResponse:
|
|
5067
|
+
type: object
|
|
5068
|
+
required:
|
|
5069
|
+
- accountId
|
|
5070
|
+
- items
|
|
5071
|
+
- count
|
|
5072
|
+
- nextCursor
|
|
5073
|
+
- generatedAt
|
|
5074
|
+
properties:
|
|
5075
|
+
accountId:
|
|
5076
|
+
type: string
|
|
5077
|
+
items:
|
|
5078
|
+
type: array
|
|
5079
|
+
items:
|
|
5080
|
+
$ref: '#/components/schemas/PlatformBillingActivityItem'
|
|
5081
|
+
count:
|
|
5082
|
+
type: integer
|
|
5083
|
+
minimum: 0
|
|
5084
|
+
nextCursor:
|
|
5085
|
+
type: string
|
|
5086
|
+
nullable: true
|
|
4914
5087
|
generatedAt:
|
|
4915
5088
|
type: string
|
|
4916
5089
|
format: date-time
|