doc(api): added subaccount endpoint doc
MODIFY
src/assets/server/rest/v1/docs/e-mobility-oas.json
src/assets/server/rest/v1/docs/e-mobility-oas.json
}
}
}
- }, "/api/oicp/endpoints": {
+ },
+ "/api/oicp/endpoints": {
"post": {
"security": [
{
}
}
},
+ "/api/billing/sub-accounts": {
+ "post": {
+ "security": [
+ {
+ "bearerAuth": []
+ }
+ ],
+ "description": "Create a Billing sub-account for a site or a company",
+ "tags": [
+ "Billing"
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "required": [
+ "userID"
+ ],
+ "oneOf": [
+ {
+ "required": [
+ "siteID"
+ ]
+ },
+ {
+ "required": [
+ "companyID"
+ ]
+ }
+ ],
+ "properties": {
+ "userID": {
+ "type": "string"
+ },
+ "siteID": {
+ "type": "string"
+ },
+ "companyID": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ }
+ },
+ "responses": {
+ "201": {
+ "description": "Pending sub-account created",
+ "content": {
+ "application/json": {
+ "example": {
+ "userID": "###",
+ "siteID": "###",
+ "accountID": "###",
+ "activationLink": "###",
+ "pending": true,
+ "id": "###"
+ }
+ }
+ }
+ },
+ "401": {
+ "$ref": "#/components/responses/UnauthorizedError"
+ },
+ "403": {
+ "$ref": "#/components/responses/ForbiddenError"
+ },
+ "500": {
+ "$ref": "#/components/responses/BackendError"
+ }
+ }
+ }
+ },
"/api/invoices": {
"get": {
"security": [
"200": {
"description": "Return invoice as PDF",
"content": {
- "application/pdf": {
- }
+ "application/pdf": {}
}
},
"401": {

doc(api): added subaccount endpoint doc