Nova aplicação de telemóvel | Experimente grátis!
Faturar no iphone com MagniFinance. Aceda ao link da Apple store Faturar no Android com MagniFinance. Aceda ao link para Android Store
 
API documentation Menu

API 2.1

Activation Get


This method allows you to see if the Tax Communication automatic invoices communication is active.



POST https://bo.magnifinance.com/MagniAPI/taxcommunication.asmx


Sample Body

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tax="http://MagniAPI/TaxCommunication/"> <soapenv:Header/> <soapenv:Body> <tax:ActivationGet> <!--Optional:--> <tax:authentication> <!--Optional:--> <tax:Email>{User}</tax:Email> <!--Optional:--> <tax:Token>{Token}</tax:Token> </tax:authentication> </tax:ActivationGet> </soapenv:Body> </soapenv:Envelope>


Request

Header

Parameter Required Value
Content-Type required text/xml


Body

Authentication

Parameter Required Description
Email required string(50) The API user email with specific permission to configure this service into the company.
Token required string(50) The token of the company that you are trying to active the Tax communication service.


Response

Parameter Description
RequestId Unique Id for the request to have a way to identify the request
Type string Description to inform if the request was a success or error. Example value: "Success"
Object
IsActive boolean Return if the Tax Communication service is active or not. Example value: "true"
ErrorMessage string Unprocessed error message.
ErrorValue MagniEnum
Value int Identifies the error with a number. To identify the types of errors in more detail click here Example value: "1"
Name string Identifies the error with a token. Example value: "AuthenticationError"


Example Response


Success

<?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <soap:Body> <ActivationGetResponse xmlns="http://MagniAPI/TaxCommunication/"> <ResponseActivationGet> <RequestId>24f00a9d-dae6-472f-9dbe-ad32e8d181a2</RequestId> <Type>Success</Type> <Object> <IsActive>true</IsActive> </Object> </ResponseActivationGet> </ActivationGetResponse> </soap:Body> </soap:Envelope>


Error

<?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <soap:Body> <ActivationSetResponse xmlns="http://MagniAPI/TaxCommunication/"> <ResponseActivationSet> <RequestId>5165e271-97ec-4425-aa33-f7c32c7c6f3d</RequestId> <Type>Error</Type> <ErrorValue> <Value>1</Value> <Name>AuthenticationError</Name> </ErrorValue> </ResponseActivationSet> </ActivationSetResponse> </soap:Body> </soap:Envelope>

Este site usa cookies para melhorar o desempenho e experiência. Ao continuar, declara aceitar todos os cookies. Fechar