PWGatewayVoice


Click here for a complete list of operations.

MPG_SendandFollowUp_Voice

Envio de SMS Síncrono.

Parâmetros da MPG_SendandFollowUp_Voice: Versão: v_3_00
----------------------------------------------------------------------------------------------------------------------------------
Credencial - Obrigatório - Chave de 40 posições para acesso ao Mobile Pronto Gateway. Esta chave é única
Token - Obrigatório - Chave de 6 posições para acesso ao Mobile Pronto Gateway. Esta chave é única
Principal_User - Obrigatório - Código do Usuário Principal para autenticar no Gateway. Normalmente o CNPJ ou CPF. Pode ser Vazio.
Aux_User - Obrigatório - Código do Usuário Auxiliar/Qualificar da Mensagem. Máx.=20 posições. Se > 20 será truncado.
Mobile - Obrigatório - Celular ou Fixo que receberá a VOZ. Formato mundial: +99(999)99999999, sendo pais,ddd e mobile
Voice - Obrigatório - É a Voz, masculina ou feminina da mensagem a ser enviada.
Voz Brasileira - V-PTBR-M1 - Masculina e V-PTBR-F1 - Feminina.
Para outros países consultar documentação do Site. For others countries see site documentation.
Message - Obrigatório - Mensagem que será enviada ao mobile. Tamanho máximo por país.Brasil(300posições).

Tipos de Retorno:
Em caso de Sucesso o retorno é: XXX:IDMPG, sendo XXX sempre igual a 000Em caso de Erro o retorno pode ser: XXX ou XXX:IDERR, sendo XXX o código de erro ----------------------------------------------------------------------------------------------------------------------------------
000 - Mensagem enviada com Sucesso/Message sent successfully.
----------------------------------------------------------------------------------------------------------------------------------
001 - Credencial Inválida/Invalid Credencial.
005 - Mobile fora do formato-Formato +999(9999)99999999/Invalid phone number - non-standard
007 - RESERVADA AO GATEWAY DE SMS.
008 - Mensagem maior que máximo no Pais/Message higher maximun in Country
009 - Sem crédito para envio de SMS. Favor repor/Account without funds. Please purchase more credits
010 - Gateway Bloqueado/Gateway locked for use
012 - Mobile no formato padrão, mas incorreto/Invalid mobile
013 - Mensagem Vazia ou Corpo Inválido/Message Body Blank or Invalid
015 - Pais sem operação/Country without operation
016 - Mobile com tamanho do código de área inválido/Size of area code invalid
017 - Operadora não autorizada para esta Credencial/Operator not allowed for this Credential
018 - Mobile está na Lista Negra/Mobile is in the Black List
019 - Token Inválido/Invalid Token
020 - Voz Inválida/Invalid Voice
021 - Mobile está na Lista Negra do orgão do País/Mobile is in the Black List of the organ in charge of Country
-----------------------------------------------------------------------------------------------------------------------------------
De 800 a 899 - Falha no MPGateway.Contate Mobile Pronto/Failure MPGateway.Call MobilePronto
900 - Erro de autenticação ou Limite de Segurança excedido/Authentication Error or Security Limitation
De 901 a 999 - Erro no acesso as operadoras.Contate Equipe MobilePronto/Contact customer center
-----------------------------------------------------------------------------------------------------------------------------------

Test

The test form is only available for requests from the local machine.

SOAP 1.1

The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.

POST /voice/v_3_00/service.asmx HTTP/1.1
Host: pw-api.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "PWGatewayVoice/MPG_SendandFollowUp_Voice"

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <MPG_SendandFollowUp_Voice xmlns="PWGatewayVoice">
      <Credencial>string</Credencial>
      <Token>string</Token>
      <Principal_User>string</Principal_User>
      <Aux_User>string</Aux_User>
      <Mobile>string</Mobile>
      <Voice>string</Voice>
      <Message>string</Message>
    </MPG_SendandFollowUp_Voice>
  </soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <MPG_SendandFollowUp_VoiceResponse xmlns="PWGatewayVoice">
      <MPG_SendandFollowUp_VoiceResult>string</MPG_SendandFollowUp_VoiceResult>
    </MPG_SendandFollowUp_VoiceResponse>
  </soap:Body>
</soap:Envelope>

SOAP 1.2

The following is a sample SOAP 1.2 request and response. The placeholders shown need to be replaced with actual values.

POST /voice/v_3_00/service.asmx HTTP/1.1
Host: pw-api.com
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <MPG_SendandFollowUp_Voice xmlns="PWGatewayVoice">
      <Credencial>string</Credencial>
      <Token>string</Token>
      <Principal_User>string</Principal_User>
      <Aux_User>string</Aux_User>
      <Mobile>string</Mobile>
      <Voice>string</Voice>
      <Message>string</Message>
    </MPG_SendandFollowUp_Voice>
  </soap12:Body>
</soap12:Envelope>
HTTP/1.1 200 OK
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <MPG_SendandFollowUp_VoiceResponse xmlns="PWGatewayVoice">
      <MPG_SendandFollowUp_VoiceResult>string</MPG_SendandFollowUp_VoiceResult>
    </MPG_SendandFollowUp_VoiceResponse>
  </soap12:Body>
</soap12:Envelope>