{"openapi":"3.0.0","servers":[{"description":"API Troncal PROD","url":"https://apigrassi-prod.servicios.grassisa.com.ar"},{"description":"API Troncal QA","url":"https://apigrassi-qa.servicios.grassisa.com.ar"},{"description":"API Troncal DEV","url":"https://apigrassi-dev.servicios.grassisa.com.ar"}],"info":{"version":"1.0.19","title":"API Troncal","description":"Main API used as an intermediary for all requests"},"tags":[{"name":"JDE","description":"All endpoints for testing JDE connection"},{"name":"General","description":"All endpoints of the Main API"},{"name":"OV - Auth","description":"Authentication endpoints in OV"},{"name":"OV - Users","description":"Endpoints related to users in OV"},{"name":"OV - Orders","description":"Endpoints related to orders in OV"},{"name":"OV - Conditions","description":"Endpoints related to conditions in OV"},{"name":"OV - Dictionaries","description":"Endpoints related to dictionaries in OV"},{"name":"OV - Masters","description":"Endpoints related to masters in OV"},{"name":"OV - Sandbox","description":"All endpoints for testing OV"},{"name":"OV - Sandbox - Auth","description":"Endpoints related to authentication in OV sandbox environment"},{"name":"OV - Sandbox - Users","description":"Endpoints related to users in OV sandbox environment"},{"name":"OV - Sandbox - Orders","description":"Endpoints related to orders in OV sandbox environment"},{"name":"OV - Sandbox - Conditions","description":"Endpoints related to conditions in OV sandbox environment"},{"name":"OV - Sandbox - Dictionaries","description":"Endpoints related to dictionaries in OV sandbox environment"},{"name":"OV - Sandbox - Masters","description":"Endpoints related to masters in OV sandbox environment"},{"name":"OV - Production","description":"All production endpoints of OV"},{"name":"OV - Production - Auth","description":"Endpoints related to authentication in OV production environment"},{"name":"OV - Production - Users","description":"Endpoints related to users in OV production environment"},{"name":"OV - Production - Orders","description":"Endpoints related to orders in OV production environment"},{"name":"OV - Production - Conditions","description":"Endpoints related to conditions in OV production environment"},{"name":"OV - Production - Dictionaries","description":"Endpoints related to dictionaries in OV production environment"},{"name":"OV - Production - Masters","description":"Endpoints related to masters in OV production environment"},{"name":"Main - Auth - Token","description":"Endpoints related to token handling in Main API"},{"name":"Main - Sandbox","description":"All endpoints for testing Main API"},{"name":"Main - Sandbox - Auth","description":"Endpoints related to authorization in Main API sandbox environment"},{"name":"Main - Production","description":"All production endpoints of Main API"},{"name":"Main - Production - Auth","description":"Endpoints related to authorization in Main API production environment"},{"name":"Bootcamp","description":"Endpoints generados en el bootcamp"}],"paths":{"/auto-ep/get-forward-difference":{"get":{"tags":["Bootcamp"],"description":"Descripción detallada del endpoint","operationId":"getForwardDifference","security":[{"AccessToken":[]}],"responses":{"200":{"description":"Response OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"number","example":400},"message":{"type":"string","example":"successful"},"status":{"type":"number","example":200}}}}}},"400":{"description":"Invalid format in the body","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","example":"Bad request message"}}}}}},"404":{"description":"User not found in database","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","example":"Not found message"}}}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","example":"Bad request message"}}}}}}}}},"/ov/login":{"post":{"tags":["General","OV - Auth","OV - Production","OV - Production - Auth"],"description":"Allows you to authenticate as a registered user and grants you access to submit requests to the API \"Ordenes de Venta\"","operationId":"ProdLoginOvUser","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginOv"}}}},"responses":{"200":{"description":"Returns a token to authentication in \"Ordenes de Venta\"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Token"}}}},"400":{"description":"Invalid format in the body","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RequestError"}}}},"404":{"description":"User not found in database","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RequestError"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServerError"}}}}}}},"/prod/main/gen-admin-token":{"post":{"tags":["General","Main - Production","Main - Auth - Token","Main - Production - Auth"],"description":"This endpoint allows you to obtain the administrator role through a token, providing you with the ability to make requests to generate access tokens of the main API.","operationId":"ProdGenAdminTokenMain","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenAdminTokenBody"}}}},"responses":{"200":{"description":"Returns a token to get the admin role on the main API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenAdminTokenResponse"}}}},"400":{"description":"Error on body format","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenericErrorBadRequest"}}}},"401":{"description":"Unauthorized user to generate the token","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenericErrorUnauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenericErrorInternal"}}}}},"security":[{"AuthMasterToken":[]}]}},"/prod/main/gen-access-token":{"post":{"tags":["General","JDE","Main - Production","Main - Auth - Token","Main - Production - Auth"],"description":"This endpoint allows you to obtain a token through an admin token, allows creating an access token for different API endpoints.","operationId":"ProdGenAccessTokenMain","requestBody":{"description":"If the role is not admin, a body is not necessary in the request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerateAccessToken"}}}},"responses":{"200":{"description":"Returns a token to get the admin role on the main API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokensSuccessResponse"}}}},"400":{"description":"Invalid format in the body","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenericErrorBadRequest"}}}},"401":{"description":"Unauthorized user to get the token","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenericErrorUnauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenericErrorInternal"}}}}},"security":[{"AuthMasterToken":[]}]}},"/prod/main/refresh-access-token":{"post":{"tags":["General","Main - Production","JDE","Main - Auth - Token","Main - Production - Auth"],"description":"This endpoint allows you to obtain the permissions through a token, providing you with the ability to make requests to specific endpoints of the main API. The parameters in the body define which endpoints the user, to whom the created token is granted, has access to.","operationId":"ProdRefreshAccessTokenMain","responses":{"200":{"description":"Returns a token to get the admin role on the main API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokensSuccessResponse"}}}},"400":{"description":"Invalid format in the body","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenericErrorBadRequest"}}}},"401":{"description":"Unauthorized user to get the token","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenericErrorUnauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenericErrorInternal"}}}}},"security":[{"RefreshToken":[]}]}},"/main/token-status":{"get":{"tags":["General","JDE","Main - Production","Main - Production - Auth"],"description":"This endpoint allows you to obtain the status of the token, providing you with the ability to make requests to specific endpoints of the main API.","operationId":"GetTokenStatus","responses":{"200":{"description":"The token is valid at the time the request is processed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenStatusSuccess"}}}},"401":{"description":"The token is not valid","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenericErrorUnauthorized"}}}}},"security":[{"AccessToken":[]}]}},"/data":{"get":{"tags":["General","JDE"],"description":"Returns a record of simulated data from the table, if the \"from\" and \"to\" queries are sent in the DD/MM/YYYY format, it returns the data filtered by date, otherwise it returns all the records.","operationId":"GetIbmData","parameters":[{"name":"from","in":"query","description":"Date from which you want to obtain the records. Format: DD/MM/YYYY","required":false,"schema":{"type":"string"}},{"name":"to","in":"query","description":"Date until which you want to obtain the records. Format: DD/MM/YYYY","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK, the list is returned","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IbmData"}}}},"400":{"description":"Invalid format in the query parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JdeBadRequest"}}}},"401":{"description":"A valid token is required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JdeUnauthorizedResponse"}}}}},"security":[{"AccessToken":[]}]}},"/coe-cae":{"post":{"tags":["General","JDE"],"description":"Allows you to register the afip codes (COE or CAE) in the test table.","operationId":"PostCoeCae","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IbmDataWithCodeAfip"}}}},"responses":{"200":{"description":"OK, the message of success is returned","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JdeSuccessResponse"}}}},"400":{"description":"Invalid format in the query parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JdeBadRequest"}}}},"401":{"description":"A valid token is required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JdeUnauthorizedResponse"}}}}},"security":[{"AccessToken":[]}]}},"/jde/inform-coe":{"post":{"tags":["General","JDE"],"description":"Allows you to report COE from JDE to IBM.","operationId":"JdeInformCoe","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InformCoeReq"}}}},"responses":{"200":{"description":"OK, the message of success is returned","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JdeInformCoeSuccessResponse"}}}},"400":{"description":"Invalid format in the query parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JdeInformCoeBadRequest"}}}},"401":{"description":"A valid token is required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JdeInformCoeUnauthorizedResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JdeInformCoeServerError"}}}}},"security":[{"AccessToken":[]}]}},"/jde/inform-cae":{"post":{"tags":["General","JDE"],"description":"Allows you to report CAE from JDE to IBM.","operationId":"JdeInformCae","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InformCaeReq"}}}},"responses":{"200":{"description":"OK, the message of success is returned","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JdeInformCaeSuccessResponse"}}}},"400":{"description":"Invalid format in the query parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JdeInformCaeBadRequest"}}}},"401":{"description":"A valid token is required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JdeInformCaeUnauthorizedResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JdeInformCaeServerError"}}}}},"security":[{"AccessToken":[]}]}},"/jde/send-coe":{"post":{"tags":["General","JDE"],"description":"Allows you to report COE from IBM to JDE.","operationId":"JdeSendCoe","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JdeSendCoeReq"}}}},"responses":{"200":{"description":"OK, the message of success is returned","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JdeSendCoeResponse"}}}},"400":{"description":"Invalid format in the query parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JdeSendCoeBadRequest"}}}},"401":{"description":"A valid token is required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JdeSendCoeUnauthorizedResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JdeSendCoeServerError"}}}}},"security":[{"AccessToken":[]}]}},"/jde/send-cae":{"post":{"tags":["General","JDE"],"description":"Allows you to report CAE from IBM to JDE.","operationId":"JdeSendCae","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JdeSendCaeReq"}}}},"responses":{"200":{"description":"OK, the message of success is returned","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JdeSendCaeResponse"}}}},"400":{"description":"Invalid format in the query parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JdeSendCaeBadRequest"}}}},"401":{"description":"A valid token is required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JdeSendCaeUnauthorizedResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JdeSendCaeServerError"}}}}},"security":[{"AccessToken":[]}]}},"/jde/address-book":{"post":{"tags":["General","JDE"],"summary":"Create or update an address book entry","description":"This endpoint allows a company to create or update an address book entry, including identification details, addresses, contacts, bank accounts, and emails. The data is sent from JDE to IBM.","operationId":"JdePostAddressBook","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JdePostAddressBookReq"}}}},"responses":{"200":{"description":"OK, the message of success is returned","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JdeGenericSuccessWithErrorsRes"}}}},"400":{"description":"Invalid format in the body","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JdeGenericBadRequest"}}}},"401":{"description":"A valid token is required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JdeGenericUnauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JdeGenericServerError"}}}}},"security":[{"AccessToken":[]}]}},"/jde/send-contract":{"post":{"tags":["General","JDE"],"summary":"Sends contract interface data from IBM to JDE.","description":"This endpoint receives contract interface data sent from IBM and processes it for integration into the JDE system. The structure and behavior are similar to the existing /jde/send-coe endpoint. It returns a result indicating success or failure, along with any validation errors encountered.","operationId":"JdeSendContract","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JdeSendContractReq"}}}},"responses":{"200":{"description":"OK, the message of success is returned","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JdeSendContractSuccess"}}}},"400":{"description":"Invalid format in the body","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JdeSendContractError"}}}},"401":{"description":"A valid token is required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JdeSendContractError"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JdeSendContractError"}}}}},"security":[{"AccessToken":[]}]}},"/ov/users":{"get":{"tags":["General","OV - Users","OV - Production","OV - Production - Users"],"description":"Returns a list of all registered users in the “Ordenes de venta” platform.","operationId":"ProdGetAllOvUsers","responses":{"200":{"description":"OK, the list is returned","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListOfUsers"}}}},"401":{"description":"Token is required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServerError"}}}}},"security":[{"AccessToken":[]}],"parameters":[{"name":"AuthOvApi","in":"header","required":true,"schema":{"type":"string"},"example":"Bearer token","description":"JWT to authenticate request to \"Ordenes de Venta\""}]},"post":{"tags":["General","OV - Users","OV - Production","OV - Production - Users"],"description":"This endpoint facilitates the registration of a new user within the \"Ordenes de Venta\" platform.","operationId":"ProdPostOvUser","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostOvUser"}}}},"responses":{"200":{"description":"OK, returns the id of the user that was created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InsertedID"}}}},"400":{"description":"Bad request, error on body format","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RequestError"}}}},"401":{"description":"Unauthorized, token is required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServerError"}}}}},"security":[{"AccessToken":[]}],"parameters":[{"name":"AuthOvApi","in":"header","required":true,"schema":{"type":"string"},"example":"Bearer token","description":"JWT to authenticate request to \"Ordenes de Venta\""}]},"put":{"tags":["General","OV - Users","OV - Production","OV - Production - Users"],"description":"This endpoint allows for the modification of user data within the \"Ordenes de Venta\" platform.","operationId":"ProdUpdateOvUser","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PutOvUser"}}}},"responses":{"200":{"description":"OK, the user was updated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseSuccessOvPut"}}}},"304":{"description":"User was found but not modified","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RequestError"}}}},"400":{"description":"Bad request, error on body format","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RequestError"}}}},"401":{"description":"Unauthorized, token is required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}}},"404":{"description":"User not found in database","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RequestError"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServerError"}}}}},"security":[{"AccessToken":[]}],"parameters":[{"name":"AuthOvApi","in":"header","required":true,"schema":{"type":"string"},"example":"Bearer token","description":"JWT to authenticate request to \"Ordenes de Venta\""}]}},"/ov/users/{id}":{"get":{"tags":["General","OV - Users","OV - Production","OV - Production - Users"],"description":"This endpoint retrieves a user that corresponds to the specified ID provided in the parameters. It allows for targeted access to user information based on the unique identifier supplied in the request.","operationId":"ProdGetOvUserById","parameters":[{"name":"AuthOvApi","in":"header","required":true,"schema":{"type":"string"},"example":"Bearer token","description":"JWT to authenticate request to \"Ordenes de Venta\""},{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int"},"description":"ID of the wanted user"}],"security":[{"AccessToken":[]}],"responses":{"200":{"description":"OK, the user is returned","content":{"application/json":{"schema":{"$ref":"#/components/schemas/User"}}}},"401":{"description":"Unauthorized, token is required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServerError"}}}}}},"delete":{"tags":["General","OV - Users","OV - Production","OV - Production - Users"],"description":"This endpoint allows for the deletion of a user based on their unique identifier (ID).","operationId":"ProdDeleteOvUser","parameters":[{"name":"AuthOvApi","in":"header","required":true,"schema":{"type":"string"},"example":"Bearer token","description":"JWT to authenticate request to \"Ordenes de Venta\""},{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int"},"description":"ID of the user to be deleted"}],"responses":{"200":{"description":"OK, the user has been deleted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeletedCount"}}}},"401":{"description":"Unauthorized, token is required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServerError"}}}}},"security":[{"AccessToken":[]}]}},"/ov/send-whatsapp":{"post":{"tags":["General","OV - Users","OV - Production","OV - Production - Users"],"description":"This endpoint facilitates sending a whatsapp message to a user through the \"Ordenes de Venta\" platform. The message will be sent to the user's phone number from the \"Ordenes de Venta\" whatsapp bot.","operationId":"ProdSendOVWhatsapp","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendOVWhatsapp"}}}},"responses":{"200":{"description":"OK, the message was sent","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WuzapiSendTextResponse"}}}},"400":{"description":"Bad request, error on body format","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RequestError"}}}},"401":{"description":"Unauthorized, token is required or invalid","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RequestError"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServerError"}}}}},"security":[{"AccessToken":[]}],"parameters":[{"name":"Wuzapi-Token","in":"header","required":true,"schema":{"type":"string"},"example":"Bearer token","description":"JWT to authenticate request to wuzapi. This token is linked to the whatsapp account of \"Ordenes de Venta\" bot."}]}},"/ov/conditions":{"post":{"tags":["General","OV - Conditions","OV - Production","OV - Production - Conditions"],"description":"This endpoint facilitates the registration of a new condition within the \"Ordenes de Venta\" platform.","operationId":"ProdCreateOvCondition","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateOvCondition"}}}},"responses":{"200":{"description":"OK, returns the id of the condition that was created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InsertedIDString"}}}},"400":{"description":"Bad request, error on body format","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RequestError"}}}},"401":{"description":"Unauthorized, token is required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServerError"}}}}},"security":[{"AccessToken":[]}],"parameters":[{"name":"AuthOvApi","in":"header","required":true,"schema":{"type":"string"},"example":"Bearer token","description":"JWT to authenticate request to \"Ordenes de Venta\""}]}},"/ov/orders":{"post":{"tags":["General","OV - Orders","OV - Production","OV - Production - Orders"],"description":"This endpoint facilitates the registration of a new order within the \"Ordenes de Venta\" platform.","operationId":"ProdCreateOvOrder","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateOvOrder"}}}},"responses":{"200":{"description":"OK, returns the id of the order that was created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InsertedIDString"}}}},"400":{"description":"Bad request, error on body format","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RequestError"}}}},"401":{"description":"Unauthorized, token is required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServerError"}}}}},"security":[{"AccessToken":[]}],"parameters":[{"name":"AuthOvApi","in":"header","required":true,"schema":{"type":"string"},"example":"Bearer token","description":"JWT to authenticate request to \"Ordenes de Venta\""}]}},"/ov/get-dictionaries":{"post":{"tags":["General","OV - Dictionaries","OV - Production","OV - Production - Dictionaries"],"description":"Allows obtaining one, several, or all dictionaries that provide context to an order based on the parameters passed in the array of strings in the 'dictionaries' property of the body.","operationId":"ProdGetOvDictionaries","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetOvDictionariesBody"}}}},"responses":{"200":{"description":"OK, returns an array of dictionaries","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetOvDictionariesResponse"}}}},"400":{"description":"Bad request, error on body format","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RequestError"}}}},"401":{"description":"Unauthorized, token is required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServerError"}}}}},"security":[{"AccessToken":[]}],"parameters":[{"name":"AuthOvApi","in":"header","required":true,"schema":{"type":"string"},"example":"Bearer token","description":"JWT to authenticate request to \"Ordenes de Venta\""}]}},"/ov/masters/{collection}":{"get":{"tags":["General","OV - Masters","OV - Production","OV - Production - Masters"],"description":"Returns a list of all records related to 'masters' according to the collection passed as params","operationId":"ProdGetOvMasterByCollection","parameters":[{"name":"collection","in":"path","required":true,"schema":{"type":"string","enum":["CER002","CERoo7","CER225","CER050TC","CCLOCA","CERCANJ","CERCALI"]},"description":"Targeted collection"}],"security":[{"AccessToken":[]}],"responses":{"200":{"description":"OK, the collection is returned","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/CER002Get"},{"$ref":"#/components/schemas/CERoo7Get"},{"$ref":"#/components/schemas/CER225Get"},{"$ref":"#/components/schemas/CER050TC"},{"$ref":"#/components/schemas/CCLOCAGet"},{"$ref":"#/components/schemas/CERCANJGet"},{"$ref":"#/components/schemas/CERCALIGet"}]}}}},"401":{"description":"Unauthorized, token is required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}}},"404":{"description":"Collection not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RequestError"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServerError"}}}}}}},"/sandbox/ov/login":{"post":{"tags":["General","OV - Auth","OV - Sandbox","OV - Sandbox - Auth"],"description":"Allows you to authenticate as a registered user and grants you access to submit order requests to the API  \"Ordenes de Venta\"","operationId":"SandboxLoginOvUser","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginOv"}}}},"responses":{"200":{"description":"Returns a token to authentication in \"Ordenes de Venta\"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Token"}}}},"400":{"description":"Invalid format in the body","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RequestError"}}}},"404":{"description":"User not found in database","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RequestError"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServerError"}}}}}}},"/sandbox/main/gen-admin-token":{"post":{"tags":["General","Main - Sandbox","Main - Auth - Token","Main - Sandbox - Auth"],"description":"This endpoint allows you to obtain the administrator role through a token, providing you with the ability to make requests to generate access tokens of the main API.","operationId":"SandboxGenAdminTokenMain","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenAdminTokenBody"}}}},"responses":{"200":{"description":"Returns a token to get the admin role on the main API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenAdminTokenResponse"}}}},"400":{"description":"Error on body format","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenericErrorBadRequest"}}}},"401":{"description":"Unauthorized user to generate the token","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenericErrorUnauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenericErrorInternal"}}}}},"security":[{"AuthMasterToken":[]}]}},"/sandbox/main/gen-access-token":{"post":{"tags":["General","Main - Sandbox","Main - Auth - Token","Main - Sandbox - Auth"],"description":"This endpoint allows you to obtain a token through an admin token, allows creating an access token for different API endpoints.","operationId":"SandboxGenAccessTokenMain","requestBody":{"description":"If the role is not admin, a body is not necessary in the request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerateAccessToken"}}}},"responses":{"200":{"description":"Returns a token to get the admin role on the main API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokensSuccessResponse"}}}},"400":{"description":"Invalid format in the body","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenericErrorBadRequest"}}}},"401":{"description":"Unauthorized user to get the token","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenericErrorUnauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenericErrorInternal"}}}}},"security":[{"AuthMasterToken":[]}]}},"/sandbox/main/refresh-access-token":{"post":{"tags":["General","Main - Sandbox","Main - Auth - Token","Main - Sandbox - Auth"],"description":"This endpoint allows you to obtain the permissions through a token, providing you with the ability to make requests to specific endpoints of the main API. The parameters in the body define which endpoints the user, to whom the created token is granted, has access to.","operationId":"SandboxRefreshAccessTokenMain","responses":{"200":{"description":"Returns a token to get the admin role on the main API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokensSuccessResponse"}}}},"400":{"description":"Invalid format in the body","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenericErrorBadRequest"}}}},"401":{"description":"Unauthorized user to get the token","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenericErrorUnauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenericErrorInternal"}}}}},"security":[{"RefreshToken":[]}]}},"/sandbox/ov/users":{"get":{"tags":["General","OV - Users","OV - Sandbox","OV - Sandbox - Users"],"description":"Returns a list of all registered users in the “Ordenes de venta” platform.","operationId":"SandboxGetAllOvUsers","responses":{"200":{"description":"OK, the list is returned","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListOfUsers"}}}},"401":{"description":"Token is required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServerError"}}}}},"security":[{"AccessToken":[]}],"parameters":[{"name":"AuthOvApi","in":"header","required":true,"schema":{"type":"string"},"example":"Bearer token","description":"JWT to authenticate request to \"Ordenes de Venta\""}]},"post":{"tags":["General","OV - Users","OV - Sandbox","OV - Sandbox - Users"],"description":"This endpoint facilitates the registration of a new user within the \"Ordenes de Venta\" platform.","operationId":"SandboxPostOvUser","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostOvUser"}}}},"responses":{"200":{"description":"OK, returns the id of the user that was created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InsertedID"}}}},"400":{"description":"Bad request, error on body format","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RequestError"}}}},"401":{"description":"Unauthorized, token is required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServerError"}}}}},"security":[{"AccessToken":[]}],"parameters":[{"name":"AuthOvApi","in":"header","required":true,"schema":{"type":"string"},"example":"Bearer token","description":"JWT to authenticate request to \"Ordenes de Venta\""}]},"put":{"tags":["General","OV - Users","OV - Sandbox","OV - Sandbox - Users"],"description":"This endpoint allows for the modification of user data within the \"Ordenes de Venta\" platform.","operationId":"SandboxUpdateOvUser","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PutOvUser"}}}},"responses":{"200":{"description":"OK, the user was updated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseSuccessOvPut"}}}},"304":{"description":"User was found but not modified","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RequestError"}}}},"400":{"description":"Bad request, error on body format","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RequestError"}}}},"401":{"description":"Unauthorized, token is required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}}},"404":{"description":"User not found in database","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RequestError"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServerError"}}}}},"security":[{"AccessToken":[]}],"parameters":[{"name":"AuthOvApi","in":"header","required":true,"schema":{"type":"string"},"example":"Bearer token","description":"JWT to authenticate request to \"Ordenes de Venta\""}]}},"/sandbox/ov/users/{id}":{"get":{"tags":["General","OV - Users","OV - Sandbox","OV - Sandbox - Users"],"description":"This endpoint retrieves a user that corresponds to the specified ID provided in the parameters. It allows for targeted access to user information based on the unique identifier supplied in the request.","operationId":"SandboxGetOvUserById","parameters":[{"name":"AuthOvApi","in":"header","required":true,"schema":{"type":"string"},"example":"Bearer token","description":"JWT to authenticate request to \"Ordenes de Venta\""},{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int"},"description":"ID of the wanted user"}],"security":[{"AccessToken":[]}],"responses":{"200":{"description":"OK, the user is returned","content":{"application/json":{"schema":{"$ref":"#/components/schemas/User"}}}},"401":{"description":"Unauthorized, token is required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServerError"}}}}}},"delete":{"tags":["General","OV - Users","OV - Sandbox","OV - Sandbox - Users"],"description":"This endpoint allows for the deletion of a user based on their unique identifier (ID).","operationId":"SandboxDeleteOvUser","parameters":[{"name":"AuthOvApi","in":"header","required":true,"schema":{"type":"string"},"example":"Bearer token","description":"JWT to authenticate request to \"Ordenes de Venta\""},{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int"},"description":"ID of the user to be deleted"}],"responses":{"200":{"description":"OK, the user has been deleted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeletedCount"}}}},"401":{"description":"Unauthorized, token is required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServerError"}}}}},"security":[{"AccessToken":[]}]}},"/sandbox/ov/send-whatsapp":{"post":{"tags":["General","OV - Users","OV - Sandbox","OV - Sandbox - Users"],"description":"This endpoint facilitates sending a whatsapp message to a user through the \"Ordenes de Venta\" platform. The message will be sent to the user's phone number from the \"Ordenes de Venta\" whatsapp bot.","operationId":"SandboxSendOVWhatsapp","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendOVWhatsapp"}}}},"responses":{"200":{"description":"OK, the message was sent","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WuzapiSendTextResponse"}}}},"400":{"description":"Bad request, error on body format","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RequestError"}}}},"401":{"description":"Unauthorized, token is required or invalid","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RequestError"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServerError"}}}}},"security":[{"AccessToken":[]}],"parameters":[{"name":"Wuzapi-Token","in":"header","required":true,"schema":{"type":"string"},"example":"Bearer token","description":"JWT to authenticate request to wuzapi. This token is linked to the whatsapp account of \"Ordenes de Venta\" bot."}]}},"/sandbox/ov/conditions":{"post":{"tags":["General","OV - Conditions","OV - Sandbox","OV - Sandbox - Conditions"],"description":"This endpoint facilitates the registration of a new condition within the \"Ordenes de Venta\" platform.","operationId":"SandboxCreateOvCondition","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateOvCondition"}}}},"responses":{"200":{"description":"OK, returns the id of the user that was created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InsertedIDString"}}}},"400":{"description":"Bad request, error on body format","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RequestError"}}}},"401":{"description":"Unauthorized, token is required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServerError"}}}}},"security":[{"AccessToken":[]}],"parameters":[{"name":"AuthOvApi","in":"header","required":true,"schema":{"type":"string"},"example":"Bearer token","description":"JWT to authenticate request to \"Ordenes de Venta\""}]}},"/sandbox/ov/orders":{"post":{"tags":["General","OV - Orders","OV - Sandbox","OV - Sandbox - Orders"],"description":"This endpoint facilitates the registration of a new order within the \"Ordenes de Venta\" platform.","operationId":"SandboxCreateOvOrder","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateOvOrder"}}}},"responses":{"200":{"description":"OK, returns the id of the order that was created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InsertedIDString"}}}},"400":{"description":"Bad request, error on body format","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RequestError"}}}},"401":{"description":"Unauthorized, token is required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServerError"}}}}},"security":[{"AccessToken":[]}],"parameters":[{"name":"AuthOvApi","in":"header","required":true,"schema":{"type":"string"},"example":"Bearer token","description":"JWT to authenticate request to \"Ordenes de Venta\""}]}},"/sandbox/ov/get-dictionaries":{"post":{"tags":["General","OV - Dictionaries","OV - Sandbox","OV - Sandbox - Dictionaries"],"description":"Allows obtaining one, several, or all dictionaries that provide context to an order based on the parameters passed in the array of strings in the 'dictionaries' property of the body.","operationId":"SandboxGetOvDictionaries","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetOvDictionariesBody"}}}},"responses":{"200":{"description":"OK, returns an array of dictionaries","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetOvDictionariesResponse"}}}},"400":{"description":"Bad request, error on body format","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RequestError"}}}},"401":{"description":"Unauthorized, token is required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServerError"}}}}},"security":[{"AccessToken":[]}],"parameters":[{"name":"AuthOvApi","in":"header","required":true,"schema":{"type":"string"},"example":"Bearer token","description":"JWT to authenticate request to \"Ordenes de Venta\""}]}},"/sandbox/ov/masters/{collection}":{"get":{"tags":["General","OV - Masters","OV - Sandbox","OV - Sandbox - Masters"],"description":"Returns a list of all records related to 'masters' according to the collection passed as params","operationId":"SandboxGetOvMasterByCollection","parameters":[{"name":"collection","in":"path","required":true,"schema":{"type":"string","enum":["CER002","CERoo7","CER225","CER050TC","CCLOCA","CERCANJ","CERCALI"]},"description":"Targeted collection"}],"security":[{"AccessToken":[]}],"responses":{"200":{"description":"OK, the collection is returned","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/CER002Get"},{"$ref":"#/components/schemas/CERoo7Get"},{"$ref":"#/components/schemas/CER225Get"},{"$ref":"#/components/schemas/CER050TC"},{"$ref":"#/components/schemas/CCLOCAGet"},{"$ref":"#/components/schemas/CERCANJGet"},{"$ref":"#/components/schemas/CERCALIGet"}]}}}},"401":{"description":"Unauthorized, token is required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}}},"404":{"description":"Collection not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RequestError"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServerError"}}}}}}}},"components":{"securitySchemes":{"AuthMasterToken":{"type":"http","description":"JWT for authorization to generate admin tokens in the Main API","scheme":"bearer"},"AccessToken":{"type":"http","description":"JWT to authorize access to different endpoints or environments in the Main API","scheme":"bearer"},"RefreshToken":{"type":"http","description":"JWT refresh to authorize access to different endpoints or environments in the Main API","scheme":"bearer"}},"schemas":{"UnauthorizedResponse":{"type":"object","title":"Unauthorized response","description":"User not authorized (missing or invalid token)","properties":{"success":{"type":"boolean","example":false},"error":{"type":"object","properties":{"code":{"type":"integer","example":401},"message":{"type":"string","example":"Missing token"},"details":{"type":"string","example":"Access token is required"}}}}},"RequestError":{"type":"object","title":"Request error","description":"Request rejected + message of error","properties":{"message":{"type":"string","example":"Error message"}}},"ResponseSuccessOvPut":{"type":"object","title":"PUT response","description":"User updated","properties":{"MatchedCount":{"type":"integer","example":1},"ModifiedCount":{"type":"integer","example":1},"UpsertedCount":{"type":"integer","example":0},"UpsertedID":{"type":"integer","example":0}}},"ServerError":{"type":"object","title":"Server error","description":"Internal server error","properties":{"message":{"type":"string","example":"Error message"}}},"LoginOv":{"type":"object","title":"User data","description":"User data being logged in","properties":{"userName":{"type":"string","example":"jhondoe@example.com"}},"required":["userName"]},"PostOvUser":{"type":"object","title":"Post user body","description":"Data of the user to be created","properties":{"name":{"type":"string","example":"John"},"lastname":{"type":"string","example":"Doe"},"email":{"type":"string","example":"jhondoe@example.com"},"phone":{"type":"string","example":"+123456789"},"workunit":{"type":"integer","example":5},"area":{"type":"integer","example":4},"role":{"type":"integer","example":8},"subType":{"type":"integer","example":4},"birthDay":{"type":"string","format":"date","example":"2020-01-01"},"team":{"$ref":"#/components/schemas/Team"}}},"PutOvUser":{"type":"object","title":"Put user body","description":"Data of the user to be updated","properties":{"_id":{"type":"integer","example":2},"data":{"$ref":"#/components/schemas/PostOvUser"}}},"User":{"type":"object","title":"User","description":"A user of \"Ordenes de Venta\"","properties":{"id":{"type":"integer","example":15},"name":{"type":"string","example":"John"},"lastname":{"type":"string","example":"Doe"},"email":{"type":"string","example":"jhondoe@example.com"},"phone":{"type":"string","example":"+123456789"},"workunit":{"type":"integer","example":5},"area":{"type":"integer","example":4},"role":{"type":"integer","example":8},"subType":{"type":"integer","example":4},"birthDay":{"type":"string","format":"date","example":"2020-01-01"},"team":{"$ref":"#/components/schemas/Team"}}},"Team":{"type":"object","title":"Team","description":"A team of \"Ordenes de Venta\"","properties":{"nroTeam":{"type":"integer","example":23},"bossName":{"type":"string","example":"JohnB"},"bossLastName":{"type":"string","example":"DoeB"}}},"GenerateAccessToken":{"type":"object","title":"Generate token body","description":"Parameters of access","properties":{"iss":{"type":"string","example":"Main API admin"},"sub":{"type":"string","example":"User with access"},"sandbox":{"type":"boolean","example":true},"prod":{"type":"boolean","example":true},"getAllOvUsers":{"type":"boolean","example":true},"getOvUserById":{"type":"boolean","example":true},"createOvUser":{"type":"boolean","example":true},"putOvUser":{"type":"boolean","example":true},"deleteOvUser":{"type":"boolean","example":true},"createOvCondition":{"type":"boolean","example":true},"createOvOrder":{"type":"boolean","example":true},"getOvDictionaries":{"type":"boolean","example":true},"getOvMastersByCollection":{"type":"boolean","example":true},"sendWhatsapp":{"type":"boolean","example":false}}},"ListOfUsers":{"type":"array","title":"List of users","description":"A list of users in response","items":{"$ref":"#/components/schemas/User"}},"Token":{"type":"object","title":"Token","description":"Token to auth in API requests","properties":{"token":{"type":"string","example":"Efaji1k6.asPd2.Tnsi8o90"}}},"GenAdminTokenBody":{"type":"object","title":"GenAdminTokenBody","description":"Body of the request to generate admin tokens","properties":{"iss":{"type":"string","example":"Token owner"},"sub":{"type":"string","example":"Main Admin"},"role":{"type":"string","example":null}},"required":["iss","sub","role"]},"InsertedID":{"type":"object","title":"Id integer","description":"Id of the created document","properties":{"InsertedID":{"type":"integer","example":15}}},"InsertedIDString":{"type":"object","title":"Id string","description":"Id of the created document","properties":{"InsertedID":{"type":"string","example":"6534ca7d153b7f6760802df3"}}},"DeletedCount":{"type":"object","title":"Deleted count","description":"The document has been deleted","properties":{"DeletedCount":{"type":"integer","example":1}}},"CreateOvCondition":{"type":"object","title":"Create OV condition body","description":"Body of the request to create a condition in \"Ordenes de Venta\"","properties":{"grouperCode":{"type":"integer","example":12},"dataOfcreation":{"type":"object","properties":{"nameOfcreator":{"type":"string","example":"John Doe"},"dateOfcreation":{"type":"string","example":"2023-11-16"},"hour":{"type":"string","example":"12:00 PM"},"email":{"type":"string","example":"john.doe@example.com"},"teamOfcreator":{"type":"object","properties":{"nroTeam":{"type":"integer","example":23},"bossName":{"type":"string","example":"JohnB"},"bossLastName":{"type":"string","example":"DoeB"}}}},"example":{"nameOfcreator":"John Doe","dateOfcreation":"2023-11-16","hour":"12:00 PM","email":"john.doe@example.com","teamOfcreator":{"nroTeam":23,"bossName":"JohnB","bossLastName":"DoeB"}}},"productName":{"type":"integer","example":4},"price":{"type":"integer","example":100},"typeCoin":{"type":"string","example":"USD"},"typeDolar":{"type":"integer","example":1},"typeBusiness":{"type":"integer","example":2},"status":{"type":"integer","example":1},"quality":{"type":"integer","example":3},"qualityIBM":{"type":"integer","example":4},"pesificacion":{"type":"object","properties":{"startDate":{"type":"string","example":"2023-01-01"},"endDate":{"type":"string","example":"2023-12-31"}},"example":{"startDate":"2023-01-01","endDate":"2023-12-31"}},"harvest":{"type":"string","example":"2023 Harvest"},"priceId":{"type":"integer","example":5},"wayPay":{"type":"object","properties":{"percentage":{"type":"number","example":50},"wayPayName":{"type":"integer","example":1},"days":{"type":"integer","example":30},"isBusinessDays":{"type":"integer","example":1},"expiration":{"type":"string","example":"2024-01-01"},"options":{"type":"integer","example":2}},"example":{"percentage":50,"wayPayName":1,"days":30,"isBusinessDays":1,"expiration":"2024-01-01","options":2}},"observations":{"type":"object","properties":{"isFeatured":{"type":"integer","example":1},"isFixed":{"type":"integer","example":0},"isMessage":{"type":"integer","example":1},"message":{"type":"string","example":"This is a message."},"isBussinesGravanz":{"type":"integer","example":1},"isPort":{"type":"integer","example":0},"buyer":{"type":"integer","example":5}},"example":{"isFeatured":1,"isFixed":0,"isMessage":1,"message":"This is a message.","isBussinesGravanz":1,"isPort":0,"buyer":5}},"placeOfDelivery":{"type":"object","properties":{"zone":{"type":"integer","example":1},"port":{"type":"integer","example":2}},"example":{"zone":1,"port":2}},"deliveryPeriod":{"type":"object","properties":{"startDate":{"type":"string","example":"2023-02-01"},"endDate":{"type":"string","example":"2023-03-01"}},"example":{"startDate":"2023-02-01","endDate":"2023-03-01"}},"businessParticularities":{"type":"object","properties":{"washOut":{"type":"integer","example":1},"collectionClause":{"type":"integer","example":0},"respectVatException":{"type":"integer","example":1},"agreement":{"type":"integer","example":1},"laboratoryAgreement":{"type":"integer","example":0},"sealedToRetrieve":{"type":"integer","example":1},"toWithdraw":{"type":"integer","example":0},"accumulator":{"type":"object","properties":{"isAccumulator":{"type":"integer","example":1},"typeAccumulator":{"type":"integer","example":2}}},"gravanz":{"type":"object","properties":{"isGravanz":{"type":"integer","example":1},"isOwnSensorization":{"type":"integer","example":0},"business":{"type":"string","example":"Business Name"},"selectionStock":{"type":"string","example":"Stock Name"}}},"reduction":{"type":"object","properties":{"percentage":{"type":"number","example":10},"amount":{"type":"integer","example":5},"typeCoin":{"type":"string","example":"USD"}}},"conditional":{"type":"object","properties":{"selection":{"type":"integer","example":1},"strike":{"type":"integer","example":0},"position":{"type":"string","example":"Position Name"}}},"agreedWith":{"type":"object","properties":{"comercialName":{"type":"string","example":"Comercial Name"},"buyer":{"type":"string","example":"Buyer Name"},"responsable":{"type":"string","example":"Responsable Name"}}},"bonification":{"type":"object","properties":{"typeBonification":{"type":"integer","example":2},"startDate":{"type":"string","example":"2023-01-01"},"endDate":{"type":"string","example":"2023-12-31"},"placeOfDelivery":{"type":"integer","example":3},"amount":{"type":"object","properties":{"typeCoin":{"type":"string","example":"USD"},"quantity":{"type":"integer","example":15}}}}},"deliveryInSiloBolsas":{"type":"object","properties":{"quantity":{"type":"integer","example":100},"brand":{"type":"integer","example":4},"size":{"type":"integer","example":2}}},"freightPaidByTheBuyer":{"type":"object","properties":{"isFreightPaid":{"type":"integer","example":1},"isCustomerFreight":{"type":"integer","example":0},"amount":{"type":"object","properties":{"typeCoin":{"type":"string","example":"USD"},"quantity":{"type":"integer","example":20}}},"numberOfDays":{"type":"integer","example":5}}},"deliveriesAtGrassiPlant":{"type":"object","properties":{"placeOfDelivery":{"type":"integer","example":3},"parity":{"type":"object","properties":{"typeCoin":{"type":"string","example":"USD"},"quantity":{"type":"integer","example":10}}},"freight":{"type":"object","properties":{"amount":{"type":"object","properties":{"typeCoin":{"type":"string","example":"USD"},"quantity":{"type":"integer","example":30}}},"description":{"type":"string","example":"Freight Description"}}},"humidity":{"type":"object","properties":{"isPortFee":{"type":"integer","example":1},"percentage":{"type":"number","example":15.5},"reductionPoint":{"type":"integer","example":5},"reductionAmount":{"type":"integer","example":3},"amount":{"type":"object","properties":{"typeCoin":{"type":"string","example":"USD"},"quantity":{"type":"integer","example":5}}}}},"commission":{"type":"object","properties":{"isHoard":{"type":"integer","example":1},"percentage":{"type":"number","example":8.5}}},"volatileWaste":{"type":"object","properties":{"percentage":{"type":"number","example":5.5},"productDescription":{"type":"string","example":"Volatile Waste Description"}}}}},"guaranteedPAF":{"type":"boolean","example":true},"subdivisionSyngenta":{"type":"integer","example":2},"isAVC":{"type":"integer","example":1},"financialAdvance":{"type":"object","properties":{"VAT":{"type":"integer","example":21},"rate":{"type":"integer","example":10},"amountRate":{"type":"integer","example":50},"percentageTypeToPay":{"type":"integer","example":1},"percentagePayable":{"type":"number","example":10}}}}},"qualityParticularities":{"type":"object","properties":{"volatilewaste":{"type":"integer","example":1},"hectoliterWeinght":{"type":"object","properties":{"receiptTolerance":{"type":"object"}}},"greenGrains":{"type":"object","properties":{"receiptTolerance":{"type":"object"},"reduction":{"type":"object","properties":{"percentage":{"type":"number","example":2.5},"amount":{"type":"integer","example":10},"typeCoin":{"type":"string","example":"USD"}}}}},"demageGrains":{"type":"object","properties":{"receiptTolerance":{"type":"object"},"reduction":{"type":"object","properties":{"percentage":{"type":"number","example":1.5},"amount":{"type":"integer","example":5},"typeCoin":{"type":"string","example":"USD"}}}}},"proteinContent":{"type":"object","properties":{"receiptTolerance":{"type":"object"}}},"article12":{"type":"object","properties":{"fusariumFree":{"type":"object"},"w":{"type":"object"},"fallingNumber":{"type":"object"},"gluten":{"type":"object"},"bonus":{"type":"object","properties":{"range":{"type":"object"},"amount":{"type":"object","properties":{"typeCoin":{"type":"string","example":"USD"},"quantity":{"type":"integer","example":2000}}}}},"hectoliterWeightPerGrain":{"type":"object"}}},"ph":{"type":"object"}}},"conditionType":{"type":"integer","example":2},"indicators":{"type":"array","items":{"type":"object","properties":{"percentageProduct":{"type":"number","example":15},"indicatorName":{"type":"integer","example":1},"max":{"type":"integer","example":100},"location":{"type":"integer","example":2},"proporcionality":{"type":"boolean","example":true},"min":{"type":"integer","example":0},"enabled":{"type":"boolean","example":true},"monthAndYear":{"type":"object","properties":{"isPartial":{"type":"boolean","example":false},"month":{"type":"integer","example":11},"year":{"type":"integer","example":2023}}},"propQuantDivs":{"type":"integer","example":5},"propMinOrMax":{"type":"integer","example":1},"propPeriod":{"type":"integer","example":3},"quality":{"type":"integer","example":3},"reduction":{"type":"object","properties":{"value":{"type":"integer","example":5},"type":{"type":"string","example":"reduction type"},"typeCoin":{"type":"string","example":"USD"}}},"product":{"type":"integer","example":5},"fixationPeriod":{"type":"object","properties":{"startDate":{"type":"string","example":"26-11-2023"},"endDate":{"type":"string","example":"27-11-2023"}}},"bonification":{"type":"object","properties":{"value":{"type":"integer","example":5},"type":{"type":"string","example":"reduction type"},"typeCoin":{"type":"string","example":"USD"}}}}}}}},"Order":{"type":"object","title":"Order","description":"A order of \"Ordenes de venta\"","properties":{"ID":{"type":"string","description":"This ID is automatically asigned by MongoDB","example":"63dc09a2e856bb387eef2f6a"},"contractNumber":{"type":"integer","example":123495},"statusOrder":{"type":"integer","example":8},"message":{"type":"string","example":"Message example"},"tons":{"type":"number","format":"float64","example":31.21},"broke":{"type":"integer","example":1},"howSell":{"type":"integer","example":3},"price":{"$ref":"#/components/schemas/Price"},"buyer":{"$ref":"#/components/schemas/Buyer"},"quotas":{"type":"string","example":"[]"},"commision":{"$ref":"#/components/schemas/Commision"},"sellerData":{"$ref":"#/components/schemas/SellerData"},"placeOfOrigin":{"$ref":"#/components/schemas/PlaceOfOrigin"},"dataOfcreation":{"$ref":"#/components/schemas/DataOfCreation"},"orderDestination":{"$ref":"#/components/schemas/OrderDestination"},"exchange":{"$ref":"#/components/schemas/Exchange"},"obsParam":{"type":"string","example":"--"},"createdAt":{"type":"string","example":"2023-06-23"},"idOrder":{"type":"integer","example":1},"hour":{"type":"string","example":"12:54"},"updateAt":{"type":"string","example":"2023-06-23"},"idExchange":{"type":"string","example":"63dd4d513f30c6ce493c36f"},"arrayMods":{"type":"array","items":{"type":"object"}}}},"Price":{"type":"object","title":"Price","description":"A price of \"Ordenes de venta\"","properties":{"ID":{"type":"string","example":"63fe32362771a08be97fcee2","description":"This ID is automatically asigned by MongoDB"},"createdAt":{"type":"string","example":"2023-02-28"},"grouperCode":{"type":"integer","example":1},"dataOfcreation":{"$ref":"#/components/schemas/DataOfCreation"},"productName":{"type":"integer","example":2},"price":{"type":"number","format":"float64","example":250.23},"typeCoin":{"type":"string","example":"USD"},"typeDolar":{"type":"integer","example":1},"typeBusiness":{"type":"integer","example":1},"status":{"type":"integer","example":1},"quality":{"type":"integer","example":3},"qualityIBM":{"type":"integer","example":3},"bonus":{"type":"number","format":"float64","example":1.1},"reduction":{"type":"number","format":"float64","example":1.1},"pesificacion":{"$ref":"#/components/schemas/RangeDate"},"harvest":{"type":"string","example":"2022 - 2023"},"hour":{"type":"string","example":"16:23"},"priceId":{"type":"integer","example":22},"dateOfcreation":{"type":"integer","example":"28-2-2023"},"wayPay":{"$ref":"#/components/schemas/WayPay"},"observations":{"$ref":"#/components/schemas/Observations"},"placeOfDelivery":{"$ref":"#/components/schemas/PlaceOfDelivery"},"businessParticularities":{"$ref":"#/components/schemas/BusinessParticularities"},"qualityParticularities":{"$ref":"#/components/schemas/QualityParticularities"},"updateAt":{"type":"string","example":"2023-06-23"},"conditionType":{"type":"integer","example":1},"indicators":{"type":"array","items":{"$ref":"#/components/schemas/Indicator"}}}},"RangeDate":{"type":"object","title":"RangeDate","description":"A rangeDate of \"Ordenes de venta\"","properties":{"startDate":{"type":"string","example":"26-11-2023"},"endDate":{"type":"string","example":"27-11-2023"}}},"WayPay":{"type":"object","title":"WayPay","description":"A wayPay of \"Ordenes de venta\"","properties":{"percentage":{"type":"number","example":50},"wayPayName":{"type":"integer","example":1},"days":{"type":"integer","example":30},"isBusinessDays":{"type":"integer","example":1},"expiration":{"type":"string","example":"2024-01-01"},"options":{"type":"integer","example":2}}},"Observations":{"type":"object","title":"Observations","description":"A observations of \"Ordenes de venta\"","properties":{"isFeatured":{"type":"integer","example":1},"isFixed":{"type":"integer","example":0},"isMessage":{"type":"integer","example":1},"message":{"type":"string","example":"This is a message."},"isBussinesGravanz":{"type":"integer","example":1},"isPort":{"type":"integer","example":0},"buyer":{"type":"integer","example":5}}},"PlaceOfDelivery":{"type":"object","title":"PlaceOfDelivery","description":"A placeOfDelivery of \"Ordenes de venta\"","properties":{"zone":{"type":"integer","example":1},"port":{"type":"integer","example":2}}},"DeliveryPeriod":{"type":"object","title":"DeliveryPeriod","description":"A DeliveryPeriod of \"Ordenes de venta\"","properties":{"startDate":{"type":"string","example":"28-2-2023"},"endDate":{"type":"string","example":"15-3-2023"},"validFor":{"type":"array","items":{"$ref":"#/components/schemas/RangeDate"}}}},"BusinessParticularities":{"type":"object","title":"BusinessParticularities","description":"A businessParticularities of \"Ordenes de venta\"","properties":{"washOut":{"type":"integer","example":1},"collectionClause":{"type":"integer","example":0},"respectVatException":{"type":"integer","example":1},"agreement":{"type":"integer","example":1},"laboratoryAgreement":{"type":"integer","example":0},"sealedToRetrieve":{"type":"integer","example":1},"toWithdraw":{"type":"integer","example":0},"accumulator":{"$ref":"#/components/schemas/ACCUMULATOR"},"gravanz":{"$ref":"#/components/schemas/GRAVANZ"},"reduction":{"$ref":"#/components/schemas/REDUCTION"},"conditional":{"$ref":"#/components/schemas/CONDITIONAL"},"agreedWith":{"$ref":"#/components/schemas/AGREEDWITH"},"bonification":{"$ref":"#/components/schemas/BONIFICATION"},"deliveryInSiloBolsas":{"$ref":"#/components/schemas/SILOBOLSAS"},"freightPaidByTheBuyer":{"$ref":"#/components/schemas/FREIGHTPAID"},"deliveriesAtGrassiPlant":{"$ref":"#/components/schemas/GRASSIPLANTS"},"guaranteedPAF":{"type":"boolean","example":true},"subdivisionSyngenta":{"type":"integer","example":2},"isAVC":{"type":"integer","example":1},"financialAdvance":{"$ref":"#/components/schemas/FinancialAdvance"},"campus":{"type":"string","example":"Campus example"},"nutrienAgreement":{"type":"boolean","example":true},"nroBiling":{"type":"string","example":"1243jn324"}}},"QualityParticularities":{"type":"object","title":"QualityParticularities","description":"A QualityParticularities of \"Ordenes de Venta\"","properties":{"volatilewaste":{"type":"integer","example":1},"productVariety":{"type":"number","format":"float64","example":1.1},"odorFree":{"type":"boolean","example":true},"toxinsFree":{"type":"number","format":"float64","example":1.1},"hectoliterWeinght":{"$ref":"#/components/schemas/GRAINS"},"greenGrains":{"$ref":"#/components/schemas/GRAINS"},"demageGrains":{"$ref":"#/components/schemas/GRAINS"},"proteinContent":{"$ref":"#/components/schemas/PROTEINCONTENT"},"article12":{"$ref":"#/components/schemas/ARTICLETWELVE"},"ph":{"$ref":"#/components/schemas/RANGE"}}},"HUMIDITYPQ":{"type":"object","title":"HUMIDITYPQ","description":"A HUMIDITYPQ of \"Ordenes de Venta\"","properties":{"receiptTolerance":{"$ref":"#/components/schemas/RANGE"},"dryingPoints":{"type":"integer","example":1.1},"pointsSpender":{"type":"integer","example":1}}},"GRAINS":{"type":"object","title":"GRAINS","description":"A GRAINS of \"Ordenes de Venta\"","properties":{"receiptTolerance":{"$ref":"#/components/schemas/RANGE"},"reduction":{"$ref":"#/components/schemas/RANGE"},"percentageReduction":{"type":"number","format":"float64","example":1.1}}},"PROTEINCONTENT":{"type":"object","title":"PROTEINCONTENT","description":"A PROTEINCONTENT","properties":{"bonusProtein":{"type":"boolean","example":true},"lowerProtein":{"type":"boolean","example":true},"receiptTolerance":{"$ref":"#/components/schemas/RANGE"}}},"ARTICLETWELVE":{"type":"object","title":"ARTICLETWELVE","description":"A ARTICLETWELVE of \"Ordenes de Venta\"","properties":{"fusariumFree":{"$ref":"#/components/schemas/RANGE"},"w":{"$ref":"#/components/schemas/RANGE"},"fallingNumber":{"$ref":"#/components/schemas/RANGE"},"gluten":{"$ref":"#/components/schemas/RANGE"},"bonus":{"$ref":"#/components/schemas/BONIFICATIONPQ"},"hectoliterWeightPerGrain":{"$ref":"#/components/schemas/RANGE"},"gmFree":{"type":"boolean","example":true}}},"BONIFICATIONPQ":{"type":"object","title":"BONIFICATIONPQ","description":"A BONIFICATIONPQ of \"Ordenes de Venta\"","properties":{"range":{"$ref":"#/components/schemas/RANGE"},"amount":{"$ref":"#/components/schemas/AMOUNT"}}},"RANGE":{"type":"object","title":"RANGE","description":"A RANGE of \"Ordenes de Venta\"","properties":{"start":{"type":"integer","example":1},"final":{"type":"integer","example":1}}},"ACCUMULATOR":{"type":"object","title":"ACCUMULATOR","description":"A ACCUMULATOR of \"Ordenes de Venta\"","properties":{"isAccumulator":{"type":"integer","example":1},"typeAccumulator":{"type":"integer","example":1}}},"GRAVANZ":{"type":"object","title":"GRAVANZ","description":"A GRAVANZ of \"Ordenes de Venta\"","properties":{"isGravanz":{"type":"integer","example":1},"isOwnSensorization":{"type":"integer","example":0},"business":{"type":"string","example":"Business Name"},"selectionStock":{"type":"string","example":"Stock Name"}}},"REDUCTION":{"type":"object","title":"REDUCTION","description":"A REDUCTION of \"Ordenes de venta\"","properties":{"percentage":{"type":"number","format":"float64","example":10.1},"amount":{"type":"number","format":"float64","example":5.1},"typeCoin":{"type":"string","example":"USD"}}},"CONDITIONAL":{"type":"object","title":"CONDITIONAL","description":"A CONDITIONAL of \"Ordenes de Venta\"","properties":{"selection":{"type":"integer","example":1},"strike":{"type":"integer","example":0},"position":{"type":"string","example":"Position Name"}}},"AGREEDWITH":{"type":"object","title":"AGREEDWITH","description":"A AGREEDWITH of \"Ordenes de Venta\"","properties":{"comercialName":{"type":"string","example":"Comercial Name"},"buyer":{"type":"string","example":"Buyer Name"},"responsable":{"type":"string","example":"Responsable Name"}}},"BONIFICATION":{"type":"object","title":"BONIFICATION","description":"A BONIFICATION of \"Ordenes de Venta\"","properties":{"typeBonification":{"type":"integer","example":2},"startDate":{"type":"string","example":"2023-01-01"},"endDate":{"type":"string","example":"2023-12-31"},"placeOfDelivery":{"type":"integer","example":3},"amount":{"$ref":"#/components/schemas/AMOUNT"}}},"SILOBOLSAS":{"type":"object","title":"SILOBOLSAS","description":"A SILOBOLSAS of \"Ordenes de Venta\"","properties":{"quantity":{"type":"integer","example":100},"brand":{"type":"integer","example":4},"size":{"type":"integer","example":2}}},"FREIGHTPAID":{"type":"object","title":"FREIGHTPAID","description":"A FREIGHTPAID of \"Ordenes de venta\"","properties":{"isFreightPaid":{"type":"integer","example":1},"isCustomerFreight":{"type":"integer","example":0},"amount":{"$ref":"#/components/schemas/AMOUNT"},"numberOfDays":{"type":"integer","example":5}}},"GRASSIPLANTS":{"type":"object","title":"GRASSIPLANTS","description":"A GRASSIPLANTS of \"Ordenes de venta\"","properties":{"placeOfDelivery":{"type":"integer","example":3},"parity":{"$ref":"#/components/schemas/AMOUNT"},"freight":{"$ref":"#/components/schemas/FREIGHT"},"humidity":{"$ref":"#/components/schemas/HUMIDITY"},"commission":{"$ref":"#/components/schemas/COMMISSION"},"volatilewaste":{"$ref":"#/components/schemas/VOLATILEWASTE"}}},"FREIGHT":{"type":"object","title":"FREIGHT","description":"A FREIGHT of \"Ordenes de Venta\"","properties":{"amount":{"$ref":"#/components/schemas/AMOUNT"},"description":{"type":"string","example":"Freight Description"}}},"HUMIDITY":{"type":"object","title":"HUMIDITY","description":"A HUMIDITY of \"Ordenes de Venta\"","properties":{"isPortFee":{"type":"integer","example":1},"percentage":{"type":"number","format":"float64","example":15.5},"reductionPoint":{"type":"integer","example":5},"reductionAmount":{"type":"integer","example":3},"amount":{"$ref":"#/components/schemas/AMOUNT"}}},"COMMISSION":{"type":"object","title":"COMMISSION","description":"A COMISSION of \"Ordenes de Venta\"","properties":{"isHoard":{"type":"integer","example":1},"percentage":{"type":"number","format":"float64","example":1.1}}},"VOLATILEWASTE":{"type":"object","title":"VOLATILEWASTE","description":"A VOLATILEWASTE of \"Ordenes de Venta\"","properties":{"percentage":{"type":"number","format":"float64","example":1.1},"productDescription":{"type":"string","example":"A generic description"}}},"AMOUNT":{"type":"object","title":"AMOUNT","description":"A AMOUNT of \"Ordenes de Venta\"","properties":{"typeCoin":{"type":"string","example":"USD"},"quantity":{"type":"integer","example":10}}},"FinancialAdvance":{"type":"object","title":"FinancialAdvance","description":"A financialAdvance of \"Ordenes de venta\"","properties":{"VAT":{"type":"integer","example":21},"rate":{"type":"integer","example":10},"amountRate":{"type":"integer","example":50},"percentageTypeToPay":{"type":"integer","example":1},"percentagePayable":{"type":"number","example":10}}},"Buyer":{"type":"object","title":"Buyer","description":"A buyer of \"Ordenes de venta\"","properties":{"onlySell":{"type":"array","items":{}},"notSell":{"type":"array","items":{}}}},"Commision":{"type":"object","title":"Commision","description":"A commision of \"Ordenes de venta\"","properties":{"seller":{"type":"number","format":"float64","example":10},"buyer":{"type":"number","format":"float64","example":10}}},"SellerData":{"type":"object","title":"SellerData","description":"A SellerData of \"Ordenes de Venta\"","properties":{"sucG":{"type":"integer","example":1},"codeS":{"type":"integer","example":1}}},"PlaceOfOrigin":{"type":"object","title":"PlaceOfOrigin","description":"A PlaceOfOrigin of \"Ordenes de venta\"","properties":{"town":{"type":"integer","example":1},"province":{"type":"integer","example":1},"afip":{"type":"integer","example":12723}}},"DataOfCreation":{"type":"object","title":"DataOfCreation","description":"A DataOfCreation of \"Ordenes de venta\"","properties":{"nameOfcreator":{"type":"string","example":"John Doe"},"dateOfcreation":{"type":"string","example":"2023-11-16"},"hour":{"type":"string","example":"12:00 PM"},"email":{"type":"string","example":"john.doe@example.com"},"teamOfcreator":{"$ref":"#/components/schemas/Team"}}},"OrderDestination":{"type":"object","title":"OrderDestination","description":"A OrderDestination of \"Ordenes de venta\"","properties":{"orderType":{"type":"integer","example":2},"orderCategory":{"type":"integer","example":3},"orderOrigin":{"type":"integer","example":1}}},"Exchange":{"type":"object","title":"Exchange","description":"A exchange of \"Ordenes de venta\"","properties":{"tons":{"type":"number","format":"float64","example":123.12},"status":{"type":"integer","example":1},"buyer":{"$ref":"#/components/schemas/SellerData"},"howSell":{"type":"integer","example":1},"placeOfOrigin":{"$ref":"#/components/schemas/PlaceOfOrigin"},"agreedDiscount":{"type":"number","format":"float64","example":1.1},"idMother":{"type":"string","example":"avc2kg320"},"price":{"type":"number","format":"float64","example":1.1},"typeCoin":{"type":"string","example":"USD"},"priceDiscount":{"type":"number","format":"float64","example":1.1},"contractNumber":{"type":"integer","example":11},"codeWayPay":{"type":"integer","example":11},"daysWayPay":{"type":"integer","example":1},"amountB":{"type":"number","format":"float64","example":1.1},"percentageB":{"type":"number","format":"float64","example":1.1},"isMotherCounterpart":{"type":"integer","example":1}}},"Indicator":{"type":"object","properties":{"percentageProduct":{"type":"number","example":15},"indicatorName":{"type":"integer","example":1},"max":{"type":"integer","example":100},"location":{"type":"integer","example":2},"proporcionality":{"type":"boolean","example":true},"min":{"type":"integer","example":0},"enabled":{"type":"boolean","example":true},"monthAndYear":{"type":"object","properties":{"isPartial":{"type":"boolean","example":false},"month":{"type":"integer","example":11},"year":{"type":"integer","example":2023}}},"propQuantDivs":{"type":"integer","example":5},"propMinOrMax":{"type":"integer","example":1},"propPeriod":{"type":"integer","example":3},"quality":{"type":"integer","example":3},"reduction":{"type":"object","properties":{"value":{"type":"integer","example":5},"type":{"type":"string","example":"reduction type"},"typeCoin":{"type":"string","example":"USD"}}},"product":{"type":"integer","example":5},"fixationPeriod":{"type":"object","properties":{"startDate":{"type":"string","example":"26-11-2023"},"endDate":{"type":"string","example":"27-11-2023"}}},"bonification":{"type":"object","properties":{"value":{"type":"integer","example":5},"type":{"type":"string","example":"reduction type"},"typeCoin":{"type":"string","example":"USD"}}}}},"Mod":{"type":"object","title":"Mod","description":"A mod of \"Ordenes de venta\"","properties":{"fields":{"type":"string"},"value":{"type":"string"}}},"CreateOvOrder":{"type":"object","title":"Create OV order body","description":"Body of the request to create a order in \"Ordenes de Venta\"","properties":{"contractNumber":{"type":"integer","example":2},"statusOrder":{"type":"integer","example":1},"message":{"type":"string","example":"This is a message."},"tons":{"type":"number","format":"float64","example":200},"broke":{"type":"integer","example":1},"howSell":{"type":"integer","example":1},"price":{"$ref":"#/components/schemas/CreateOvCondition"},"buyer":{"type":"object","properties":{"onlySell":{"type":"array","items":{}},"notSell":{"type":"array","items":{}}}},"quotas":{"type":"string","example":"[]"},"commision":{"type":"object","properties":{"seller":{"type":"number","format":"float64","example":10},"buyer":{"type":"number","format":"float64","example":10}}},"sellerData":{"type":"object","properties":{"sucG":{"type":"integer","example":1},"codeS":{"type":"integer","example":1}}},"placeOfOrigin":{"type":"object","properties":{"town":{"type":"integer","example":1},"province":{"type":"integer","example":1},"afip":{"type":"integer","example":12723}}},"dataOfcreation":{"type":"object","properties":{"nameOfcreator":{"type":"string","example":"John Doe"},"dateOfcreation":{"type":"string","example":"2023-11-16"},"hour":{"type":"string","example":"12:00 PM"},"email":{"type":"string","example":"john.doe@example.com"},"teamOfcreator":{"type":"object","properties":{"nroTeam":{"type":"integer","example":23},"bossName":{"type":"string","example":"JohnB"},"bossLastName":{"type":"string","example":"DoeB"}}}}},"orderDestination":{"type":"object","properties":{"orderType":{"type":"integer","example":2},"orderCategory":{"type":"integer","example":3},"orderOrigin":{"type":"integer","example":1}}},"exchange":{"type":"object","properties":{"buyer":{"type":"object","example":{}},"placeOfOrigin":{"type":"object","example":{}}}},"idExchange":{"type":"string","example":"656a86567d975a7792f6"},"obsParam":{"type":"string","example":"Parameter"}}},"GetOvDictionariesBody":{"type":"object","title":"Body to Get Dictionaries","description":"Body of the request to get dictionaries","properties":{"dictionaries":{"type":"array","items":{"type":"string","enum":["all","quality","product","businessType","salesMethod","brokerage","paymentMethod","currencyType","originLocation","deliveryLocation"],"description":"- `all`: This parameter must be in the position 0 in the array if you want to get all the dictionaries\n- `quality`: Get 'quality' dictionary.\n- `product`: Get 'product' dictionary.\n- `businessType`: Get 'businessType' dictionary.\n- `salesMethod`: Get 'salesMethod' dictionary.\n- `brokerage`: Get 'brokerage' dictionary.\n- `paymentMethod`: Get 'paymentMethod' dictionary.\n- `currencyType`: Get 'currencyType' dictionary.\n- `originLocation`: Get 'originLocation' dictionary.\n- `deliveryLocation`: Get 'deliveryLocation' dictionary.\n"}}}},"GetOvDictionariesResponse":{"type":"object","title":"Response of Get Dictionaries","description":"Body of the response to get dictionaries","properties":{"quality":{"type":"object"},"product":{"type":"object"},"businessType":{"type":"object"},"salesMethod":{"type":"object"},"brokerage":{"type":"object"},"paymentMethod":{"type":"object"},"currencyType":{"type":"object"},"originLocation":{"type":"object"},"deliveryLocation":{"type":"object"}}},"CER002Get":{"type":"object","title":"Get CER002 response","description":"CER002 master documents","properties":{"cgoProv":{"type":"integer","example":1},"createdAt":{"type":"string","example":"01-01-2023"},"localidad":{"type":"string","example":"CABA"},"nombre":{"type":"string","example":"Name SA"},"status":{"type":"string","example":"A"},"sucProd":{"type":"integer","example":1},"email":{"type":"string","example":"jhondoe@example.com"}}},"CERoo7Get":{"type":"object","title":"Get CERoo7 response","description":"CERoo7 master documents","properties":{"nombre":{"type":"string","example":"Name SA"},"createdAt":{"type":"string","example":"01-01-2023"},"status":{"type":"string","example":"A"}}},"CER225Get":{"type":"object","title":"Get CER225 response","description":"CER225 master documents","properties":{"product":{"type":"integer","example":0},"placeOfDelivery":{"type":"integer","example":0},"comprador":{"type":"integer","example":0},"createdAt":{"type":"string","example":"01-01-2023"},"status":{"type":"string","example":"A"},"percentage":{"type":"number","format":"float","example":0.05},"tipoCom":{"type":"string","example":"C"},"unidadDeNegocio":{"type":"string","example":"AC"},"vendedor":{"type":"integer","example":0}}},"CER050TC":{"type":"object","title":"Get CER050TC response","description":"CER050TC master documents","properties":{"_id":{"type":"integer","example":0},"tipoNeg":{"type":"string","example":"C"},"comprador":{"type":"integer","example":0},"descPrecio":{"type":"string","example":"S"},"descConv":{"type":"string","example":"S"},"pago":{"type":"string","example":"S"},"diasPago":{"type":"string","example":"2"},"createdAt":{"type":"string","example":"01-01-2023"},"status":{"type":"string","example":"A"}}},"CCLOCAGet":{"type":"object","title":"Get CCLOCA response","description":"CCLOCA master documents","properties":{"_id":{"type":"integer","example":0},"createdAt":{"type":"string","example":"01-01-2023"},"descripcion":{"type":"string","example":"Santa Fe"},"insertid":{"type":"string","example":"Consultores"},"provincia":{"type":"string","example":"Santa FE"},"status":{"type":"string","example":"A"}}},"CERCANJGet":{"type":"object","title":"Get CERCANJ response","description":"CERCANJ master documents","properties":{"cgoSeller":{"type":"integer","example":1},"createdAt":{"type":"string","example":"01-01-2023"},"status":{"type":"string","example":"A"}}},"CERCALIGet":{"type":"object","title":"Get CERCALI response","description":"CERCALI master documents","properties":{"createdAt":{"type":"string","example":"01-01-2023"},"nombre":{"type":"string","example":"Name SA"},"status":{"type":"string","example":"A"}}},"SendOVWhatsapp":{"type":"object","title":"Post OV Send Whatsapp","description":"Data of the message","properties":{"phone":{"type":"string","description":"Phone number of the user. The format must be: country code + area code + phone number","example":"54912345678910"},"body":{"type":"string","description":"Text of the message","example":"Hello test"}}},"WuzapiSendTextResponse":{"type":"object","title":"Response Wuzapi Send Text","description":"Response of the Wuzapi when text was sent","properties":{"code":{"type":"integer","example":200},"data":{"type":"object","properties":{"Details":{"type":"string","example":"Sent"},"Id":{"type":"string","example":"3EB0B2CE573DE56D5F5C"},"Timestamp":{"type":"string","example":"2023-12-22T15:51:47Z"}}},"success":{"type":"boolean","example":true}}},"JdeBadRequest":{"type":"object","title":"Bad request response","description":"Response of the JDE when bad request was sent","properties":{"status":{"type":"integer","example":400},"message":{"type":"string","example":"Error parsing the date"}}},"JdeUnauthorizedResponse":{"type":"object","title":"Unauthorized error","description":"Response when has an error in the token","properties":{"status":{"type":"integer","example":401},"message":{"type":"string","example":"Access token error"}}},"JdeSuccessResponse":{"type":"object","title":"Success response","description":"Response when the request was successful","properties":{"status":{"type":"integer","example":200},"message":{"type":"string","example":"request sent to IBM"},"data":{"type":"string","example":"data sent to IBM"}}},"IbmData":{"type":"object","title":"Get IBM data response","description":"Simulated data from the table","properties":{"status":{"type":"integer","example":200},"message":{"type":"string","example":"request successful"},"data":{"type":"array","title":"IbmData","description":"Simulated data from the table","items":{"type":"object","description":"Simulated register from the table","properties":{"FEC_COMP":{"type":"string","example":"30/12/2023"},"UNIDAD_FAC":{"type":"integer","example":2},"LETRA":{"type":"string","example":"A"},"NRO_COMPROBANTE":{"type":"integer","example":3130550},"FECHA_VENCIMIENTO":{"type":"string","example":20240105},"COD_DGI":{"type":"integer","example":3},"Por_Cuenta_Nombre":{"type":"string","example":"Terceros"},"PTO_VENTA":{"type":"integer","example":777},"CONTRATO":{"type":"integer","example":217694},"VENDEDOR":{"type":"integer","example":4252},"COMPRADOR":{"type":"integer","example":722},"IMPORTE_NETO":{"type":"string","example":"$ 68.307.975,06"},"IMPORTE_GRAVADO":{"type":"string","example":"$ 63.255.483,09"},"IMPORTE_IVA_ALI1":{"type":"string","example":"$ 6.641.825,72"},"ALIC1_IVA":{"type":"number","example":10.5},"ALIC2_IVA":{"type":"number","example":5.25},"COD_MONEDA":{"type":"integer","example":1},"Año":{"type":"integer","example":2023},"IMPORTE_PERCEP":{"type":"number","example":0},"Tn Fact":{"type":"number","example":216.16},"DESC_CEREAL_F":{"type":"string","example":"SOJA"}}}}}},"IbmDataWithCodeAfip":{"type":"array","title":"IbmDataWithCode","description":"Simulated data to the table","items":{"type":"object","description":"Simulated register to the table","properties":{"FEC_COMP":{"type":"string","example":"30/12/2023"},"UNIDAD_FAC":{"type":"integer","example":2},"LETRA":{"type":"string","example":"A"},"NRO_COMPROBANTE":{"type":"integer","example":3130550},"FECHA_VENCIMIENTO":{"type":"string","example":20240105},"COD_DGI":{"type":"integer","example":3},"Por_Cuenta_Nombre":{"type":"string","example":"Terceros"},"PTO_VENTA":{"type":"integer","example":777},"CONTRATO":{"type":"integer","example":217694},"VENDEDOR":{"type":"integer","example":4252},"COMPRADOR":{"type":"integer","example":722},"IMPORTE_NETO":{"type":"string","example":"$ 68.307.975,06"},"IMPORTE_GRAVADO":{"type":"string","example":"$ 63.255.483,09"},"IMPORTE_IVA_ALI1":{"type":"string","example":"$ 6.641.825,72"},"ALIC1_IVA":{"type":"number","example":10.5},"ALIC2_IVA":{"type":"number","example":5.25},"COD_MONEDA":{"type":"integer","example":1},"Año":{"type":"integer","example":2023},"IMPORTE_PERCEP":{"type":"number","example":0},"Tn Fact":{"type":"number","example":216.16},"DESC_CEREAL_F":{"type":"string","example":"SOJA"},"CodAfip":{"type":"string","example":"CAE"}}}},"InformCoeReq":{"type":"object","properties":{"VR01":{"type":"integer","format":"int64","example":123456789012345},"num_coe":{"type":"integer","format":"int64","example":330187654323},"fecha_coe":{"type":"integer","description":"Fecha en formato YYYYMMDD","example":20241226},"centroEmisor":{"type":"integer","example":1234},"nroOrden":{"type":"integer","example":12345678},"fechaInterfaz":{"type":"integer","description":"Fecha de interfaz en formato YYYYMMDD","example":20241226},"horaInterfaz":{"type":"integer","description":"Hora en formato HHMMSS","example":111414},"holdeo":{"type":"string","example":"N "},"fechaHoldeo":{"type":"integer","description":"Fecha de holdeo en formato YYYYMMDD","example":20250217},"motivoHoldeo":{"type":"string","example":"PRU                           "},"importe_bruto":{"type":"number","format":"double","example":1.23456789012336E12},"importe_neto":{"type":"number","format":"double","example":1.23456789012336E12},"importe_gravado":{"type":"number","format":"double","example":1.23456789012336E12},"importe_exento":{"type":"number","format":"double","example":1.23456789012336E12},"importe_iva":{"type":"number","format":"double","example":1.23456789012336E12},"fechaComprobante":{"type":"integer","description":"Fecha de comprobante en formato YYYYMMDD","example":20250527},"fechaVencimiento":{"type":"integer","description":"Fecha de vencimiento en formato YYYYMMDD","example":20250626},"codAfip":{"type":"string","example":"F2"},"fechaCobranza":{"type":"integer","description":"Fecha de cobranza en formato YYYYMMDD","example":20250626},"detalles_impuestos":{"type":"array","items":{"type":"object","properties":{"cod_impositivo":{"type":"string","example":"IVA105A   "},"desc_cod_impositivo":{"type":"string","example":"Iva Debito Fiscal 10,5 %      "},"taxable":{"type":"string","example":"N"},"imp_impositivo_mon_domestica":{"type":"number","format":"double","example":1.23456789012336E12},"imp_impositivo_mon_foranea":{"type":"number","format":"double","example":1.23456789012336E12},"porcentaje_impositivo":{"type":"number","format":"double","example":1234.1234},"agente_Percepcion":{"type":"string","description":"Agente de percepción (Char 10). Valores posibles: Comprador/Vendedor/Emisor","example":"Comprador"}}}},"detalles_articulos":{"type":"array","items":{"type":"object","properties":{"articulo":{"type":"string","example":"2024011                  "},"descripcion1":{"type":"string","example":"0                             "},"descripcion2":{"type":"string","example":"                              "},"cantidad":{"type":"number","format":"double","example":1.23456789012123E11},"precio_unitario":{"type":"number","format":"double","example":1.23456789012336E12},"importe_total":{"type":"number","format":"double","example":1.23456789012336E12}}}}}},"InformCaeReq":{"type":"object","properties":{"VR01":{"type":"integer","format":"int64","example":123456789012345},"num_cae":{"type":"integer","format":"int64","description":"CAE de 14 dígitos","example":33018765432398},"fecha_cae":{"type":"integer","description":"Fecha en formato YYYYMMDD","example":20241226},"centroEmisor":{"type":"string","example":"12345"},"letra":{"type":"string","example":"A"},"nroComprobante":{"type":"integer","example":87654321},"nroOrdenArca":{"type":"integer","example":12345678},"fechaInterfaz":{"type":"integer","description":"Fecha de interfaz en formato YYYYMMDD","example":20241226},"horaInterfaz":{"type":"integer","description":"Hora en formato HHMMSS","example":111414},"holdeo":{"type":"string","example":"N "},"fechaHoldeo":{"type":"integer","description":"Fecha de holdeo en formato YYYYMMDD","example":20250217},"motivoHoldeo":{"type":"string","example":"PRU                           "},"importe_bruto":{"type":"number","format":"double","example":1.23456789012336E12},"importe_neto":{"type":"number","format":"double","example":1.23456789012336E12},"importe_gravado":{"type":"number","format":"double","example":1.23456789012336E12},"importe_exento":{"type":"number","format":"double","example":1.23456789012336E12},"importe_iva":{"type":"number","format":"double","example":1.23456789012336E12},"fechaComprobante":{"type":"integer","description":"Fecha de comprobante en formato YYYYMMDD","example":20250527},"fechaVencimiento":{"type":"integer","description":"Fecha de vencimiento en formato YYYYMMDD","example":20250626},"codAfip":{"type":"string","example":"F2"},"fechaCobranza":{"type":"integer","description":"Fecha de cobranza en formato YYYYMMDD","example":20250626},"fechaVencimientoCAE":{"type":"integer","description":"Fecha de vencimiento del CAE en formato YYYYMMDD","example":20250626},"detalles_impuestos":{"type":"array","items":{"type":"object","properties":{"cod_impositivo":{"type":"string","example":"IVA105A   "},"desc_cod_impositivo":{"type":"string","example":"Iva Debito Fiscal 10,5 %      "},"taxable":{"type":"string","example":"N"},"imp_impositivo_mon_domestica":{"type":"number","format":"double","example":1.23456789012336E12},"imp_impositivo_mon_foranea":{"type":"number","format":"double","example":1.23456789012336E12},"porcentaje_impositivo":{"type":"number","format":"double","example":1234.1234},"agente_Percepcion":{"type":"string","description":"Agente de percepción (Char 10). Valores posibles: Comprador/Vendedor/Emisor","example":"Comprador"}}}},"detalles_articulos":{"type":"array","items":{"type":"object","properties":{"articulo":{"type":"string","example":"2024011                  "},"descripcion1":{"type":"string","example":"0                             "},"descripcion2":{"type":"string","example":"                              "},"cantidad":{"type":"number","format":"double","example":1.23456789012123E11},"precio_unitario":{"type":"number","format":"double","example":1.23456789012336E12},"importe_total":{"type":"number","format":"double","example":1.23456789012336E12}}}}}},"JdeSendCoeReq":{"type":"object","title":"Send COE request body","description":"Body of the request to inform coe","properties":{"VR01":{"type":"integer","example":123456789012345},"D55TPTR":{"type":"string","example":"01"},"CNTRTID":{"type":"string","example":"1234567"},"DIVJ":{"type":"integer","example":20250115},"ADGI":{"type":"string","example":"01"},"AGRP":{"type":"string","example":"A"},"D55NULQ":{"type":"integer","example":12345678},"D55PCDE":{"type":"string","example":"01"},"D55CDCO":{"type":"string","example":"1"},"D55TPLQ":{"type":"string","example":"F"},"AA14":{"type":"integer","example":123456789012},"D55TPOP":{"type":"string","example":"01"},"D55TPTN":{"type":"string","example":"01"},"D55TPNG":{"type":"string","example":"01"},"D55MTLQ":{"type":"string","example":"06"},"D55TPCM":{"type":"string","example":"06"},"TAX":{"type":"string","example":"12345678901234567890"},"D55TAX2":{"type":"string","example":"12345678901234567890"},"D55CDVD":{"type":"string","example":"12345"},"D55FMAV":{"type":"string","example":"C"},"D55TAX1":{"type":"string","example":"12345678901234567890"},"D55CDCM":{"type":"string","example":"12345"},"D55FMCM":{"type":"string","example":"C"},"D55ATCM":{"type":"string","example":"12"},"D55TAX3":{"type":"string","example":"12345678901234567890"},"ITM":{"type":"integer","example":123},"CRCD":{"type":"string","example":"USD"},"DGJ":{"type":"integer","example":20250114},"D55NRCC":{"type":"string","example":"Char de 20"},"D55MECN":{"type":"string","example":"SI"},"TRAR":{"type":"string","example":"123"},"DDJ":{"type":"integer","example":20240125},"D55CANJE":{"type":"string","example":"N"},"ODCM":{"type":"string","example":"1234567890"},"BSDO":{"type":"string","example":"1234567890"},"D55CDLD":{"type":"string","example":"123456"},"D55CDDS":{"type":"string","example":"12"},"D55CDPP":{"type":"string","example":"12"},"D55CDLP":{"type":"string","example":"123456"},"D55DM":{"type":"string","example":"12345"},"SHAN":{"type":"integer","example":12345678},"D55PRTO":{"type":"string","example":"1234"},"D55PRFL":{"type":"number","example":1234567.12},"D55CODAR":{"type":"integer","example":12},"D55CODAS":{"type":"integer","example":12},"DSC1":{"type":"string","example":"Descripcion Char de 400"},"D55ESLQ":{"type":"string","example":"01"},"DATE01":{"type":"integer","example":20250115},"ETME":{"type":"integer","example":123456},"ACEM1":{"type":"integer","example":1234},"VINV":{"type":"integer","example":123456789012345678},"CNTRTNM":{"type":"integer","example":123456789012345678},"ACAI":{"type":"integer","example":123456789012},"EFT":{"type":"integer","example":20250115},"GNST":{"type":"string","example":"01"},"CNDJ":{"type":"integer","example":20250115},"D55ESCB":{"type":"string","example":"01"},"D55FECB":{"type":"integer","example":250115},"HOLD":{"type":"string","example":"Y"},"HLDD":{"type":"integer","example":20250115},"DSC3":{"type":"string","example":"Motivo"},"D55FCDV":{"type":"integer","example":20250115},"VS01":{"type":"string","example":"A"},"D55ENLQ":{"type":"string","example":"S"},"D55GNCG":{"type":"string","example":"Y"},"D55ACTUAC":{"type":"string","example":"Y"},"D55FMPG":{"type":"integer","example":12},"D55ENVCI":{"type":"string","example":"Y"},"ADS1":{"type":"string","example":"Descripcion"},"D55TXR1":{"type":"string","example":"1"},"D55TXR2":{"type":"string","example":"01.34"},"D55UOPN":{"type":"string","example":"01.34"},"D55TXR3":{"type":"string","example":"01.34"},"D55UORG":{"type":"integer","example":12345678},"D55UPRC":{"type":"number","example":12345.678},"D55LNTY":{"type":"string","example":"G2"},"D55UOPN1":{"type":"string","example":"1"},"D55UPRC1":{"type":"number","example":12345.67},"ELIIBM":{"type":"string","example":"S"},"DESLIQ":{"type":"string","example":"Error"},"INT01":{"type":"integer","example":11},"INT02":{"type":"integer","example":22},"URC1":{"type":"string","example":"USD"},"CRR1":{"type":"number","example":1.23456789011234E10},"D55CODASC":{"type":"number","example":6},"D55MUNCON":{"type":"string","example":"01"},"ITEMS":{"type":"array","items":{"type":"object","properties":{"LNID":{"type":"string","example":"1234"},"D55ITM":{"type":"string","example":"12"},"D55PCRT":{"type":"number","format":"float64","example":1.2345678912E8},"UORG":{"type":"integer","example":123456789012345},"UPRC":{"type":"integer","example":123456789012345},"UOM":{"type":"string","example":"un"},"AEXP":{"type":"number","format":"float64","example":1.23456789012312E12},"LOTN":{"type":"string","example":"lote"},"D55ITM1":{"type":"string","example":"12"},"D55ITM2":{"type":"string","example":"12"},"TCURC1":{"type":"string","example":"CO"},"TCINT01":{"type":"number","example":0.5}}}},"CERTIFICADOS":{"type":"array","items":{"type":"object","properties":{"LNID":{"type":"integer","example":10},"CNTRTID":{"type":"integer","example":1234567},"ACEM1":{"type":"integer","example":7777},"VINV":{"type":"integer","example":123456789012345678},"D55TCER":{"type":"string","example":"d55"},"D55NCER":{"type":"string","example":"cert12345678"},"D55PN":{"type":"integer","example":12345678},"D55PNC":{"type":"integer","example":12345678},"D55CDLP":{"type":"integer","example":123456},"D55CDPP":{"type":"integer","example":12},"LOTN":{"type":"integer","example":1234},"D55FEC":{"type":"integer","example":20231231}}}}}},"JdeSendCaeReq":{"type":"object","properties":{"token":{"type":"string","example":"044q0y5id3YaawGxdT0eB3gxC75+EIq+9mQTrzBiIHQmWU=MDE5MDEyODUyNjc0MjMyNjk2MjcxNDA3MTEwLjEwMC4wLjIxNzE3NTQwNTQ0OTk4OTM="},"consolaCAE":{"type":"array","items":{"type":"object","properties":{"VR01":{"type":"string","example":"1234567890123456789012345"},"VINV":{"type":"string","example":"1234567890123456789012345"},"D55TORC":{"type":"string","example":"01"},"MCU":{"type":"string","example":"123456789012"},"ACEM1":{"type":"string","example":"123456789012345"},"D55FESED":{"type":"integer","example":20251029},"D55FESEH":{"type":"integer","example":20251029},"UITM":{"type":"string","example":"12345678901234567890123456"},"DGJ":{"type":"integer","example":20251001},"D55NRCC":{"type":"string","example":"12345678901234567890"},"DIVJ":{"type":"integer","example":20251029},"D55TAX3":{"type":"string","example":"12345678901234567890"},"D55CIEDO":{"type":"string","example":"12345"},"D55TAX4":{"type":"string","example":"12345678901234567890"},"D55CIRDO":{"type":"string","example":"12345"},"TAX":{"type":"string","example":"12345678901234567890"},"D55CDCO":{"type":"string","example":"12345"},"D55TAX1":{"type":"string","example":"12345678901234567890"},"D55CDCM":{"type":"integer","example":12345},"D55TAX2":{"type":"string","example":"12345678901234567890"},"D55CDVD":{"type":"integer","example":12345},"AGRP":{"type":"string","example":"A"},"ADGI":{"type":"integer","example":123},"CRCD":{"type":"string","example":"ARS"},"D55CDLD":{"type":"integer","example":123456},"D55CDDS":{"type":"integer","example":12},"D55CDLP":{"type":"integer","example":123456},"D55CDPP":{"type":"integer","example":12},"CEXP":{"type":"integer","example":20251129},"CNTRTID":{"type":"integer","format":"int64","example":1234567890123456789012345},"SHAN":{"type":"integer","example":12345678},"AA14":{"type":"integer","example":123456789012},"D55PVAJ":{"type":"string","example":"1234"},"CNDJ":{"type":"integer","example":20251029},"D55DSLN1":{"type":"string","example":"Alfanumérico logitud 256"},"D55DSLN2":{"type":"string","example":"Alfanumérico logitud 256"},"D55DSLN3":{"type":"string","example":"Alfanumérico logitud 256"},"D55DSLN4":{"type":"string","example":"Alfanumérico logitud 256"},"D55DSLN5":{"type":"string","example":"Alfanumérico logitud 256"},"D55DSLN6":{"type":"string","example":"Alfanumérico logitud 256"},"CRR":{"type":"number","example":1.2345678901E8},"ITM":{"type":"integer","example":123},"ITEMS":{"type":"array","items":{"type":"object","properties":{"LNID":{"type":"string","example":"1234"},"UPRC":{"type":"number","example":1.23456789012345E12},"UORG":{"type":"number","example":1.23456789012345E11},"UOM":{"type":"string","example":"TN"},"AEXP":{"type":"number","example":1.23456789012345E12},"D55ITM1":{"type":"string","example":"01"},"D55ITM":{"type":"string","example":"004"},"D55ITM2":{"type":"string","example":"025"},"DTA1":{"type":"string","example":"Alfanumérico logitud 256"},"D55TXR1":{"type":"number","example":0.0},"CRR":{"type":"number","example":1.2345678901E8},"CNTRTID":{"type":"integer","format":"int64","example":1234567890123456789012345},"DGJ":{"type":"integer","example":20251001},"D55NRCC":{"type":"string","example":"12345678901234567890"},"D55CDLD":{"type":"integer","example":123456},"D55CDDS":{"type":"integer","example":12},"D55CDLP":{"type":"integer","example":123456},"D55CDPP":{"type":"integer","example":12},"D55TAX1":{"type":"string","example":"12345678901234567890"},"D55CDCM":{"type":"integer","example":12345},"D55TAX2":{"type":"string","example":"12345678901234567890"},"D55CDVD":{"type":"integer","example":12345},"D55MUNCON":{"type":"string","example":"01"}}}}}}}}},"JdeInformCoeSuccessResponse":{"type":"object","title":"Success response","description":"Response when the request was successful","properties":{"VR01":{"type":"integer","example":4},"RecepcionCoe":{"type":"string","example":1},"VR03":{"type":"string","example":"Nombre Proforma CHAR 25"}}},"JdeInformCoeBadRequest":{"type":"object","title":"Bad request response","description":"Response when bad request was sent","properties":{"RecepcionCoe":{"type":"string","example":0},"ERRORES":{"type":"object","properties":{"CABECERA":{"type":"array","items":{"type":"object","properties":{"Observaciones":{"type":"string","example":"Descripcion del error1 en la cabecera del mensaje."}}}}}}}},"JdeInformCoeUnauthorizedResponse":{"type":"object","title":"Unauthorized response","description":"Response when the request was not authorized","properties":{"VR01":{"type":"integer","example":4},"RecepcionCoe":{"type":"string","example":0},"ERRORES":{"type":"object","properties":{"CABECERA":{"type":"array","items":{"type":"object","properties":{"Observaciones":{"type":"string","example":"Descripcion del error1 en la cabecera del mensaje."}}}}}}}},"JdeInformCoeServerError":{"type":"object","title":"Internal error response","description":"Response when the request failed","properties":{"VR01":{"type":"integer","example":4},"RecepcionCoe":{"type":"string","example":0},"ERRORES":{"type":"object","properties":{"CABECERA":{"type":"array","items":{"type":"object","properties":{"Observaciones":{"type":"string","example":"Descripcion del error1 en la cabecera del mensaje."}}}},"DETALLE_IMPUESTOS":{"type":"array","items":{"type":"object","properties":{"CODIGO_IMPOSITIVO":{"type":"string","example":"IVA105A   "},"ERROR":{"type":"string","example":"Descripción del error1 en impuestos - Campo. Valor recibido: "}}}},"DETALLE_ARTICULOS":{"type":"array","items":{"type":"object","properties":{"ARTICULO":{"type":"string","example":"2024011                  "},"ERROR":{"type":"string","example":"Descripción del error1 en articulos - Campo. Valor recibido\""}}}}}}}},"JdeInformCaeSuccessResponse":{"type":"object","title":"Success response","description":"Response when the request was successful","properties":{"VR01":{"type":"integer","example":4},"RecepcionCae":{"type":"string","example":1},"VR03":{"type":"string","example":"Nombre Proforma CHAR 25"}}},"JdeInformCaeBadRequest":{"type":"object","title":"Bad request response","description":"Response when bad request was sent","properties":{"RecepcionCae":{"type":"string","example":0},"ERRORES":{"type":"object","properties":{"CABECERA":{"type":"array","items":{"type":"object","properties":{"Observaciones":{"type":"string","example":"Descripcion del error1 en la cabecera del mensaje."}}}}}}}},"JdeInformCaeUnauthorizedResponse":{"type":"object","title":"Unauthorized response","description":"Response when the request was not authorized","properties":{"VR01":{"type":"integer","example":4},"RecepcionCae":{"type":"string","example":0},"ERRORES":{"type":"object","properties":{"CABECERA":{"type":"array","items":{"type":"object","properties":{"Observaciones":{"type":"string","example":"Descripcion del error1 en la cabecera del mensaje."}}}}}}}},"JdeInformCaeServerError":{"type":"object","title":"Internal error response","description":"Response when the request failed","properties":{"VR01":{"type":"integer","example":4},"RecepcionCae":{"type":"string","example":0},"ERRORES":{"type":"object","properties":{"CABECERA":{"type":"array","items":{"type":"object","properties":{"Observaciones":{"type":"string","example":"Descripcion del error1 en la cabecera del mensaje."}}}},"DETALLE_IMPUESTOS":{"type":"array","items":{"type":"object","properties":{"CODIGO_IMPOSITIVO":{"type":"string","example":"IVA105A   "},"ERROR":{"type":"string","example":"Descripción del error1 en impuestos - Campo. Valor recibido: "}}}},"DETALLE_ARTICULOS":{"type":"array","items":{"type":"object","properties":{"ARTICULO":{"type":"string","example":"2024011                  "},"ERROR":{"type":"string","example":"Descripción del error1 en articulos - Campo. Valor recibido\""}}}}}}}},"JdeSendCoeResponse":{"type":"object","title":"Success response","description":"Response when the request was successful","properties":{"jde__status":{"type":"string","example":"SUCCESS"},"ConsolaAgro":{"type":"string","example":"1"}}},"JdeSendCaeResponse":{"type":"object","title":"Success response","description":"Response when the request was successful","properties":{"jde__status":{"type":"string","example":"SUCCESS"},"ConsolaCae":{"type":"string","example":"1"}}},"JdeSendCaeBadRequest":{"type":"object","title":"Bad request response","description":"Response when bad request was sent","properties":{"VR01":{"type":"string","example":"1234567890123456789012345"},"jde__status":{"type":"string","example":"ERROR"},"ConsolaCae":{"type":"string","example":"0"},"ERRORES":{"type":"object","properties":{"CABECERA":{"type":"array","items":{"type":"object","properties":{"Observaciones":{"type":"string","example":"codigo: xxxx, detalle: xxxx"}}}}}}}},"JdeSendCaeUnauthorizedResponse":{"type":"object","title":"Bad request response","description":"Response when bad request was sent","properties":{"VR01":{"type":"string","example":"1234567890123456789012345"},"jde__status":{"type":"string","example":"ERROR"},"ConsolaCae":{"type":"string","example":"0"},"ERRORES":{"type":"object","properties":{"CABECERA":{"type":"array","items":{"type":"object","properties":{"Observaciones":{"type":"string","example":"codigo: xxxx, detalle: xxxx"}}}}}}}},"JdeSendCaeServerError":{"type":"object","title":"Bad request response","description":"Response when bad request was sent","properties":{"VR01":{"type":"string","example":"1234567890123456789012345"},"jde__status":{"type":"string","example":"ERROR"},"ConsolaCae":{"type":"string","example":"0"},"ERRORES":{"type":"object","properties":{"CABECERA":{"type":"array","items":{"type":"object","properties":{"Observaciones":{"type":"string","example":"codigo: xxxx, detalle: xxxx"}}}}}}}},"JdeSendCoeBadRequest":{"type":"object","title":"Bad request response","description":"Response when bad request was sent","properties":{"VR01":{"type":"integer","example":123456789012345},"jde__status":{"type":"string","example":"ERROR"},"ConsolaAgro":{"type":"string","example":"0"},"ERRORES":{"type":"object","properties":{"CABECERA":{"type":"array","items":{"type":"object","properties":{"Observaciones":{"type":"string","example":"codigo: xxxx, detalle: xxxx"}}}}}}}},"JdeSendCoeUnauthorizedResponse":{"type":"object","title":"Bad request response","description":"Response when bad request was sent","properties":{"VR01":{"type":"integer","example":123456789012345},"jde__status":{"type":"string","example":"ERROR"},"ConsolaAgro":{"type":"string","example":"0"},"ERRORES":{"type":"object","properties":{"CABECERA":{"type":"array","items":{"type":"object","properties":{"Observaciones":{"type":"string","example":"codigo: xxxx, detalle: xxxx"}}}}}}}},"JdeSendCoeServerError":{"type":"object","title":"Bad request response","description":"Response when bad request was sent","properties":{"VR01":{"type":"integer","example":123456789012345},"jde__status":{"type":"string","example":"ERROR"},"ConsolaAgro":{"type":"string","example":"0"},"ERRORES":{"type":"object","properties":{"CABECERA":{"type":"array","items":{"type":"object","properties":{"Observaciones":{"type":"string","example":"codigo: xxxx, detalle: xxxx"}}}}}}}},"JdeGenericServerError":{"type":"object","title":"Internal error response","description":"Response when the request failed","properties":{"estado":{"type":"string","example":"ER"},"errores":{"type":"array","items":{"type":"object","properties":{"codigo":{"type":"string","example":500},"detalle":{"type":"string","example":"error message"}}}}}},"JdeGenericBadRequest":{"type":"object","title":"Bad request response","description":"Response when bad request was sent","properties":{"estado":{"type":"string","example":"ER"},"errores":{"type":"array","items":{"type":"object","properties":{"codigo":{"type":"string","example":400},"detalle":{"type":"string","example":"cannot unmarshal body"}}}}}},"JdeGenericUnauthorized":{"type":"object","title":"Unauthorized response","description":"Response when the request was not authorized","properties":{"estado":{"type":"string","example":"ER"},"errores":{"type":"array","items":{"type":"object","properties":{"codigo":{"type":"string","example":401},"detalle":{"type":"string","example":"Access token error: (error message)"}}}}}},"JdeGenericSuccessRes":{"type":"object","title":"Success response","description":"Response when the request was successful","properties":{"estado":{"type":"string","example":"OK"}}},"JdeGenericSuccessWithErrorsRes":{"type":"object","title":"Success response","description":"Response when the request was successful","properties":{"estado":{"type":"string","example":"OK"},"errores":{"type":"array","items":{"type":"object","properties":{"codigo":{"type":"string","example":0},"detalle":{"type":"string","example":"Sin errores"}}}}}},"JdeSendContractSuccess":{"type":"object","title":"Success response","description":"Response when the request was successful","properties":{"EDTN":{"type":"string","example":"1234567890123456789012"},"ConsolaIC":{"type":"string","example":"1"},"jde__status":{"type":"string","example":"SUCCESS"}}},"JdeSendContractError":{"type":"object","title":"Error response","description":"Response when the request failed","properties":{"EDTN":{"type":"string","example":"1234567890123456789012"},"ConsolaIC":{"type":"string","example":"0"},"jde__status":{"type":"string","example":"ERROR"},"ERRORES":{"type":"object","properties":{"CABECERA":{"type":"array","items":{"type":"object","properties":{"Observaciones":{"type":"string","example":"No se informa Escenario - IDXN."}}}}}}}},"GenericErrorUnauthorized":{"type":"object","title":"Access token error","description":"Error of access token","properties":{"success":{"type":"boolean","example":false},"error":{"type":"object","properties":{"code":{"type":"integer","example":401},"message":{"type":"string","example":"Invalid token"},"details":{"type":"string","example":"Access token is required"}}}}},"GenericErrorBadRequest":{"type":"object","title":"Bad request error","description":"Error in the body or parameters of the request","properties":{"success":{"type":"boolean","example":false},"error":{"type":"object","properties":{"code":{"type":"integer","example":400},"message":{"type":"string","example":"error on body format"},"details":{"type":"string","example":"body format is invalid"}}}}},"GenericErrorInternal":{"type":"object","title":"Internal server error","description":"Error of the server","properties":{"success":{"type":"boolean","example":false},"error":{"type":"object","properties":{"code":{"type":"integer","example":500},"message":{"type":"string","example":"error parsing to JSON"},"details":{"type":"string","example":"an error occurs in the server"}}}}},"GenAdminTokenResponse":{"type":"object","title":"Generate admin token response","description":"Response of the request to generate admin token","properties":{"success":{"type":"boolean","example":true},"data":{"type":"object","properties":{"token":{"type":"string","example":"Efaji1k6.asPd2.Tnsi8o90"}}}}},"TokensSuccessResponse":{"type":"object","title":"Tokens success response","description":"Response of the request to generate or refresh tokens","properties":{"success":{"type":"boolean","example":true},"data":{"type":"object","properties":{"token":{"type":"string","example":"Efaji1k6.asPd2.Tnsi8o90"},"refreshToken":{"type":"string","example":"Efaji1k6.asPd2.Tnsi8o90"}}}}},"TokenStatusSuccess":{"type":"object","title":"Token status success response","description":"Response of the request to get token status","properties":{"success":{"type":"boolean","example":true},"data":{"type":"boolean","example":true}}},"JdePostAddressBookReq":{"type":"object","properties":{"deviceName":{"type":"string","example":"EntServer-ocidesapp1_149051"},"addressNumber":{"type":"string","description":"Número de dirección (AN8)","example":"10600024"},"taxId":{"type":"string","description":"CUIT/RUT/Tax ID","example":"30526712729         "},"nameAlpha":{"type":"string","description":"Nombre alfabético","example":"LDC ARGENTINA S.A.                      "},"addressType1":{"type":"string","description":"Tipo de dirección (AT1)","example":"AV "},"CatAC01":{"type":"string","example":"Categ.  01"},"CatAC02":{"type":"string","example":"Categ.  02"},"CatAC03":{"type":"string","example":"Categ.  03"},"CatAC04":{"type":"string","example":"Categ.  04"},"CatAC05":{"type":"string","example":"Categ.  05"},"CatAC06":{"type":"string","example":"Categ.  06"},"CatAC07":{"type":"string","example":"Categ.  07"},"CatAC08":{"type":"string","example":"Categ.  08"},"CatAC09":{"type":"string","example":"Categ.  09"},"CatAC10":{"type":"string","example":"Categ.  10"},"CatAC11":{"type":"string","example":"Categ.  11"},"CatAC12":{"type":"string","example":"Categ.  12"},"CatAC13":{"type":"string","example":"Categ.  13"},"CatAC14":{"type":"string","example":"Categ.  14"},"CatAC15":{"type":"string","example":"Categ.  15"},"CatAC16":{"type":"string","example":"Categ.  16"},"CatAC17":{"type":"string","example":"Categ.  17"},"CatAC18":{"type":"string","example":"Categ.  18"},"CatAC19":{"type":"string","example":"Categ.  19"},"CatAC20":{"type":"string","example":"Categ.  20"},"CatAC21":{"type":"string","example":"Categ.  21"},"CatAC22":{"type":"string","example":"Categ.  22"},"CatAC23":{"type":"string","example":"Categ.  23"},"CatAC24":{"type":"string","example":"Categ.  24"},"CatAC25":{"type":"string","example":"Categ.  25"},"CatAC26":{"type":"string","example":"Categ.  26"},"CatAC27":{"type":"string","example":"Categ.  27"},"CatAC28":{"type":"string","example":"Categ.  28"},"CatAC29":{"type":"string","example":"Categ.  29"},"CatAC30":{"type":"string","example":"Categ.  30"},"direcciones":{"type":"array","items":{"$ref":"#/components/schemas/Address"}},"contactos":{"type":"array","items":{"$ref":"#/components/schemas/Contact"}},"currencyCodeFrom":{"type":"string","description":"Código de moneda (CRCD)","example":"   "},"amountCreditLimit":{"type":"string","description":"Límite de crédito (ACL)","example":"0"},"paymentTermsAR":{"type":"string","description":"Términos de pago Cuentas por Cobrar (TRAR)","example":"030"},"paymentTermsAP":{"type":"string","description":"Términos de pago Cuentas por Pagar (TRAP)","example":"060"},"cuentas_bancarias":{"type":"array","items":{"$ref":"#/components/schemas/BankAccount"}},"mails":{"type":"array","items":{"$ref":"#/components/schemas/Email"}},"idFiscalAdicional":{"type":"string","description":"ID Fiscal Adicional (TX2)","example":"30526712729         "}}},"Address":{"type":"object","properties":{"addressLine1":{"type":"string","example":"COSSETTINI,OLGA 240 Piso:02             "},"addressLine2":{"type":"string","example":"                                        "},"addressLine3":{"type":"string","example":"                                        "},"addressLine4":{"type":"string","example":"                                        "},"zipCodePostal":{"type":"string","example":"1107        "},"city":{"type":"string","example":"AR "},"state":{"type":"string","example":"01 "}}},"Contact":{"type":"object","properties":{"countyAddress":{"type":"string","example":"303"},"phoneAreaCode1":{"type":"string","example":""},"phoneNumber":{"type":"string","example":"FAX"}}},"BankAccount":{"type":"object","properties":{"customerBankAccount":{"type":"string","description":"Cuenta bancaria del cliente (CBNK)","example":"                    "}}},"Email":{"type":"object","properties":{"electronicAddress":{"type":"string","format":"email","example":"saberastegui@qbitla.com"}}},"JdeSendContractReq":{"type":"object","properties":{"edtn":{"type":"string","example":"1234567890123456789012"},"edln":{"type":"integer","example":1234567890},"idxn":{"type":"string","example":"ESC001"},"dgj":{"type":"integer","example":0},"vr01":{"type":"integer","example":0},"lt":{"type":"string","example":"AA"},"n55spcd2":{"type":"integer","example":0},"taxx1":{"type":"string","example":"123456789012345"},"alph1":{"type":"string","example":"Vendedor S.A."},"n55spcd1":{"type":"integer","example":0},"taxx2":{"type":"string","example":"123456789012345"},"alph2":{"type":"string","example":"Comprador S.A."},"tax":{"type":"string","example":"123456789012345"},"alph":{"type":"string","example":"Corredora S.A."},"cdte":{"type":"integer","example":0},"litm":{"type":"integer","example":0},"dsc1":{"type":"string","example":"Soja"},"srp1":{"type":"integer","example":0},"lotn":{"type":"integer","example":0},"bswar":{"type":"string","example":"C"},"ds":{"type":"string","example":"F"},"ecst":{"type":"number","format":"float","example":1500000.5},"fap":{"type":"number","format":"float","example":1200000.75},"crcd":{"type":"string","example":"ARS"},"aa1":{"type":"number","format":"float","example":350.25},"aa2":{"type":"number","format":"float","example":0},"adjp":{"type":"number","format":"float","example":0},"ex1":{"type":"string","example":"Rosario"},"brgw":{"type":"integer","example":0},"brnw":{"type":"integer","example":0},"awgt":{"type":"integer","example":0},"wgts":{"type":"integer","example":0},"wtem":{"type":"integer","example":0},"towt":{"type":"integer","example":0},"addj":{"type":"integer","example":0},"rsdj":{"type":"integer","example":0},"dtfr":{"type":"integer","example":0},"dtrt":{"type":"integer","example":0},"rfac":{"type":"number","format":"float","example":75.25},"acit":{"type":"integer","example":102},"adsa":{"type":"string","example":"Maíz"},"bngr":{"type":"string","example":"B"},"amta":{"type":"integer","example":0},"crrd":{"type":"string","example":"USD"},"n55mwo":{"type":"string","example":"S"},"n55cewo":{"type":"string","example":"N"},"n55egvnz":{"type":"string","example":"N"},"n55pcv":{"type":"number","format":"float","example":12345.1234},"n55pcc":{"type":"number","format":"float","example":12345.1234},"n55tde":{"type":"string","example":"F"},"n55fde":{"type":"integer","example":0},"n55kde":{"type":"integer","example":0},"n55pde":{"type":"number","format":"float","example":350.0},"n55mde":{"type":"string","example":"ARS"},"ctni":{"type":"integer","example":12345678901234},"crr":{"type":"number","format":"float","example":950.1234},"aap1":{"type":"number","format":"float","example":100.0},"aap2":{"type":"number","format":"float","example":200.0},"aap3":{"type":"number","format":"float","example":300.0},"aap4":{"type":"number","format":"float","example":400.0},"aap5":{"type":"number","format":"float","example":500.0},"aap6":{"type":"number","format":"float","example":600.0},"aap7":{"type":"number","format":"float","example":700.0},"aap8":{"type":"number","format":"float","example":800.0},"aap9":{"type":"number","format":"float","example":900.0},"aapa":{"type":"number","format":"float","example":1000.0},"aapb":{"type":"number","format":"float","example":1100.0},"aapc":{"type":"number","format":"float","example":1200.0},"aapd":{"type":"number","format":"float","example":1300.0},"aape":{"type":"number","format":"float","example":1400.0},"aapj":{"type":"number","format":"float","example":1500.0},"exr":{"type":"string","example":"Observación ejemplo"}}}}}}