Create Inbound Sales Order
POST {{base-url}}/tso/webconnector/v2.0/companies({{company}})/inboundSalesOrdersWebCon
Request Body
{"number"=>"{{$randomHexColor}}", "externalDocumentNumber"=>"{{$randomHexColor}}"}
RESPONSES
status: Created
{"@odata.context":"https://start.tso.de/bc/api/tso/webconnector/v2.0/$metadata#companies(f53db02b-b04f-459a-8c75-9614701cf6ff)/inboundSalesOrdersWebCon/$entity","@odata.etag":"W/\"JzE5OzQ1MjE3MDg1NjY1MDY0NTIxNzUxOzAwOyc=\"","id":"f6ac27b6-cba8-ef11-a0e2-f28aa150eee0","number":"EAU24-1491","externalDocumentNumber":"WEBSHOP0001","documentDate":"2023-08-28","orderDate":"2023-08-28","postingDate":"2023-08-28","requestedDeliveryDate":"0001-01-01","customerId":"00000000-0000-0000-0000-000000000000","customerNumber":"","contactId":"00000000-0000-0000-0000-000000000000","contactNumber":"","sellToCustomerTemplateId":"00000000-0000-0000-0000-000000000000","sellToCustomerTemplateCode":"","billToCustomerTemplateId":"00000000-0000-0000-0000-000000000000","billToCustomerTemplateCode":"","customerName":"TSO-Data GmbH","customerName2":"","customerFirstName":"Dirk","customerSurName":"Frommeyer","billToName":"","billToName2":"","billToFirstName":"","billToSurName":"","billToCustomerId":"00000000-0000-0000-0000-000000000000","billToCustomerNumber":"","billToContactId":"00000000-0000-0000-0000-000000000000","billToContactNumber":"","shipToName":"","shipToName2":"","shipToFirstName":"","shipToSurName":"","shipToContact":"","sellToAddressLine1":"Preußenweg 10","sellToAddressLine2":"","sellToCity":"Osnabrück","sellToCountry":"","sellToState":"","sellToPostCode":"49076","billToAddressLine1":"","billToAddressLine2":"","billToCity":"","billToCountry":"","billToState":"","billToPostCode":"","shipToAddressLine1":"","shipToAddressLine2":"","shipToCity":"","shipToCountry":"","shipToState":"","shipToPostCode":"","shipToPostNumber":"","shipToParcelStationNumber":"","shipToPostOfficeNumber":"","currencyId":"00000000-0000-0000-0000-000000000000","currencyCode":"EUR","pricesIncludeTax":true,"paymentTermsId":"00000000-0000-0000-0000-000000000000","paymentMethodId":"02373c33-f140-ea11-8ea4-d964079d4737","paymentMethodCode":"BANK","shipmentMethodId":"00000000-0000-0000-0000-000000000000","shipmentMethodCode":"","shippingAgentId":"87aa7ac4-8242-ea11-8ea4-8c1e5dd2b8a6","shippingAgentCode":"DHL","shippingAgentServiceId":"e34eb88d-ae42-ea11-8ea4-dcd509c3292a","shippingAgentServiceCode":"STANDARD","campaignId":"00000000-0000-0000-0000-000000000000","campaignNumber":"","responsibilityCenterId":"92c1a0a8-7c42-ea11-8ea4-b6acf53b3088","responsibilityCenter":"HAMBURG","salesperson":"","lastModifiedDateTime":"2024-11-22T12:17:16.987Z","phoneNumber":"+4954113950","email":"info@tso.de","vatRegistrationNumber":"DE 117 647 926","billToVATRegistrationNumber":"","shipToCode":"","paymentTransactionId":"","paymentTransactionCode":"","paymentTransactionAmount":0,"languageCode":"","yourReference":"","inboundSalesOrderLinesWebCon":[{"@odata.etag":"W/\"JzIwOzE0NzQ1NDQ3MzU0MDU1OTA3NDYxMTswMDsn\"","id":"f8ac27b6-cba8-ef11-a0e2-f28aa150eee0","documentId":"f6ac27b6-cba8-ef11-a0e2-f28aa150eee0","documentNumber":"EAU24-1491","sequence":10000,"externalLineId":"","itemId":"feeaafcb-4243-ea11-8ea4-84f257d53c34","itemNumber":"10000","itemReferenceNumber":"","accountId":"00000000-0000-0000-0000-000000000000","accountNumber":"10000","resourceId":"00000000-0000-0000-0000-000000000000","resourceNumber":"10000","lineType":"Item","lineObjectNumber":"10000","description":"","description2":"","unitOfMeasureId":"56363c33-f140-ea11-8ea4-d964079d4737","unitOfMeasureCode":"STÜCK","quantity":1,"unitPrice":651.1,"discountAmount":11.1,"discountPercent":0,"taxPercent":0,"netAmount":0,"netAmountIncludingTax":0,"itemVariantId":"00000000-0000-0000-0000-000000000000","itemVariantCode":"","locationCode":"BLAU","locationId":"115c43c1-7c42-ea11-8ea4-b6acf53b3088","lastModifiedDateTime":"2024-11-22T12:17:17.07Z"}],"inboundSalesOrderCommentsWebCon":[{"@odata.etag":"W/\"JzIwOzE1Mzg0OTY1NDY2NjU1MjQzNDMxMTswMDsn\"","id":"fbac27b6-cba8-ef11-a0e2-f28aa150eee0","documentType":"Order","documentNo":"EAU24-1491","documentLineNo":0,"lineNo":10000,"comment":"Header Comment 1"},{"@odata.etag":"W/\"JzIwOzE1NDg3MTQyNDI2NjM2OTkyMzA2MTswMDsn\"","id":"fcac27b6-cba8-ef11-a0e2-f28aa150eee0","documentType":"Order","documentNo":"EAU24-1491","documentLineNo":0,"lineNo":20000,"comment":"Header Comment 2"}]}