Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wallacesilva/393ea93bf38f058dd57c137069891b4c to your computer and use it in GitHub Desktop.
Save wallacesilva/393ea93bf38f058dd57c137069891b4c to your computer and use it in GitHub Desktop.

/Providers

POST /Providers

  {
    id: "paulistana", // ID
    name: "Paulistana",
    standard: "ABRASF",
    version: "1.00",
    actions: [
      {
        action: "Cancelamento",
        wsdlUri: "http://cnb06.blob.core.windows.net/wsdl/sp.saopaulo.wsdl",
        wsdlServiceName: "LoteNFe",
        wsdlMethodName: "Cancelar"
      },
      {
        action: "Consulta",
        wsdlUri: "http://cnb06.blob.core.windows.net/wsdl/sp.saopaulo.wsdl",
        wsdlServiceName: "LoteNFe",
        wsdlMethodName: "Consultar"
      }
    ]
  }

GET /Providers/ginfes

{
  id: "ginfes", // ID
  name: "GINFES",
  standard: "ABRASF",
  version: "3.00,
  actions: [
    {
      action: "Cancelamento",
      url: "https://nfe.prefeitura.sp.gov.br/ws/lotenfe.asmx",
      wsdlUri: "http://cnb06.blob.core.windows.net/wsdl/ginfes.wsdl",
      wsdlServiceName: "LoteNFe",
        wsdlMethodName: "Cancelar"
    },
    {
      action: "Consulta",
      url: "https://nfe.prefeitura.sp.gov.br/ws/lotenfe.asmx",
      wsdlUri: "http://cnb06.blob.core.windows.net/wsdl/ginfes.wsdl",
      wsdlServiceName: "LoteNFe",
        wsdlMethodName: "Consultar"
    }
  ]
}

GET /Providers

[
  {
    id: "ginfes", // ID
    name: "GINFES",
    standard: "ABRASF",
    version: "3.00,
    actions: [
      {
        action: "Cancelamento",
        url: "https://nfe.prefeitura.sp.gov.br/ws/lotenfe.asmx",
        wsdlUri: "http://cnb06.blob.core.windows.net/wsdl/ginfes.wsdl",
        wsdlServiceName: "LoteNFe",
        wsdlMethodName: "Cancelar"
      },
      {
        action: "Consulta",
        url: "https://nfe.prefeitura.sp.gov.br/ws/lotenfe.asmx",
        wsdlUri: "http://cnb06.blob.core.windows.net/wsdl/ginfes.wsdl",
        wsdlServiceName: "LoteNFe",
        wsdlMethodName: "Consultar"
      }
    ]
  },
  {
    id: "paulistana", // ID
    name: "Paulistana",
    standard: "ABRASF",
    version: "1.00",
    actions: [
      {
        action: "Cancelamento",
        url: "https://nfe.prefeitura.sp.gov.br/ws/lotenfe.asmx",
        wsdlUri: "http://cnb06.blob.core.windows.net/wsdl/sp.saopaulo.wsdl",
        wsdlServiceName: "LoteNFe",
        wsdlMethodName: "Cancelar"
      },
      {
        action: "Consulta",
        url: "https://nfe.prefeitura.sp.gov.br/ws/lotenfe.asmx",
        wsdlUri: "http://cnb06.blob.core.windows.net/wsdl/sp.saopaulo.wsdl",
        wsdlServiceName: "LoteNFe",
        wsdlMethodName: "Consultar"
      }
    ]
  }
]

Prefectures

POST /Prefectures

{
    state: "sp",
    id: 3550308,
    status: "active",
    webService: {
      provider: "paulistana", // ID - cadastrado no /Providers

      name: "LoteNFe",
      proxyType: "PaulistanaProxy",

      securityProtocolType: "ssl3" // ssl3, tls, tls11, tls12

      firstParamInt: 0, // null or 0
      firstParamString: "", // null or string

      certificateAuthentication: true
    }
}

GET /Prefectures/sp/3550308

{
    state: "sp",
    id: 3550308,
    status: "",
    webService: {
      provider: { // objeto já vem expandido para leitura melhor
        id: "paulistana", // ID
        name: "Paulistana",
        standard: "ABRASF",
        version: "1.00",
        actions: [
          {
            action: "Cancelamento",
            url: ""
          },
          {
            action: "Consulta",
            url: ""
          }
        ]
      },

      proxyType: "PaulistanaProxy",

      securityProtocolType: "ssl3" // ssl3, tls, tls11, tls12

      firstParamInt: 0, // null or 0
      firstParamString: "", // null or string

      certificateAuthentication: true
    }
}

GET /Prefectures/sp

[
  {
      state: "sp",
      id: 3550308,
      status: "",
      webService: {
        provider: { // objeto já vem expandido para leitura melhor
          id: "paulistana", // ID
          name: "Paulistana",
          standard: "ABRASF",
          version: "1.00",
          actions: [
            {
              action: "Cancelamento",
              url: ""
            },
            {
              action: "Consulta",
              url: ""
            }
          ]
        },

        proxyType: "PaulistanaProxy",

        securityProtocolType: "ssl3" // ssl3, tls, tls11, tls12

        firstParamInt: 0, // null or 0
        firstParamString: "", // null or string

        certificateAuthentication: true,
        
        proxyServer: "http://8.8.8.8:0000"
      }
  },
  {
      state: "sp",
      id: 3550308,
      status: "",
      webService: {
        provider: { // objeto já vem expandido para leitura melhor
          id: "paulistana", // ID
          name: "Paulistana",
          standard: "ABRASF",
          version: "1.00",
          actions: [
            {
              action: "Cancelamento",
              url: ""
            },
            {
              action: "Consulta",
              url: ""
            }
          ]
        },

        proxyType: "PaulistanaProxy",

        securityProtocolType: "ssl3" // ssl3, tls, tls11, tls12

        firstParamInt: 0, // null or 0
        firstParamString: "", // null or string

        certificateAuthentication: true
      }
  }
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment