Create Inbound Sales OrderKTG
POST {{base-url}}/tso/webconnector/v2.0/companies({{company}})/inboundSalesOrdersKTG
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)/inboundSalesOrdersKTG/$entity","@odata.etag":"W/\"JzIwOzE1OTA3NTI2ODU1ODkzNjk5NjA2MTswMDsn\"","id":"8ada534f-2f09-ef11-a0dc-a5422e9fe3ea","number":"EAU23-000024","externalDocumentNumber":"WEBSHOP0007","documentDate":"2023-08-28","orderDate":"2023-08-28","postingDate":"2023-08-28","customerId":"00000000-0000-0000-0000-000000000000","customerNumber":"","contactId":"7e7a5010-0141-ea11-8ea4-824b8b6bcea3","contactNumber":"10000","sellToCustomerTemplateId":"949ba35d-323a-eb11-b472-9503ebc958c9","sellToCustomerTemplateCode":"2H_INL_B2B","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":"DE","sellToState":"","sellToPostCode":"49076","billToAddressLine1":"","billToAddressLine2":"","billToCity":"","billToCountry":"","billToState":"","billToPostCode":"","shipToAddressLine1":"","shipToAddressLine2":"","shipToCity":"","shipToCountry":"DE","shipToState":"","shipToPostCode":"","shipToPostNumber":"","shipToParcelStationNumber":"","shipToPostOfficeNumber":"","currencyId":"00000000-0000-0000-0000-000000000000","currencyCode":"EUR","pricesIncludeTax":false,"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-05-03T09:27:08.107Z","phoneNumber":"+4954113950","email":"info@tso.de","vatRegistrationNumber":"DE 117 647 926","billToVATRegistrationNumber":"","shipToCode":"","paymentTransactionId":"","paymentTransactionCode":"","paymentTransactionAmount":0,"languageCode":"","distributionChannelCode":"","calulateFreight":false,"freightAmount":0,"inboundSalesOrderLinesWebCon":[{"@odata.etag":"W/\"JzIwOzEzODYzMTI4ODIzMDY4NDIyNTExMTswMDsn\"","id":"8cda534f-2f09-ef11-a0dc-a5422e9fe3ea","documentId":"8ada534f-2f09-ef11-a0dc-a5422e9fe3ea","documentNumber":"EAU23-000024","sequence":10000,"externalLineId":"80183193228","itemId":"feeaafcb-4243-ea11-8ea4-84f257d53c34","itemNumber":"10000","accountId":"00000000-0000-0000-0000-000000000000","resourceId":"00000000-0000-0000-0000-000000000000","lineType":"Item","description":"TSO DATA Decke","description2":"","unitOfMeasureId":"56363c33-f140-ea11-8ea4-d964079d4737","unitOfMeasureCode":"STÜCK","quantity":6,"unitPrice":9.45,"discountAmount":0,"discountPercent":5,"taxPercent":0,"netAmount":53.87,"netAmountIncludingTax":64.1,"itemVariantId":"00000000-0000-0000-0000-000000000000","itemVariantCode":"","locationCode":"BLAU","locationId":"115c43c1-7c42-ea11-8ea4-b6acf53b3088"}]}