Shipping Integrator V5 - Online Help
Shipping Integrator V5
Questions / Feedback?

Recredit Method

Add postage to an account.

Syntax

uspsmgr.recredit(amount, [callback])

Callback

The 'callback' parameter specifies a function which will be called when the operation completes (or an error is encountered). If the 'callback' parameter is not specified, then the method will block and will not return until the operation completes (or an error is encountered).

The callback for this method is defined as:

function(err){ }

'err' is the error that occurred. If there was no error, then 'err' is 'null'.

'err' has 2 properties which hold detailed information:

err.code
err.message

Remarks

This method allows you to add postage funds to the account. There are two ways to specify the amount to be added. You may use a pre-defined amount or specify your own amount.

To use a pre-defined amount pass the special Amount value as defined in the table below.

AmountPostage to add
10 Add $10.00 to the account.
25 Add $25.00 to the account.
50 Add $50.00 to the account.
100 Add $100.00 to the account.
250 Add $250.00 to the account.
500 Add $500.00 to the account.
1000 Add $1000.00 to the account.
2500 Add $2500.00 to the account.
5000 Add $5000.00 to the account.
7500 Add $7500.00 to the account.
10000 Add $10000.00 to the account.
20000 Add $20000.00 to the account.

To specify a custom amount, specify the amount in dollars and cents. For instance to add $60.00 pass the value "60.00" to this method.

A minimum of $10.00 must be added. The maximum amount is based on the settings of the account.

 
 
Copyright (c) 2017 /n software inc. - All rights reserved.
Build 5.0.6240.0