USPS

Config

USPS rates don't require an account number. You need to simply know which plan you quality for, either Commercial Base or Commercial Plus. They are identified in the system by "base" or "plus". The most likely option is "plus", which is cheaper than "base".

A simple USPS config looks like this:

"USPS": {
    "enabled": true,
    "config": {
        "plan": "plus"
    },
    "services": [
        {
            "code": "PRIORITY"
        },
        {
            "code": "FIRST_CLASS"
        }
    ]
}

The above will serve USPS Priority and First-Class rates based on Commercial Plus pricing. If "enabled" is set to "false", USPS rates will stop being served (but other rates, if enabled, will continue to be served).

Services

Here are the currently available USPS services and their default display text:

"FIRST_CLASS": "USPS First-Class Mail",
"PRIORITY": "USPS Priority Mail",
"PRIORITY_EXPRESS": "USPS Priority Express Mail",
"PRIORITY_EXPRESS_AM": "USPS Priority Express Mail AM",
"FIRST_CLASS_INTL": "USPS First-Class Mail International",
"PRIORITY_INTL": "USPS Priority Mail International",
"PRIORITY_EXPRESS_INTL": "USPS Priority Express Mail International"
"MEDIA_MAIL": "USPS Media Mail"

If you want to learn how to modify the rates with margins, markups, flat rates, etc., see "Rate Modification"

results matching ""

    No results matching ""