The ATL COM module generalInvoiceRequest is capable of
generating electronic and printed invoices & reminders
generating electronic and printed invoices & reminders
API browser of generalInvoiceRequest450 COM module
IGeneralInvoiceResult::GetTiers method | |||
---|---|---|---|
Retrieves the type of remuneration, that is either Tiers Garant (TG) or Tiers Payant (TP). Furthermore, the VAT number and prepaid amount is returned as well. | |||
Restful webservice calling syntax | |||
[POST] | /baseURL/IGeneralInvoiceResult/GetTiers | ||
[JSON input data] | pIGeneralInvoiceResult: | longValue, //interface address |
|
[JSON result data] | peTiersMode: pbstrVatNumber: pdAmountPrepaid: pbStatus: |
longValue, "utf8StringValue", doubleValue, booleanValue |
|
[HTTP result status] | 200 | Return status 200 signals a successful method call | |
204 | Return status 204 (noContent) signals that the end of an iteration is reached | ||
>= 400 | Return status >= 400 signals an unsuccessful function call. The returned JSON{errorCode: code, errorText:"text"} supplies the error message the same as GetAbortInfo() would do. | ||
C/C++ calling syntax | |||
HRESULT GetTiers( | TiersModeType
BSTR double VARIANT_BOOL |
*peTiersMode,
*pbstrVatNumber, *pdAmountPrepaid, *pbStatus); |
|
[C/C++ return value] | S_OK | This value is returned if the function call was successful. | |
S_FALSE | This value is returned if the end of an iteration is reached | ||
E_name | This value is returned if the function call was unsuccessful and an error exception was generated. Note that if you are using SmartPointers an exception is thrown under these conditions. | ||
Calling argument description | |||
[out] TiersModeType | *peTiersMode | The tiers mode ("Tiers Garant" or "Tiers Payant") as defined in the TiersMode enumeration. | |
[out] BSTR | *pbstrVatNumber | The VAT number of the biller as given by the "Swiss Federal Tax Administration"
The VAT number might be empty in the case non was defined by the federal authorities due special agreements. If given/defined than the VAT number is returned is its printed form as requested by the federal authorities. |
|
[out] double | *pdAmountPrepaid | The supplied prepaid amount.
The due amount is calculated as «amount + reminder amount - prepaid amount» |
|
[out,retval] VARIANT_BOOL | *pbStatus | Return status of the method. If pbStatus is VARIANT_FALSE then an error occurred and GetAbortInfo should be called to retrieve the error string. | |