{ "openapi": "3.0.4", "info": { "title": "Fulfillment API Swagger", "description": "Fulfillment API Swagger", "version": "1" }, "servers": [ { "url": "https://api.sandbox.esw.com" } ], "paths": { "/v1/PickPack/Confirm": { "post": { "tags": [ "PickPack" ], "requestBody": { "content": { "application/json-patch+json": { "schema": { "$ref": "#/components/schemas/PickPackConfirm" } }, "application/json": { "schema": { "$ref": "#/components/schemas/PickPackConfirm" } }, "text/json": { "schema": { "$ref": "#/components/schemas/PickPackConfirm" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/PickPackConfirm" } } }, "x-bodyName": "body" }, "responses": { "202": { "description": "Accepted", "content": { "application/json": { } } }, "400": { "description": "Bad Request", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ValidationProblemDetails" } } } }, "500": { "description": "Internal Server Error", "content": { "application/json": { } } } } } }, "/v1/PickPack/AdvancedShippingNotice": { "post": { "tags": [ "ASN" ], "requestBody": { "content": { "application/json-patch+json": { "schema": { "$ref": "#/components/schemas/AdvancedShippingNoticeRequest" } }, "application/json": { "schema": { "$ref": "#/components/schemas/AdvancedShippingNoticeRequest" } }, "text/json": { "schema": { "$ref": "#/components/schemas/AdvancedShippingNoticeRequest" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/AdvancedShippingNoticeRequest" } } }, "x-bodyName": "body" }, "responses": { "202": { "description": "Accepted", "content": { "application/json": { } } }, "400": { "description": "Bad Request", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ValidationProblemDetails" } } } }, "500": { "description": "Internal Server Error", "content": { "application/json": { } } } } } }, "/v1/Inventory/Sync": { "post": { "tags": [ "Inventory" ], "requestBody": { "content": { "application/json-patch+json": { "schema": { "$ref": "#/components/schemas/InventorySyncRequest" } }, "application/json": { "schema": { "$ref": "#/components/schemas/InventorySyncRequest" } }, "text/json": { "schema": { "$ref": "#/components/schemas/InventorySyncRequest" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/InventorySyncRequest" } } }, "x-bodyName": "body" }, "responses": { "202": { "description": "Accepted", "content": { "application/json": { } } }, "400": { "description": "Bad Request", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ValidationProblemDetails" } } } }, "500": { "description": "Internal Server Error", "content": { "application/json": { } } } } } } }, "components": { "schemas": { "PickPackConfirm": { "required": [ "confirmationId", "eswOrderReference", "pickPackResponse", "tenantCode" ], "type": "object", "properties": { "confirmationId": { "type": "string" }, "confirmationDateTime": { "type": "string", "format": "date-time" }, "eswOrderReference": { "type": "string" }, "tenantCode": { "type": "string" }, "pickPackResponse": { "$ref": "#/components/schemas/PickPackResponse" } }, "additionalProperties": false }, "ValidationProblemDetails": { "type": "object", "properties": { "errors": { "type": "object", "additionalProperties": { "type": "array", "items": { "type": "string" } } }, "type": { "type": "string" }, "title": { "type": "string" }, "status": { "type": "integer", "format": "int32" }, "detail": { "type": "string" }, "instance": { "type": "string" } }, "additionalProperties": { } }, "PickPackResponse": { "required": [ "status" ], "type": "object", "properties": { "status": { "$ref": "#/components/schemas/PickPackResponseStatus" }, "failureReason": { "$ref": "#/components/schemas/PickPackProviderFailureReason" }, "problemMessage": { "type": "string" }, "itemsResult": { "type": "array", "items": { "$ref": "#/components/schemas/ItemProviderResponse" } } }, "additionalProperties": false }, "AdvancedShippingNoticeRequest": { "type": "object", "properties": { "shipmentId": { "type": "string" }, "eswOrderReference": { "type": "string" }, "shipmentDateTime": { "type": "string", "format": "date-time" }, "shipmentStatus": { "$ref": "#/components/schemas/ShipmentStatus" }, "shipFrom": { "$ref": "#/components/schemas/ShipmentLocation" }, "carrierId": { "type": "string" }, "packageReference": { "type": "string" }, "carrierSCAC": { "type": "string" }, "carrierReference": { "type": "string" }, "packageWeight": { "$ref": "#/components/schemas/PackageWeight" }, "packageDimensions": { "$ref": "#/components/schemas/PackageDimensions" }, "items": { "type": "array", "items": { "$ref": "#/components/schemas/ShipmentItem" } } }, "additionalProperties": false }, "PackageDimensions": { "type": "object", "properties": { "length": { "type": "number", "format": "double" }, "width": { "type": "number", "format": "double" }, "height": { "type": "number", "format": "double" }, "dimensionUnit": { "$ref": "#/components/schemas/DimensionUnit" } }, "additionalProperties": false }, "PackageWeight": { "type": "object", "properties": { "weight": { "type": "number", "format": "double" }, "weightUnit": { "$ref": "#/components/schemas/WeightUnit" } }, "additionalProperties": false }, "ShipmentItem": { "type": "object", "properties": { "sku": { "type": "string" }, "quantityOrdered": { "type": "integer", "format": "int32" }, "quantityShipped": { "type": "integer", "format": "int32" }, "unitOfMeasure": { "type": "string" }, "itemStatus": { "$ref": "#/components/schemas/ItemStatus" } }, "additionalProperties": false }, "ShipmentLocation": { "type": "object", "properties": { "name": { "type": "string" }, "locationCode": { "type": "string" } }, "additionalProperties": false }, "ShipmentStatus": { "enum": [ "Unshipped", "PartiallyShipped", "Shipped" ], "type": "string", "x-ms-enum": { "name": "ShipmentStatus", "modelAsString": true } }, "InventorySyncRequest": { "required": [ "fulfillmentCentreId", "items", "provider", "tenantCode" ], "type": "object", "properties": { "tenantCode": { "minLength": 1, "type": "string" }, "fulfillmentCentreId": { "minLength": 1, "type": "string" }, "provider": { "type": "string" }, "items": { "type": "array", "items": { "$ref": "#/components/schemas/InventorySyncItem" } } }, "additionalProperties": false }, "InventorySyncItem": { "required": [ "articleStatus", "sku" ], "type": "object", "properties": { "sku": { "maxLength": 32, "minLength": 3, "type": "string" }, "variantProductCode": { "maxLength": 100, "minLength": 1, "type": "string" }, "upc": { "type": "string" }, "ean": { "type": "string" }, "size": { "type": "string" }, "color": { "type": "string" }, "articleStatus": { "$ref": "#/components/schemas/ArticleStatus" }, "quantity": { "type": "integer", "format": "int32" } }, "additionalProperties": false } }, "securitySchemes": { "Bearer": { "type": "apiKey", "description": "Please insert JWT with Bearer into field", "name": "Authorization", "in": "header" } } }, "security": [ { "Bearer": [ ] } ] }