{ "openapi": "3.0.1", "info": { "title": "Distrib WebAPI", "description": "Welcome to Distrib WebAPI. Please check Authentication paragraph at the end of the document to know how to authenticate against the API before using it.You can switch between definitions at the top of documentation to watch the API methods corresponding to the version of the API you are using", "version": "v1.8.0.0-ECommerce" }, "servers": [ { "url": "/pccom" } ], "paths": { "/PCCOM.Distrib.Clients.ECommerce/Clients": { "post": { "tags": [ "Clients" ], "summary": "Creates a new B2B or B2C client", "requestBody": { "content": { "multipart/form-data": { "schema": { "required": [ "ShippingAddresses" ], "type": "object", "properties": { "Role": { "$ref": "#/components/schemas/PCCOM.Distrib.Core.DTOs.RoleType" }, "PDFDocument": { "type": "string", "format": "binary", "nullable": true }, "ShippingAddresses": { "type": "array", "items": { "$ref": "#/components/schemas/PCCOM.Distrib.Clients.DTOs.v1_6.ShippingAddDTO" } } } }, "encoding": { "Role": { "style": "form" }, "PDFDocument": { "style": "form" }, "ShippingAddresses": { "style": "form" } } } } }, "responses": { "201": { "description": "Creates a new client", "content": { "application/json": { "schema": {} } } }, "400": { "description": "Invalid model submitted" }, "401": { "description": "User not successfully authenticated" }, "403": { "description": "User without client creation permission" }, "500": { "description": "Internal server error" } } } } }, "components": { "schemas": { "PCCOM.Distrib.Core.DTOs.RoleType": { "enum": [ 1, 2 ], "type": "integer", "format": "int32" }, "PCCOM.Distrib.Clients.DTOs.v1_6.ShippingAddDTO": { "type": "object", "properties": { "address": { "type": "string", "nullable": true }, "phoneNumber": { "type": "string", "nullable": true } }, "additionalProperties": false } }, "securitySchemes": { "Bearer": { "type": "apiKey", "description": "JWT Authorization header using the Bearer scheme. Example: \"Authorization: Bearer {token}\"", "name": "Authorization", "in": "header" } } }, "security": [ { "Bearer": [] } ] }