PaymentInfoGet_API
|
Description |
Parameters |
|
|---|---|---|
|
Passed |
Returned |
|
| This method returns all relevant information about a specified payment (DocID is the payment identifier). | 1 |
27 |
Syntax
Copy
BM :: PaymentInfoGet_API (
Int DocID.
)
returns
Copy
Int DocID;
Str DocNum;
Int DocType;
Int Status;
Str CurrencyID;
Double Total;
Double TaxTotal;
Double DocBBalance;
Double AvailBal;
Int Vendor_AccountID;
Int Customer_AccountID;
Int Crtd_DateTime;
Int Crtd_User_UsersID;
Int DocDate;
Str Description;
Str BranchID;
Str SalesID;
Int PayToolID;
Int ETransStatus;
Str FromIP;
Str AuthCode;
Str TrNumber;
Int PTransActivityID;
Int Benef_AccountID;
Int PluginID;
Int ChrgAttempts;
Int PayToolType.
Parameters Description
Input parameter:
Int DocID – Identifier of the payment document the details for which are to be displayed.
Output parameters:
- Int DocID – Identifier of the payment document.
- Str DocNum – Number of the document.
- Int DocType – Type of the document. The meanings of the type value are as follows:
50– Payment70– Refund
- Int Status – Status of the document. The status possible values are:
1000– Open2000– Hold3000– Closed4000– Voided5000– Refunded6000– Cancelled7000– Delayed
- Str CurrencyID – Identifier of the currency used for payment.
- Double Total- Total purchase sum specified in the document.
- Double TaxTotal-- Total Tax sum specified in the document. The value of this field is
nullbecause this parameter is not applicable to the payment and refund document types. - Double DocBBalance- Accounting Balance specified in the document.
- Double AvailBal- Available Balance specified in the document.
- Int Vendor_AccountID- Identifier of the vendor account.
- Int Customer_AccountID- Identifier of the customer account.
- Int Crtd_DateTime- Payment creation date an time.
- Int Crtd_User_UsersID- Identifier of the user who has performed the payment.
- Int DocDate- Document issuing date.
- Str Description- Description of the document.
- Str BranchID- Identifier of the sales branch associated with the account. The value of this field is
nullbecause this parameter is not applicable to the payment and refund document types. - Str SalesID- Identifier of the sales person associated with the account. The value of this field is
nullbecause this parameter is not applicable to the payment and refund document types. - Int PayToolID- Identifier of the payment method used to process the payment.
- Int ETransStatus- Status of the payment processing. The status can be one of the following:
0– New1– Approved by Vendor2– Approved by Gate3– Declined by Gate4– Declined by Vendor5– Fraud6– Auth Call7– Money Captured8– Void9– Refunded10– Authorizing11– Capturing12– Selling13– Voiding Auth14– Voiding Capture15– Voiding Sell16– Voiding Refund17– Refunding18– Voiding Redirect19– Redirecting100– Canceled
- Str FromIP– IP address of the customer from which the payment is performed.
- Str AuthCode– Authorization code.
- Str TrNumber– Payment reference number.
- Int PTransActivityID– Identifier of the previous transaction used for refund.
- Int Benef_AccountID– Account that actually receives the money charged (applicable, for example, in case of reselling).
- Int PluginID– Identifier of the plug-in (processing center) used to process the payment.
- Int ChrgAttempts– Number of attempts to charge for the purchase.
- Int PayToolType– Type of the payment method used to process the payment. The type can be one of the following:
0– Credit Card1– Bank Account2– External Redirect3– Check/Cash5– Direct Debit6– Universal