@ampeco/public-api-mcp 3.245.3 → 3.247.0
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/dist/generated/build-stats.json +6 -6
- package/dist/generated/endpoints.json +322 -59
- package/dist/generated/response-schemas.json +433 -120
- package/dist/generated/schemas.d.ts +216 -12
- package/dist/generated/schemas.d.ts.map +1 -1
- package/dist/generated/schemas.js +51 -7
- package/dist/generated/schemas.js.map +1 -1
- package/dist/generated/schemas.ts +51 -7
- package/package.json +1 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"totalEndpoints": 640,
|
|
3
|
-
"originalSize":
|
|
4
|
-
"optimizedSize":
|
|
5
|
-
"reductionPercent": 72.
|
|
6
|
-
"buildDuration":
|
|
3
|
+
"originalSize": 5828593,
|
|
4
|
+
"optimizedSize": 1631472,
|
|
5
|
+
"reductionPercent": 72.01,
|
|
6
|
+
"buildDuration": 1591,
|
|
7
7
|
"responseSchemas": {
|
|
8
8
|
"total": 640,
|
|
9
9
|
"withSchemas": 640,
|
|
10
|
-
"totalSchemaSize":
|
|
11
|
-
"averageSchemaSize":
|
|
10
|
+
"totalSchemaSize": 3317461,
|
|
11
|
+
"averageSchemaSize": 5184
|
|
12
12
|
}
|
|
13
13
|
}
|
|
@@ -48645,9 +48645,10 @@
|
|
|
48645
48645
|
"type": "string",
|
|
48646
48646
|
"enum": [
|
|
48647
48647
|
"policy",
|
|
48648
|
-
"charge_point"
|
|
48648
|
+
"charge_point",
|
|
48649
|
+
"integration"
|
|
48649
48650
|
],
|
|
48650
|
-
"description": "Origin of the per-kWh rate used to reimburse a home-charging session: - **policy**: The electricity rate linked to the policy provides the rate. `electricityRateId` is required and must belong to the same operator as the policy. - **charge_point**: The electricity rate assigned to the personal charge point provides the rate, whichever surface assigned it. `electricityRateId` must not be set on the policy."
|
|
48651
|
+
"description": "Origin of the per-kWh rate used to reimburse a home-charging session: - **policy**: The electricity rate linked to the policy provides the rate. `electricityRateId` is required and must belong to the same operator as the policy. - **charge_point**: The electricity rate assigned to the personal charge point provides the rate, whichever surface assigned it. `electricityRateId` must not be set on the policy. - **integration**: An integration resolves the electricity rate — for example by the charge point's region. The integration and its region-to-rate bindings are configured in the admin panel. `electricityRateId` is not set on the policy."
|
|
48651
48652
|
}
|
|
48652
48653
|
}
|
|
48653
48654
|
}
|
|
@@ -48695,14 +48696,6 @@
|
|
|
48695
48696
|
"type": "string",
|
|
48696
48697
|
"maxLength": 255
|
|
48697
48698
|
},
|
|
48698
|
-
"electricityRateSource": {
|
|
48699
|
-
"type": "string",
|
|
48700
|
-
"enum": [
|
|
48701
|
-
"policy",
|
|
48702
|
-
"charge_point"
|
|
48703
|
-
],
|
|
48704
|
-
"description": "Origin of the per-kWh rate used to reimburse a home-charging session: - **policy**: The electricity rate linked to the policy provides the rate. `electricityRateId` is required and must belong to the same operator as the policy. - **charge_point**: The electricity rate assigned to the personal charge point provides the rate, whichever surface assigned it. `electricityRateId` must not be set on the policy."
|
|
48705
|
-
},
|
|
48706
48699
|
"validityStartsOn": {
|
|
48707
48700
|
"type": "string",
|
|
48708
48701
|
"format": "date",
|
|
@@ -48725,6 +48718,14 @@
|
|
|
48725
48718
|
"format": "date",
|
|
48726
48719
|
"description": "Uses the YYYY-MM-DD date format."
|
|
48727
48720
|
},
|
|
48721
|
+
"electricityRateSource": {
|
|
48722
|
+
"type": "string",
|
|
48723
|
+
"enum": [
|
|
48724
|
+
"policy",
|
|
48725
|
+
"charge_point"
|
|
48726
|
+
],
|
|
48727
|
+
"description": "Origin of the per-kWh rate used to reimburse a home-charging session: - **policy**: The electricity rate linked to the policy provides the rate. `electricityRateId` is required and must belong to the same operator as the policy. - **charge_point**: The electricity rate assigned to the personal charge point provides the rate, whichever surface assigned it. `electricityRateId` must not be set on the policy. The `integration` source is not writable through this API: it cannot be submitted on create or update. Policies using it are configured in the admin panel."
|
|
48728
|
+
},
|
|
48728
48729
|
"operatorId": {
|
|
48729
48730
|
"type": "integer",
|
|
48730
48731
|
"example": 1,
|
|
@@ -48791,7 +48792,7 @@
|
|
|
48791
48792
|
"method": "DELETE",
|
|
48792
48793
|
"operationId": "reimbursementPolicyDelete",
|
|
48793
48794
|
"summary": "Reimbursement policy / Delete",
|
|
48794
|
-
"description": "⚠️ Experimental endpoint — not yet a stable contract. This resource ships as experimental / beta. While experimental, its schema and behaviour may change without a version bump — including breaking changes within v1.0 itself. Anyone consuming it does so for evaluation only, or by coordinating adoption with their account manager so changes can be sequenced with them. It graduates to a stable, version-locked contract (where the normal breaking-change rules apply) only when this experimental notice is removed. Delete a reimbursement policy. Deletion is rejected while the policy is attached to partner invites.",
|
|
48795
|
+
"description": "⚠️ Experimental endpoint — not yet a stable contract. This resource ships as experimental / beta. While experimental, its schema and behaviour may change without a version bump — including breaking changes within v1.0 itself. Anyone consuming it does so for evaluation only, or by coordinating adoption with their account manager so changes can be sequenced with them. It graduates to a stable, version-locked contract (where the normal breaking-change rules apply) only when this experimental notice is removed. Delete a reimbursement policy. Deletion is rejected only while the policy is attached to partner invites. A policy is deletable whatever its `electricityRateSource` is, `integration` included; the restrictions on submitting `electricityRateSource` are described on the create and update operations and do not apply here.",
|
|
48795
48796
|
"tags": [
|
|
48796
48797
|
"resource / reimbursement policies"
|
|
48797
48798
|
],
|
|
@@ -48824,7 +48825,7 @@
|
|
|
48824
48825
|
"method": "PATCH",
|
|
48825
48826
|
"operationId": "reimbursementPolicyUpdate",
|
|
48826
48827
|
"summary": "Reimbursement policy / Update",
|
|
48827
|
-
"description": "⚠️ Experimental endpoint — not yet a stable contract. This resource ships as experimental / beta. While experimental, its schema and behaviour may change without a version bump — including breaking changes within v1.0 itself. Anyone consuming it does so for evaluation only, or by coordinating adoption with their account manager so changes can be sequenced with them. It graduates to a stable, version-locked contract (where the normal breaking-change rules apply) only when this experimental notice is removed. Update a reimbursement policy. The update is rejected with 409 while the requested change conflicts with the rate the policy resolves — selecting the `charge_point` rate source while an attached charge point has no electricity rate. That conflict clears only when the configuration changes: give the charge point a rate, or detach it from the policy. Every other rejection of the request body is reported as 422, keyed by the offending field — malformed or invalid field values, and changing `partnerId` on a policy that is already assigned to partner invites or has active charge point attachments, which returns a `partnerId` validation error rather than a 409. Deactivated attachments do not block the change.",
|
|
48828
|
+
"description": "⚠️ Experimental endpoint — not yet a stable contract. This resource ships as experimental / beta. While experimental, its schema and behaviour may change without a version bump — including breaking changes within v1.0 itself. Anyone consuming it does so for evaluation only, or by coordinating adoption with their account manager so changes can be sequenced with them. It graduates to a stable, version-locked contract (where the normal breaking-change rules apply) only when this experimental notice is removed. Update a reimbursement policy. The update is rejected with 409 while the requested change conflicts with the rate the policy resolves — selecting the `charge_point` rate source while an attached charge point has no electricity rate. That conflict clears only when the configuration changes: give the charge point a rate, or detach it from the policy. A policy whose stored `electricityRateSource` is `integration` is updated through this API like any other policy, except that its rate source cannot be changed: a request that submits `electricityRateSource` on such a policy is rejected with 409, because the integration that resolves its rate is configured in the admin panel and the binding could not be restored through this API. Omit `electricityRateSource` to update `name`, the validity dates or the partner scope. Every other rejection of the request body is reported as 422, keyed by the offending field — malformed or invalid field values, and changing `partnerId` on a policy that is already assigned to partner invites or has active charge point attachments, which returns a `partnerId` validation error rather than a 409. Deactivated attachments do not block the change.",
|
|
48828
48829
|
"tags": [
|
|
48829
48830
|
"resource / reimbursement policies"
|
|
48830
48831
|
],
|
|
@@ -48839,18 +48840,18 @@
|
|
|
48839
48840
|
"type": "string",
|
|
48840
48841
|
"maxLength": 255
|
|
48841
48842
|
},
|
|
48843
|
+
"validityStartsOn": {
|
|
48844
|
+
"type": "string",
|
|
48845
|
+
"format": "date",
|
|
48846
|
+
"description": "Uses the YYYY-MM-DD date format."
|
|
48847
|
+
},
|
|
48842
48848
|
"electricityRateSource": {
|
|
48843
48849
|
"type": "string",
|
|
48844
48850
|
"enum": [
|
|
48845
48851
|
"policy",
|
|
48846
48852
|
"charge_point"
|
|
48847
48853
|
],
|
|
48848
|
-
"description": "Origin of the per-kWh rate used to reimburse a home-charging session: - **policy**: The electricity rate linked to the policy provides the rate. `electricityRateId` is required and must belong to the same operator as the policy. - **charge_point**: The electricity rate assigned to the personal charge point provides the rate, whichever surface assigned it. `electricityRateId` must not be set on the policy."
|
|
48849
|
-
},
|
|
48850
|
-
"validityStartsOn": {
|
|
48851
|
-
"type": "string",
|
|
48852
|
-
"format": "date",
|
|
48853
|
-
"description": "Uses the YYYY-MM-DD date format."
|
|
48854
|
+
"description": "Origin of the per-kWh rate used to reimburse a home-charging session: - **policy**: The electricity rate linked to the policy provides the rate. `electricityRateId` is required and must belong to the same operator as the policy. - **charge_point**: The electricity rate assigned to the personal charge point provides the rate, whichever surface assigned it. `electricityRateId` must not be set on the policy. The `integration` source is not writable through this API: it cannot be submitted on create or update. Policies using it are configured in the admin panel."
|
|
48854
48855
|
},
|
|
48855
48856
|
"partnerId": {
|
|
48856
48857
|
"type": "integer",
|
|
@@ -52495,7 +52496,7 @@
|
|
|
52495
52496
|
"method": "GET",
|
|
52496
52497
|
"operationId": "subOperatorsListing",
|
|
52497
52498
|
"summary": "Sub-operators / Listing",
|
|
52498
|
-
"description": "Get all sub-operators. Returns sub-operators ordered by
|
|
52499
|
+
"description": "Get all sub-operators. Returns sub-operators ordered by their English (en) name ascending. The order is fixed and cannot be changed. Uses cursor-based pagination.",
|
|
52499
52500
|
"tags": [
|
|
52500
52501
|
"resource / sub operators"
|
|
52501
52502
|
],
|
|
@@ -52555,7 +52556,7 @@
|
|
|
52555
52556
|
},
|
|
52556
52557
|
"name": {
|
|
52557
52558
|
"type": "string",
|
|
52558
|
-
"description": "Filter by sub-operator name (partial match)"
|
|
52559
|
+
"description": "Filter by sub-operator name (partial match against the English (en) name only)"
|
|
52559
52560
|
},
|
|
52560
52561
|
"businessName": {
|
|
52561
52562
|
"type": "string",
|
|
@@ -52563,7 +52564,7 @@
|
|
|
52563
52564
|
},
|
|
52564
52565
|
"region": {
|
|
52565
52566
|
"type": "string",
|
|
52566
|
-
"description": "Filter by region for countries without predefined states (partial match)"
|
|
52567
|
+
"description": "Filter by region for countries without predefined states (partial match against the English (en) region only)"
|
|
52567
52568
|
},
|
|
52568
52569
|
"lastUpdatedAfter": {
|
|
52569
52570
|
"type": "string",
|
|
@@ -52615,11 +52616,6 @@
|
|
|
52615
52616
|
"schema": {
|
|
52616
52617
|
"type": "object",
|
|
52617
52618
|
"properties": {
|
|
52618
|
-
"name": {
|
|
52619
|
-
"type": "string",
|
|
52620
|
-
"maxLength": 255,
|
|
52621
|
-
"description": "Display name of the sub-operator"
|
|
52622
|
-
},
|
|
52623
52619
|
"businessName": {
|
|
52624
52620
|
"type": "string",
|
|
52625
52621
|
"maxLength": 255,
|
|
@@ -52896,11 +52892,6 @@
|
|
|
52896
52892
|
],
|
|
52897
52893
|
"description": "ISO 3166-1 alpha-2 country code"
|
|
52898
52894
|
},
|
|
52899
|
-
"city": {
|
|
52900
|
-
"type": "string",
|
|
52901
|
-
"maxLength": 255,
|
|
52902
|
-
"description": "City name"
|
|
52903
|
-
},
|
|
52904
52895
|
"state": {
|
|
52905
52896
|
"anyOf": [
|
|
52906
52897
|
{
|
|
@@ -53074,21 +53065,11 @@
|
|
|
53074
53065
|
],
|
|
53075
53066
|
"description": "When the selected country is one of US, AU, CA, UM or RO"
|
|
53076
53067
|
},
|
|
53077
|
-
"region": {
|
|
53078
|
-
"type": "string",
|
|
53079
|
-
"nullable": true,
|
|
53080
|
-
"description": "When country is not in US, AU, CA, UM or RO, you can provide the region"
|
|
53081
|
-
},
|
|
53082
53068
|
"postcode": {
|
|
53083
53069
|
"type": "string",
|
|
53084
53070
|
"maxLength": 255,
|
|
53085
53071
|
"description": "Postal/ZIP code"
|
|
53086
53072
|
},
|
|
53087
|
-
"address": {
|
|
53088
|
-
"type": "string",
|
|
53089
|
-
"maxLength": 255,
|
|
53090
|
-
"description": "Street address"
|
|
53091
|
-
},
|
|
53092
53073
|
"contactPerson": {
|
|
53093
53074
|
"type": "string",
|
|
53094
53075
|
"maxLength": 255,
|
|
@@ -53145,12 +53126,117 @@
|
|
|
53145
53126
|
"type": "integer"
|
|
53146
53127
|
},
|
|
53147
53128
|
"description": "List of associated partner IDs"
|
|
53129
|
+
},
|
|
53130
|
+
"translatedName": {
|
|
53131
|
+
"type": "array",
|
|
53132
|
+
"items": {
|
|
53133
|
+
"type": "object",
|
|
53134
|
+
"properties": {
|
|
53135
|
+
"locale": {
|
|
53136
|
+
"type": "string",
|
|
53137
|
+
"description": "valid locale configured for the tenant"
|
|
53138
|
+
},
|
|
53139
|
+
"translation": {
|
|
53140
|
+
"type": "string",
|
|
53141
|
+
"maxLength": 255
|
|
53142
|
+
}
|
|
53143
|
+
},
|
|
53144
|
+
"required": [
|
|
53145
|
+
"locale",
|
|
53146
|
+
"translation"
|
|
53147
|
+
]
|
|
53148
|
+
},
|
|
53149
|
+
"minItems": 1,
|
|
53150
|
+
"description": "Display name of the sub-operator per locale. Whenever this field is submitted — on both create and update — the array must contain an `en` entry. Only locales configured for the tenant are accepted. Submitting this field replaces the whole locale set for the name: locales absent from the array are cleared. Omit the field to leave every existing locale untouched. An empty array is rejected on both create and update — the name cannot be cleared. Cannot be provided together with the deprecated `name`."
|
|
53151
|
+
},
|
|
53152
|
+
"translatedAddress": {
|
|
53153
|
+
"type": "array",
|
|
53154
|
+
"items": {
|
|
53155
|
+
"type": "object",
|
|
53156
|
+
"properties": {
|
|
53157
|
+
"locale": {
|
|
53158
|
+
"type": "string",
|
|
53159
|
+
"description": "valid locale configured for the tenant"
|
|
53160
|
+
},
|
|
53161
|
+
"translation": {
|
|
53162
|
+
"type": "string",
|
|
53163
|
+
"maxLength": 255
|
|
53164
|
+
}
|
|
53165
|
+
},
|
|
53166
|
+
"required": [
|
|
53167
|
+
"locale",
|
|
53168
|
+
"translation"
|
|
53169
|
+
]
|
|
53170
|
+
},
|
|
53171
|
+
"description": "Street address of the sub-operator per locale. Only locales configured for the tenant are accepted. Submitting this field replaces the whole locale set for the address: locales absent from the array are cleared. Omit the field to leave every existing locale untouched; submit an empty array to clear them all. Cannot be provided together with the deprecated `address`."
|
|
53172
|
+
},
|
|
53173
|
+
"translatedCity": {
|
|
53174
|
+
"type": "array",
|
|
53175
|
+
"items": {
|
|
53176
|
+
"type": "object",
|
|
53177
|
+
"properties": {
|
|
53178
|
+
"locale": {
|
|
53179
|
+
"type": "string",
|
|
53180
|
+
"description": "valid locale configured for the tenant"
|
|
53181
|
+
},
|
|
53182
|
+
"translation": {
|
|
53183
|
+
"type": "string",
|
|
53184
|
+
"maxLength": 255
|
|
53185
|
+
}
|
|
53186
|
+
},
|
|
53187
|
+
"required": [
|
|
53188
|
+
"locale",
|
|
53189
|
+
"translation"
|
|
53190
|
+
]
|
|
53191
|
+
},
|
|
53192
|
+
"description": "City of the sub-operator per locale. Only locales configured for the tenant are accepted. Submitting this field replaces the whole locale set for the city: locales absent from the array are cleared. Omit the field to leave every existing locale untouched; submit an empty array to clear them all. Cannot be provided together with the deprecated `city`."
|
|
53193
|
+
},
|
|
53194
|
+
"translatedRegion": {
|
|
53195
|
+
"type": "array",
|
|
53196
|
+
"items": {
|
|
53197
|
+
"type": "object",
|
|
53198
|
+
"properties": {
|
|
53199
|
+
"locale": {
|
|
53200
|
+
"type": "string",
|
|
53201
|
+
"description": "valid locale configured for the tenant"
|
|
53202
|
+
},
|
|
53203
|
+
"translation": {
|
|
53204
|
+
"type": "string",
|
|
53205
|
+
"maxLength": 255
|
|
53206
|
+
}
|
|
53207
|
+
},
|
|
53208
|
+
"required": [
|
|
53209
|
+
"locale",
|
|
53210
|
+
"translation"
|
|
53211
|
+
]
|
|
53212
|
+
},
|
|
53213
|
+
"description": "Region of the sub-operator per locale. Only locales configured for the tenant are accepted. Submitting this field replaces the whole locale set for the region: locales absent from the array are cleared. Omit the field to leave every existing locale untouched; submit an empty array to clear them all. Rejected when the sub-operator's country supports states (US, CA, AU, UM, RO) — `state` applies instead and is not translatable. Cannot be provided together with the deprecated `region`."
|
|
53214
|
+
},
|
|
53215
|
+
"name": {
|
|
53216
|
+
"type": "string",
|
|
53217
|
+
"maxLength": 255,
|
|
53218
|
+
"description": "**This property is deprecated. Use `translatedName` instead.** The value is written to the English (`en`) locale only. Cannot be provided together with `translatedName`. Display name of the sub-operator."
|
|
53219
|
+
},
|
|
53220
|
+
"city": {
|
|
53221
|
+
"type": "string",
|
|
53222
|
+
"maxLength": 255,
|
|
53223
|
+
"description": "**This property is deprecated. Use `translatedCity` instead.** The value is written to the English (`en`) locale only. Cannot be provided together with `translatedCity`. City name"
|
|
53224
|
+
},
|
|
53225
|
+
"region": {
|
|
53226
|
+
"type": "string",
|
|
53227
|
+
"nullable": true,
|
|
53228
|
+
"description": "When country is not in US, AU, CA, UM or RO, you can provide the region"
|
|
53229
|
+
},
|
|
53230
|
+
"address": {
|
|
53231
|
+
"type": "string",
|
|
53232
|
+
"maxLength": 255,
|
|
53233
|
+
"description": "**This property is deprecated. Use `translatedAddress` instead.** The value is written to the English (`en`) locale only. Cannot be provided together with `translatedAddress`. Street address"
|
|
53148
53234
|
}
|
|
53149
53235
|
},
|
|
53150
53236
|
"required": [
|
|
53151
|
-
"name",
|
|
53152
53237
|
"businessName"
|
|
53153
|
-
]
|
|
53238
|
+
],
|
|
53239
|
+
"description": "At least one of `name` or `translatedName` must be provided. Supplying both is rejected with a `422` response. When `translatedName` is used it must carry an `en` entry. A deprecated field and its `translated` sibling are mutually exclusive: `name`/`translatedName`, `address`/`translatedAddress`, `city`/`translatedCity` and `region`/`translatedRegion` may each be sent one at a time, never both."
|
|
53154
53240
|
}
|
|
53155
53241
|
}
|
|
53156
53242
|
}
|
|
@@ -53258,10 +53344,95 @@
|
|
|
53258
53344
|
"schema": {
|
|
53259
53345
|
"type": "object",
|
|
53260
53346
|
"properties": {
|
|
53347
|
+
"translatedName": {
|
|
53348
|
+
"type": "array",
|
|
53349
|
+
"items": {
|
|
53350
|
+
"type": "object",
|
|
53351
|
+
"properties": {
|
|
53352
|
+
"locale": {
|
|
53353
|
+
"type": "string",
|
|
53354
|
+
"description": "valid locale configured for the tenant"
|
|
53355
|
+
},
|
|
53356
|
+
"translation": {
|
|
53357
|
+
"type": "string",
|
|
53358
|
+
"maxLength": 255
|
|
53359
|
+
}
|
|
53360
|
+
},
|
|
53361
|
+
"required": [
|
|
53362
|
+
"locale",
|
|
53363
|
+
"translation"
|
|
53364
|
+
]
|
|
53365
|
+
},
|
|
53366
|
+
"minItems": 1,
|
|
53367
|
+
"description": "Display name of the sub-operator per locale. Whenever this field is submitted — on both create and update — the array must contain an `en` entry. Only locales configured for the tenant are accepted. Submitting this field replaces the whole locale set for the name: locales absent from the array are cleared. Omit the field to leave every existing locale untouched. An empty array is rejected on both create and update — the name cannot be cleared. Cannot be provided together with the deprecated `name`."
|
|
53368
|
+
},
|
|
53369
|
+
"translatedAddress": {
|
|
53370
|
+
"type": "array",
|
|
53371
|
+
"items": {
|
|
53372
|
+
"type": "object",
|
|
53373
|
+
"properties": {
|
|
53374
|
+
"locale": {
|
|
53375
|
+
"type": "string",
|
|
53376
|
+
"description": "valid locale configured for the tenant"
|
|
53377
|
+
},
|
|
53378
|
+
"translation": {
|
|
53379
|
+
"type": "string",
|
|
53380
|
+
"maxLength": 255
|
|
53381
|
+
}
|
|
53382
|
+
},
|
|
53383
|
+
"required": [
|
|
53384
|
+
"locale",
|
|
53385
|
+
"translation"
|
|
53386
|
+
]
|
|
53387
|
+
},
|
|
53388
|
+
"description": "Street address of the sub-operator per locale. Only locales configured for the tenant are accepted. Submitting this field replaces the whole locale set for the address: locales absent from the array are cleared. Omit the field to leave every existing locale untouched; submit an empty array to clear them all. Cannot be provided together with the deprecated `address`."
|
|
53389
|
+
},
|
|
53390
|
+
"translatedCity": {
|
|
53391
|
+
"type": "array",
|
|
53392
|
+
"items": {
|
|
53393
|
+
"type": "object",
|
|
53394
|
+
"properties": {
|
|
53395
|
+
"locale": {
|
|
53396
|
+
"type": "string",
|
|
53397
|
+
"description": "valid locale configured for the tenant"
|
|
53398
|
+
},
|
|
53399
|
+
"translation": {
|
|
53400
|
+
"type": "string",
|
|
53401
|
+
"maxLength": 255
|
|
53402
|
+
}
|
|
53403
|
+
},
|
|
53404
|
+
"required": [
|
|
53405
|
+
"locale",
|
|
53406
|
+
"translation"
|
|
53407
|
+
]
|
|
53408
|
+
},
|
|
53409
|
+
"description": "City of the sub-operator per locale. Only locales configured for the tenant are accepted. Submitting this field replaces the whole locale set for the city: locales absent from the array are cleared. Omit the field to leave every existing locale untouched; submit an empty array to clear them all. Cannot be provided together with the deprecated `city`."
|
|
53410
|
+
},
|
|
53411
|
+
"translatedRegion": {
|
|
53412
|
+
"type": "array",
|
|
53413
|
+
"items": {
|
|
53414
|
+
"type": "object",
|
|
53415
|
+
"properties": {
|
|
53416
|
+
"locale": {
|
|
53417
|
+
"type": "string",
|
|
53418
|
+
"description": "valid locale configured for the tenant"
|
|
53419
|
+
},
|
|
53420
|
+
"translation": {
|
|
53421
|
+
"type": "string",
|
|
53422
|
+
"maxLength": 255
|
|
53423
|
+
}
|
|
53424
|
+
},
|
|
53425
|
+
"required": [
|
|
53426
|
+
"locale",
|
|
53427
|
+
"translation"
|
|
53428
|
+
]
|
|
53429
|
+
},
|
|
53430
|
+
"description": "Region of the sub-operator per locale. Only locales configured for the tenant are accepted. Submitting this field replaces the whole locale set for the region: locales absent from the array are cleared. Omit the field to leave every existing locale untouched; submit an empty array to clear them all. Rejected when the sub-operator's country supports states (US, CA, AU, UM, RO) — `state` applies instead and is not translatable. Cannot be provided together with the deprecated `region`."
|
|
53431
|
+
},
|
|
53261
53432
|
"name": {
|
|
53262
53433
|
"type": "string",
|
|
53263
53434
|
"maxLength": 255,
|
|
53264
|
-
"description": "
|
|
53435
|
+
"description": "**This property is deprecated. Use `translatedName` instead.** The value is written to the English (`en`) locale only. Cannot be provided together with `translatedName`. Display name of the sub-operator."
|
|
53265
53436
|
},
|
|
53266
53437
|
"businessName": {
|
|
53267
53438
|
"type": "string",
|
|
@@ -53548,7 +53719,7 @@
|
|
|
53548
53719
|
"type": "string",
|
|
53549
53720
|
"maxLength": 255,
|
|
53550
53721
|
"nullable": true,
|
|
53551
|
-
"description": "City name. Send null to clear."
|
|
53722
|
+
"description": "**This property is deprecated. Use `translatedCity` instead.** The value is written to the English (`en`) locale only. Cannot be provided together with `translatedCity`. City name. Send null to clear the English (`en`) value only — every other locale is left untouched. Use `translatedCity` to clear other locales."
|
|
53552
53723
|
},
|
|
53553
53724
|
"state": {
|
|
53554
53725
|
"anyOf": [
|
|
@@ -53738,7 +53909,7 @@
|
|
|
53738
53909
|
"type": "string",
|
|
53739
53910
|
"maxLength": 255,
|
|
53740
53911
|
"nullable": true,
|
|
53741
|
-
"description": "Street address. Send null to clear."
|
|
53912
|
+
"description": "**This property is deprecated. Use `translatedAddress` instead.** The value is written to the English (`en`) locale only. Cannot be provided together with `translatedAddress`. Street address. Send null to clear the English (`en`) value only — every other locale is left untouched. Use `translatedAddress` to clear other locales."
|
|
53742
53913
|
},
|
|
53743
53914
|
"contactPerson": {
|
|
53744
53915
|
"type": "string",
|
|
@@ -53802,7 +53973,8 @@
|
|
|
53802
53973
|
},
|
|
53803
53974
|
"description": "List of partner IDs to associate. Replaces existing associations."
|
|
53804
53975
|
}
|
|
53805
|
-
}
|
|
53976
|
+
},
|
|
53977
|
+
"description": "A deprecated field and its `translated` sibling are mutually exclusive: `name`/`translatedName`, `address`/`translatedAddress`, `city`/`translatedCity` and `region`/`translatedRegion` may each be sent one at a time, never both. Supplying both is rejected with a `422` response."
|
|
53806
53978
|
}
|
|
53807
53979
|
}
|
|
53808
53980
|
}
|
|
@@ -62823,6 +62995,45 @@
|
|
|
62823
62995
|
"paymentMethod": {
|
|
62824
62996
|
"type": "object",
|
|
62825
62997
|
"properties": {
|
|
62998
|
+
"cardType": {
|
|
62999
|
+
"type": "string",
|
|
63000
|
+
"enum": [
|
|
63001
|
+
"credit",
|
|
63002
|
+
"debit",
|
|
63003
|
+
"prepaid"
|
|
63004
|
+
],
|
|
63005
|
+
"description": "Card category. Allowed values: - `credit` - Credit card. - `debit` - Debit card. - `prepaid` - Prepaid card."
|
|
63006
|
+
},
|
|
63007
|
+
"bin": {
|
|
63008
|
+
"type": "string",
|
|
63009
|
+
"minLength": 1,
|
|
63010
|
+
"maxLength": 255,
|
|
63011
|
+
"description": "Bank identification number recorded for this transaction (first 6-8 digits). A value consisting only of whitespace or invisible characters is rejected."
|
|
63012
|
+
},
|
|
63013
|
+
"fingerprint": {
|
|
63014
|
+
"type": "string",
|
|
63015
|
+
"minLength": 1,
|
|
63016
|
+
"maxLength": 255,
|
|
63017
|
+
"description": "Unique card fingerprint recorded for this transaction for cross-channel and cross-PSP card identification. Carries the Payment Account Reference (PAR) where the PSP provides it. A value consisting only of whitespace or invisible characters is rejected."
|
|
63018
|
+
},
|
|
63019
|
+
"acquirerName": {
|
|
63020
|
+
"type": "string",
|
|
63021
|
+
"minLength": 1,
|
|
63022
|
+
"maxLength": 255,
|
|
63023
|
+
"description": "Name of the acquiring bank recorded for this transaction. A value consisting only of whitespace or invisible characters is rejected."
|
|
63024
|
+
},
|
|
63025
|
+
"issuerName": {
|
|
63026
|
+
"type": "string",
|
|
63027
|
+
"minLength": 1,
|
|
63028
|
+
"maxLength": 255,
|
|
63029
|
+
"description": "Name of the card issuing bank recorded for this transaction. A value consisting only of whitespace or invisible characters is rejected."
|
|
63030
|
+
},
|
|
63031
|
+
"issuerCode": {
|
|
63032
|
+
"type": "string",
|
|
63033
|
+
"minLength": 1,
|
|
63034
|
+
"maxLength": 255,
|
|
63035
|
+
"description": "Code of the card issuing bank recorded for this transaction. A value consisting only of whitespace or invisible characters is rejected."
|
|
63036
|
+
},
|
|
62826
63037
|
"methodType": {
|
|
62827
63038
|
"type": "string",
|
|
62828
63039
|
"enum": [
|
|
@@ -63422,6 +63633,51 @@
|
|
|
63422
63633
|
"paymentMethod": {
|
|
63423
63634
|
"type": "object",
|
|
63424
63635
|
"properties": {
|
|
63636
|
+
"cardType": {
|
|
63637
|
+
"type": "string",
|
|
63638
|
+
"enum": [
|
|
63639
|
+
"credit",
|
|
63640
|
+
"debit",
|
|
63641
|
+
"prepaid"
|
|
63642
|
+
],
|
|
63643
|
+
"nullable": true,
|
|
63644
|
+
"description": "Card category. Allowed values: - `credit` - Credit card. - `debit` - Debit card. - `prepaid` - Prepaid card."
|
|
63645
|
+
},
|
|
63646
|
+
"bin": {
|
|
63647
|
+
"type": "string",
|
|
63648
|
+
"minLength": 1,
|
|
63649
|
+
"maxLength": 255,
|
|
63650
|
+
"nullable": true,
|
|
63651
|
+
"description": "Bank identification number recorded for this transaction (first 6-8 digits). Send a value to replace the stored one, omit the property to keep it, or send `null` to clear it. A value consisting only of whitespace or invisible characters is rejected - use `null` to clear."
|
|
63652
|
+
},
|
|
63653
|
+
"fingerprint": {
|
|
63654
|
+
"type": "string",
|
|
63655
|
+
"minLength": 1,
|
|
63656
|
+
"maxLength": 255,
|
|
63657
|
+
"nullable": true,
|
|
63658
|
+
"description": "Unique card fingerprint recorded for this transaction for cross-channel and cross-PSP card identification. Carries the Payment Account Reference (PAR) where the PSP provides it. Send a value to replace the stored one, omit the property to keep it, or send `null` to clear it. A value consisting only of whitespace or invisible characters is rejected - use `null` to clear."
|
|
63659
|
+
},
|
|
63660
|
+
"acquirerName": {
|
|
63661
|
+
"type": "string",
|
|
63662
|
+
"minLength": 1,
|
|
63663
|
+
"maxLength": 255,
|
|
63664
|
+
"nullable": true,
|
|
63665
|
+
"description": "Name of the acquiring bank recorded for this transaction. Send a value to replace the stored one, omit the property to keep it, or send `null` to clear it. A value consisting only of whitespace or invisible characters is rejected - use `null` to clear."
|
|
63666
|
+
},
|
|
63667
|
+
"issuerName": {
|
|
63668
|
+
"type": "string",
|
|
63669
|
+
"minLength": 1,
|
|
63670
|
+
"maxLength": 255,
|
|
63671
|
+
"nullable": true,
|
|
63672
|
+
"description": "Name of the card issuing bank recorded for this transaction. Send a value to replace the stored one, omit the property to keep it, or send `null` to clear it. A value consisting only of whitespace or invisible characters is rejected - use `null` to clear."
|
|
63673
|
+
},
|
|
63674
|
+
"issuerCode": {
|
|
63675
|
+
"type": "string",
|
|
63676
|
+
"minLength": 1,
|
|
63677
|
+
"maxLength": 255,
|
|
63678
|
+
"nullable": true,
|
|
63679
|
+
"description": "Code of the card issuing bank recorded for this transaction. Send a value to replace the stored one, omit the property to keep it, or send `null` to clear it. A value consisting only of whitespace or invisible characters is rejected - use `null` to clear."
|
|
63680
|
+
},
|
|
63425
63681
|
"methodType": {
|
|
63426
63682
|
"type": "string",
|
|
63427
63683
|
"enum": [
|
|
@@ -63488,7 +63744,8 @@
|
|
|
63488
63744
|
"expYear": {
|
|
63489
63745
|
"type": "string"
|
|
63490
63746
|
}
|
|
63491
|
-
}
|
|
63747
|
+
},
|
|
63748
|
+
"description": "Card and payment method details recorded for this transaction. Omitting the whole `paymentMethod` object leaves every stored card value unchanged. When the object is present, each of its properties is applied independently: a property that is present is written, and a property that is absent from the object keeps its stored value."
|
|
63492
63749
|
},
|
|
63493
63750
|
"status": {
|
|
63494
63751
|
"type": "string",
|
|
@@ -67360,7 +67617,7 @@
|
|
|
67360
67617
|
"method": "POST",
|
|
67361
67618
|
"operationId": "paymentMethodCreate",
|
|
67362
67619
|
"summary": "Payment Method / Create",
|
|
67363
|
-
"description": "Initiate a new payment method registration, or finalize it. Note that this is a two step process! # For payment processors with web view integration You will need to initiate a call with no parameters to this endpoint to get a new request to add payment method (Step 1). Then you will have to redirect to an endpoint and wait for the client to enter his credit card details there. Once he/she is done (and reaches the successURL) you must then issue another call to this endpoint with the transactionID that was returned from the first call to finalize the process and retrieve the newly added payment method data (Step 2). ## Step 1 POST with request body, containing `tokenizedType` to determine the type of the method and `bankTransferType` if applicable. This will create a new request to the payment processor for adding a new payment method. As response you will get the `transactionId` to track the payment method registration process, the `redirectUrl` and `successUrl`, to redirect your user to, along with any other attributes that the payment processor requires for tracking. Just pass those additional parameters to Step 2. ### Example request for tokenizedType = card Request: ```json { \"tokenizedType\": \"card\" } ``` ### Example request for tokenizedType = bank_transfer Request: ```json { \"tokenizedType\": \"bank_transfer\", \"bankTransferType\": \"sepa\" } ``` Response: ```json { \"transactionId\": 1234, \"successUrl\": \"http://example.com/payment-processor/success\", \"redirectUrl\": \"http://example.com/payment-processor/web-form/123abc\", \"additionalProcessorArguments\": \"just pass them all top the step 2\" } ``` ## Step 2 POST with request body, containing the `transactionId` along with any other attributes, that were in the response of Step 1 (other then the `transactionId`, `successUrl` and `redirectUrl`). This will finalize the payment method registration and will retrieve the newly added payment method for you. Note that you can also receive the payment methods using the payment methods listing endpoints. ### Example Request: ```json { \"transactionId\": 1234, \"successUrl\": \"http://example.com/payment-processor/success\", \"redirectUrl\": \"http://example.com/payment-processor/web-form/123abc\", \"additionalProcessorArguments\": \"just pass them all top the step 2\" } ``` Response
|
|
67620
|
+
"description": "Initiate a new payment method registration, or finalize it. Note that this is a two step process! # For payment processors with web view integration You will need to initiate a call with no parameters to this endpoint to get a new request to add payment method (Step 1). Then you will have to redirect to an endpoint and wait for the client to enter his credit card details there. Once he/she is done (and reaches the successURL) you must then issue another call to this endpoint with the transactionID that was returned from the first call to finalize the process and retrieve the newly added payment method data (Step 2). ## Step 1 POST with request body, containing `tokenizedType` to determine the type of the method and `bankTransferType` if applicable. This will create a new request to the payment processor for adding a new payment method. As response you will get the `transactionId` to track the payment method registration process, the `redirectUrl` and `successUrl`, to redirect your user to, along with any other attributes that the payment processor requires for tracking. Just pass those additional parameters to Step 2. ### Example request for tokenizedType = card Request: ```json { \"tokenizedType\": \"card\" } ``` ### Example request for tokenizedType = bank_transfer Request: ```json { \"tokenizedType\": \"bank_transfer\", \"bankTransferType\": \"sepa\" } ``` Response: ```json { \"transactionId\": 1234, \"successUrl\": \"http://example.com/payment-processor/success\", \"redirectUrl\": \"http://example.com/payment-processor/web-form/123abc\", \"additionalProcessorArguments\": \"just pass them all top the step 2\" } ``` ## Step 2 POST with request body, containing the `transactionId` along with any other attributes, that were in the response of Step 1 (other then the `transactionId`, `successUrl` and `redirectUrl`). This will finalize the payment method registration and will retrieve the newly added payment method for you. Note that you can also receive the payment methods using the payment methods listing endpoints. The finalized payment method is returned in a `data` wrapper. Depending on the payment processor, the status is `200` or `201`; the body is the same in both cases. The optional `token` and `registrationTransactionId` properties are omitted when they are not set rather than returned as `null`; the card example includes both properties, while the bank transfer example omits `registrationTransactionId`. ### Example Request: ```json { \"transactionId\": 1234, \"successUrl\": \"http://example.com/payment-processor/success\", \"redirectUrl\": \"http://example.com/payment-processor/web-form/123abc\", \"additionalProcessorArguments\": \"just pass them all top the step 2\" } ``` Response: see the `Step 2 - card payment method` and `Step 2 - bank transfer payment method` response examples. # For payment processors with in-app integration Braintree and Stripe integrations DO NOT count out `redirectUrl` as these processors should have an ip-app integration and therefore the app itself should use the appropriate SDK to complete the credit-card tokenization process with the processor. ## Braintree The first step is not required for braintree as the full integration is done in-app. Step 2 needs to pass the `paymentMethodNonce` so that it can be exchanged for the payment method token. ### Example Step 2 Request: ```json {\"paymentMethodNonce\": \"abc123\"} ``` Response: see the `Step 2 - card payment method` and `Step 2 - bank transfer payment method` response examples. ## Stripe Step 1 with stripe will initialize a setup intent, that your app should complete. You will get the details you need in order to do that from the response of that call. Call step 2 once you have completed the setup intent. ### Example Step 1 - when tokenizing card ```json { \"tokenizedType\": \"card\" } ``` ### Example Step 1 - when tokenizing bank transfer Request: ```json { \"tokenizedType\": \"bank_transfer\", \"bankTransferType\": \"sepa\" } ``` Response: ```json { \"publishableKey\": \"345678986543\", \"clientSecret\": \"jyt37hgsv63\", \"setupIntentReference\": \"1234ABC\" } ``` ### Example Step 2 Request: ```json { \"publishableKey\": \"345678986543\", \"clientSecret\": \"jyt37hgsv63\", \"setupIntentReference\": \"1234ABC\" } ``` Response: see the `Step 2 - card payment method` and `Step 2 - bank transfer payment method` response examples.",
|
|
67364
67621
|
"tags": [
|
|
67365
67622
|
"resource / users"
|
|
67366
67623
|
],
|
|
@@ -67444,10 +67701,10 @@
|
|
|
67444
67701
|
},
|
|
67445
67702
|
"responses": {
|
|
67446
67703
|
"200": {
|
|
67447
|
-
"description": "Request succeeded"
|
|
67704
|
+
"description": "Request succeeded. Step 1 returns one of the shapes below. Depending on the payment processor, step 2 may also return `200` with the finalized payment method body documented under the `201` response."
|
|
67448
67705
|
},
|
|
67449
67706
|
"201": {
|
|
67450
|
-
"description": "
|
|
67707
|
+
"description": "The registration created a new payment method. The finalized payment method is returned in a `data` wrapper."
|
|
67451
67708
|
},
|
|
67452
67709
|
"401": {
|
|
67453
67710
|
"description": "Access token is missing or invalid"
|
|
@@ -67455,8 +67712,14 @@
|
|
|
67455
67712
|
"403": {
|
|
67456
67713
|
"description": "You do not have permission to perform the action"
|
|
67457
67714
|
},
|
|
67715
|
+
"404": {
|
|
67716
|
+
"description": "The record is not found"
|
|
67717
|
+
},
|
|
67458
67718
|
"422": {
|
|
67459
67719
|
"description": "The payload you provided is invalid or problem with processing the request has occurred"
|
|
67720
|
+
},
|
|
67721
|
+
"429": {
|
|
67722
|
+
"description": "Too many requests. Please try again later. For more information, please check the rate limit headers X-RateLimit-*"
|
|
67460
67723
|
}
|
|
67461
67724
|
}
|
|
67462
67725
|
},
|
|
@@ -71665,7 +71928,7 @@
|
|
|
71665
71928
|
],
|
|
71666
71929
|
"info": {
|
|
71667
71930
|
"title": "Public API",
|
|
71668
|
-
"version": "3.
|
|
71931
|
+
"version": "3.247.0",
|
|
71669
71932
|
"description": "The Public API provides server-to-server integration capabilities for your EV charging platform.\n\n**Authentication.** Existing integrations continue to work unchanged — long-lived UUID admin tokens are sent in `Authorization: Bearer ...` with no exchange required. Two security schemes are documented for OpenAPI client tooling, both resulting in the same Bearer header at the wire level:\n - `bearerAuth` — the token in the `Authorization: Bearer ...` header is either a long-lived UUID admin token (issued via the admin UI, used directly) or a short-lived access token previously obtained via OAuth.\n - `oauth2ClientCredentials` - a `client_id` / `client_secret` pair should be exchanged for a short-lived access token at `/public-api/oauth/token` per RFC 6749 Section 4.4 (Client Credentials Grant), and the short-lived token should be used in the `Authorization: Bearer ...` header. The OAuth `client_secret` itself cannot be sent directly as a bearer token — it must be exchanged first.\n"
|
|
71670
71933
|
},
|
|
71671
71934
|
"servers": [
|
|
@@ -71679,18 +71942,18 @@
|
|
|
71679
71942
|
}
|
|
71680
71943
|
}
|
|
71681
71944
|
],
|
|
71682
|
-
"buildTimestamp": "2026-09-
|
|
71945
|
+
"buildTimestamp": "2026-09-10T10:39:01.246Z",
|
|
71683
71946
|
"stats": {
|
|
71684
71947
|
"totalEndpoints": 640,
|
|
71685
|
-
"originalSize":
|
|
71686
|
-
"optimizedSize":
|
|
71687
|
-
"reductionPercent": 72.
|
|
71688
|
-
"buildDuration":
|
|
71948
|
+
"originalSize": 5828593,
|
|
71949
|
+
"optimizedSize": 1631472,
|
|
71950
|
+
"reductionPercent": 72.01,
|
|
71951
|
+
"buildDuration": 1591,
|
|
71689
71952
|
"responseSchemas": {
|
|
71690
71953
|
"total": 640,
|
|
71691
71954
|
"withSchemas": 640,
|
|
71692
|
-
"totalSchemaSize":
|
|
71693
|
-
"averageSchemaSize":
|
|
71955
|
+
"totalSchemaSize": 3317461,
|
|
71956
|
+
"averageSchemaSize": 5184
|
|
71694
71957
|
}
|
|
71695
71958
|
}
|
|
71696
71959
|
}
|