> For the complete documentation index, see [llms.txt](https://doc.sysdevmobile.com/mss-extensibility/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.sysdevmobile.com/mss-extensibility/mss-5.1/functions-kalipso-to-mss/visits/ext_visits_getvisitstatus.md).

# EXT\_Visits\_GetVisitStatus

Function to ask MSS for the status of the visit for a customer.

*Input Parameters:*

* inCustomerCode - Customer code to validate;&#x20;
* inDeliveryPlaceCode - Delivery place code to validate, can be empty;&#x20;
* inMSSModule - Code of the module of MSS. See the list with the module codes below.&#x20;

*Output Parameters:*

* outResultCode - Return code:&#x20;
  * 0 - Error;&#x20;
  * 1 - Only used by MSS when the application starts;&#x20;
  * 2 - Resume a suspended visit (Returns the date and hour of the suspended visit);&#x20;
  * 3 - Exists 1 suspended visit but remains suspended (Returns the date and hour of the suspended visit);&#x20;
  * 4 - Can create check in on customer/delivery place;&#x20;
  * 5 - Check in already made for current customer/delivery place;
* outVisitDate - Date of the visit (VISDTI) when outResultCode = 2 or 3;&#x20;
* outVisitHour - Hour of the visit (VISHRI) when outResultCode = 2 or 3;

**MSS Modules**

* OLR - Consultas
* DSB - Dashboard&#x20;
* CTG - Catálogo&#x20;
* DCL - Desbloquear&#x20;
* INQ - Inquéritos&#x20;
* PPT - Prospecção&#x20;
* POS - Mobile POS&#x20;
* EQP - Equipamentos&#x20;
* PAG – Pagamentos por Conta&#x20;
* ART - Artigos&#x20;
* CLI - Clientes&#x20;
* COB - Cobranças&#x20;
* DES - Despesas&#x20;
* DIA - Diário&#x20;
* DOC - Documentos&#x20;
* ENC - Encomendas&#x20;
* ENT - Entregas&#x20;
* FDI - Fim Dia&#x20;
* IDI - Inicio Dia&#x20;
* REC - Recibos&#x20;
* STK - Stock&#x20;
* VIS - Relatórios de Visita&#x20;
* VEN - Vendas&#x20;
* AGD - Agenda&#x20;
* PRP - Prospects&#x20;
* IGC - Imprimir Guia de Transporte&#x20;
* DEP - Depósitos&#x20;
* FRN - Fornecedores&#x20;
* CMP - Compras&#x20;
* SRV - Servicos&#x20;
* RPT - Reports
* KAL - Kalipso
