From aa3c01c0f1cda490516ab17b6e14a09841f6b147 Mon Sep 17 00:00:00 2001 From: flywheeljake <81323991+flywheeljake@users.noreply.github.com> Date: Mon, 26 Jul 2021 17:40:15 -0400 Subject: [PATCH] Update usps.py --- usps/usps.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/usps/usps.py b/usps/usps.py index 0de3eef..b161f58 100644 --- a/usps/usps.py +++ b/usps/usps.py @@ -53,6 +53,10 @@ class AddressValidate(object): def __init__(self, usps, address): xml = etree.Element('AddressValidateRequest', {'USERID': usps.api_user_id}) + + _revision = etree.SubElement(xml, 'Revision') + _revision.text = '1' + _address = etree.SubElement(xml, 'Address', {'ID': '0'}) address.add_to_xml(_address, prefix='', validate=True)