Merchandise Return Bulk Label API

Similar documents
Merchandise Return V4.0 Label API

SCAN API. USPS Web Tools Application Programming Interface User s Guide. Document Version 2.4 (3/17/2017)

Address Information. USPS Web Tools Application Programming Interface User s Guide. Document Version 4.1 (8/28/2016)

Hold For Pickup Facility Information API

Package Pickup API. USPS Web Tools Application Programming Interface User s Guide. Document Version 2.2 (10/24/2017)

WebTools. February 2017 API Retirement Transition Guide

433 Prices and Eligibility. 1.0 Prices and Fees for First-Class Mail

SDC Service Standards

WebTools Release Notes

1.0 ADDRESS CORRECTION SERVICE (F030) For all classes of mail: a. Manual notice, each: $0.70. b. Electronic notice, each: $0.20.

USPS Tracking / Delivery Confirmation Label API

Extra Services Overview

2019 USPS NEW RATES START SUNDAY, JAN. 27, 2019 POSTAGE RATE INCREASE GUIDE

INCREASE GUIDE USPS POSTAGE RATE

363 Prices and Eligibility

Merchandise Return Service

243 Rates and Eligibility. 1.0 Rates and Fees for Standard Mail. 1.0 Rates and Fees for Standard Mail

Turning 65 Available. ALL Mail First Class. Please check one: MS57 MS26 MS55. Contact Info:

243 Prices and Eligibility. 1.0 Prices and Fees for Standard Mail. 1.0 Prices and Fees for Standard Mail

Pearson's Comprehensive Medical Assisting

Addressing. 1.0 Elements of Addressing. Addressing: Elements of Addressing. 1.0 Elements of Addressing. Overview

NEW PRICING SPECIAL EDITION: ALSO IN THIS ISSUE: FREQUENTLY ASKED QUESTIONS RATEFOLD INFORMATION FOREVER STAMP

Appendix C: Shipping Services File Version 2.0 (as of 10/19/2016)

Appendix B: Shipping Services File Version 1.7 (as of 10/19/2016)

Bulk Parcel Return Service

Hold For Pickup. Priority Mail Express, Priority Mail and First-Class Mail. USPS Web Tools Application Programming Interface User s Guide

213 Prices and Eligibility

Why Use OSU Printing & Mailing Services?

UNIVERSITY of HOUSTON MANUAL OF ADMINISTRATIVE POLICIES AND PROCEDURES

The most efficient way to manage USPS Certified Mail, Priority Mail and Priority Mail Express. User Guide

May 11, 2009 USPS Price Change Endicia Makes It Easy

A Gide For Postal Procedures MAIL SERVICES AT U.S.M.

February 1, 2011 USPS MAILING SERVICES

Addressing. 1.0 Elements of Addressing. Addressing: Elements of Addressing. 1.0 Elements of Addressing. Overview

Smart Parcel Mailer with Postage $aver Pro User Guide

Just Sold Training Manual

Parcel Data Exchange PDX Web Application Customer Guide

Benefits of using the NeopostCertifiedMail.com system Save Money every time you Print a Certified Mail Form

Revised (10/17) Check Outsourcing Transmission Toolkit

MAC Return Test File - Electronic File Layout Format Version 1.0 (*.txt) Date: 2017

SUMMARY: The Postal Service will revise Mailing Standards of the United

External Linkage

ELECTRONIC NOTICES VS PAPER IN THE MAIL

Modelling XML Applications (part 2)

WebTools Release Notes

USPS Pricing Engine Web Services

Content for page under Tools & Resources: USPS News/Info: Price Change January 2011 Archive. Header: USPS Price Change January 2011.

Technical Guide January BMA Certification Department National Customer Support Center 225 N Humphreys Blvd Ste 501 Memphis, TN

Smart Barcoder User Guide

USPS Pricing Engine SDK

USPS Proposed CPI & Exigent Pricing Overview Start Time: 1:00 PM EST

International Label APIs

.NET Software Development Kit (SDK): Developing Applications Using the USPS Service Delivery Extensions. Last Modified: August 20, 2014

USPS Postal Rates AN EVERYDAY MAILING REFERENCE. Your guide to postage rates and common types of mail. Effective April 10, 2016

January MSMA Web Learning Event

January 2, 2011 U.S. Postal Service Price Change

COMP9321 Web Application Engineering. Extensible Markup Language (XML)

Addressing. 1.0 Elements of Addressing. Addressing: Elements of Addressing. 1.0 Elements of Addressing. Overview

PonyExpress API V1. The PonyExpress API allows you to perform operations that you do with our web client.

USPS 2015 Rate Change Update Version

B oth element and attribute declarations can use simple types

Parcel Data Exchange PDX Web Application Customer Guide

USPS Postal Rates 2017

343 Prices and Eligibility

Mail Entry & Payment Technology PostalOne! January 2014 Release Training

January 2017 Proposed Structural Changes

AutomationDirect.com Order Import Feature

Domestic Competitive Products Pricing and Mailing Standards Changes. SUMMARY: The Postal Service is amending Mailing Standards of the United

Release Overview. January 2019 Changes. Pre Release Document EXTERNAL

Addressing: Issues & Opportunities for Government Agencies. Jim Wilson Manager, Address Management United States Postal Service

U.S. Commercial Card Application Guide

PostalOne! System Release Pre-Release Notes

Express Shipping Creating a Domestic Shipping Label with a Yale Addressee

Simplified Mailing Process // User Guide. Every Door Direct Mail

January 2009 USPS Price Change

USPS Pricing Engine SDK

Certificate of Mailing USPS Customer Webinar

Be Prepared for the Intelligent Mail Package barcode (IMpb)* *Excerpted from Neopost webinar 4/24/14

United States Postal Service Web Tool Kit Development Guide

Express Mail Label API USPS Web Tools Application Programming Interface User s Guide Document Version 3.5 (7/11/2017)

Quick Start Instructions for Using Postage $aver for Windows with dbase files (.dbf)

Delivering Assessment Notices. Electronic Notices & Paper Mail

Settings Options User Manual

SURROUNDING LAND OWNER NOTICE/CALL UP OPTION NOTIFICATION PROCEDURE

Experience extraordinary merge/purge power

Expand Your Services with Every Door Direct Mail NPOA PRINT OWNERS ASSOCIATION

Price Change Proposed. October 2018

New USPS Tracking Barcodes And Label Changes

Quick Start Instructions for Using Postage $aver for Windows with Microsoft Excel files (.xls or.xlsx)

NEW ADDRESS REQUIREMENTS

Mailing Agent (If other than permit holder) Name, Address, Telephone CRID

USPS meter label solution

January 27, 2019 Releases. Release Notes

Let s Get Connected. with. USPS Delivery Partner Program

Intelligent Mail Package barcode (IM pb): What you need to know to be ready! FAQ s

Improving every step of creating, tracking and managing U.S.P.S. Certified Mail. How the Service Works, Step by Step March 2018

Software Vendor Certification for Full Service Unique IMb

Us priority mail tracking a package

USPS Price List Prices Effective January 22, 2012

Release Overview. January 2019 Proposed Changes DEPLOYMENT: JANUARY 13, 2019 EFFECTIVE: JANUARY 27, Pre Release Document EXTERNAL

Transcription:

Merchandise Return Bulk Label API USPS Web Tools Application Programming Interface User s Guide Document Version 1.3 (01/17/2016)

Contents Introduction to Web Tools... 3 Before you get started:... 3 USPS Merchandise Return Bulk Label API... 3 Overview... 3 API Signature... 4 Tag Descriptions... 4 Electronic Merchandise Return Service Bulk Response... 8 Merchandise Return Bulk Label Example... 9 Error Responses... 9 ii

Introduction to Web Tools This document contains a Reference Guide to the Merchandise Return Bulk Label API. See the Developer s Guide to learn the administrative process for gaining access to the Web Tools APIs as well as the basic mechanism for calling the APIs and processing the results. The Developer s Guide also contains information on testing and trouble-shooting. Note: The Request Parameter sections present the XML input tags for generating live requests along with the restrictions on the values allowed. An error message will be returned if an incorrect value is entered. Also, be aware of the maximum character amounts allowed for some tags. If the user enters more than those amounts, an error will not be generated. The Web Tool will simply pass in the characters up to the maximum amount allowed and disregard the rest. This is important since the resulting value could prevent a correct response. When building the XML request, pay particular attention to the order and case for tags. An error message will be returned if an incorrect value is entered. Remember that all data and attribute values in this document are for illustration purposes and are to be replaced by your actual values. Before you get started: For information on registering and getting started with Web Tools, please refer to the Step-By-Step guide found on the Technical Documentation section of the Web Tools page on usps.com/webtools. Label APIs require extra permissions; contact the Internet Customer Care Center uspstechnicalsupport@mailps.custhelp.com to request access. Indicate Label API Access in the subject line and explain in the body of the email: 1. How the shipper intends to purchase and apply postage to the labels 2. If the label image provided by the API will be modified in any way by the shipper or the software USPS Merchandise Return Bulk Label API Overview The Merchandise Return Bulk Label Web Tool lets customers to receive Merchandise Return labels in bulk. The Merchandise Return Bulk Label API returns Merchandise Return labels that are requested by the client. 3

API Signature Scheme Host Path API XML https:// secure.shippingapis.com /ShippingAPI.dll?API=MerchReturnV4Bulk &XML=(see below) https:// secure.shippingapis.com /ShippingAPI.dll?API=MerchReturnV4BulkCertify &XML=(see below) Note: The MerchReturnV4BulkCertify API signature is for testing purposes and will not generate usable labels and barcodes. Tag Descriptions Tag Name Occurs Description Type Validation EMRSV4.0BulkRequest @USERID Option Revision LabelCount ImageParameters ImageParameter RetailerName RetailerAddress PermitNumber repeating up to 1 times Required Once Optional Group Used with API=MerchReturnV4Bulk This attribute specifies your Web Tools ID. See the Developer's Guide for information on obtaining your USERID. Reserved for future use This is for versioning of the API's and for triggering response tags for future versions. In this API use a value of 1 to trigger new functionality. For Example: 1 Number of labels to produce Optional Image options Name of Retailer receiving the return package. Address of Retailer receiving the return package. Permit number provided to Retailer by the local post office. (group) NMTOKEN (group) String default=leftwindow enumerations= RIGHTWINDOW LEFTWINDOW minlength=0 \d{1} Min = 1 Max = 30 Enumeration = 4X6LabelP Enumeration = 2UP minlength=1 maxlength=50 minlength=1 maxlength=50 \d+ 4

Tag Name Occurs Description Type Validation PermitIssuingPOCity PermitIssuingPOState PermitIssuingPOZip5 PDUFirmName PDUPOBox PDUCity PDUState PDUZip5 PDUZip4 ServiceType DeliveryConfirmation InsuranceValue WeightInPounds WeightInOunces Post Office City that issued the permit. Post Office State that issued the permit. ZIP Code of Post Office that issued the permit. Postage Delivery Unit Name Postage Delivery Unit Post Office Box or Street Address. Postage Delivery Unit City. Supply either City and State or PO Box with ZIP Code. Postage Delivery Unit State. Supply either City and State or PO Box with ZIP Code. Postage Delivery Unit ZIP Code. Supply either City and State or PO Box with ZIP Code. Postage Delivery Unit ZIP+4 Code. Enter one of the valid entries: Priority (for Priority Mail), First Class Package Service, Ground. Enter "true" for Delivery Confirmation. Numeric currency with dollars and cents (no dollar sign). If insurance is not, leave value blank. A value of 0.00 will result in an error being returned. Estimated weight is allowed. First Class Mail cannot exceed 13 ounces. Value must be numeric. boolean decimal integer integer minlength=1 maxlength=15 \w{2} minlength=2 maxlength=2 \d{5} minlength=0 maxlength=50 minlength=1 maxlength=24 minlength=0 maxlength=20 \w{2} minlength=2 maxlength=2 \d{5} \d{4} enumeration= Priority First Class Package Service Ground minexclusive=0.0 maxlength=0 mininclusive=0 maxinclusive=70 mininclusive=0 maxinclusive=1120 5

Tag Name Occurs Description Type Validation ImageType SenderName SenderEMail RecipientName RecipientEMail AllowNonCleansedDestAddr AllowNonCleansedCustAddr NineDigitRoutingZip EMRSV4.0BulkRequest One of the valid entries: PDF, TIF. (Note to BSA reviewing this. TIF is a valid type yet was missing. I added it. Was it missing for a reason? Delete comment when finished.) The name of the person or company sending the email. Note: no email is returned when generating a Sample label request. E-mail address of sender. Valid e-mail addresses must be used. Note: No e-mail is returned when generating a Sample label request. The name of the person or company receiving the email. Note: no email is returned when generating a Sample label request. E-mail address of recipient. Valid e-mail addresses must be used. Note: No e-mail is returned when generating a Sample label request. Value of 'true' bypasses destination address cleansing. Non-cleansed destination addresses may result in undeliverable packages. Value of 'true' bypasses customer address cleansing. Non-cleansed customer addresses may result in undeliverable packages. Value of true generates label barcode with nine digit routing zip code. boolean boolean boolean (alias) enumeration=pdf enumeration=tif ([\w\-\.]+)@(([\w- ]+\.)+)[a-za-z]{2,4} ([\w\-\.]+)@(([\w- ]+\.)+)[a-za-z]{2,4} default=false default=false default=false 6

Request Example?xml version="1.0" encoding="utf-8"?> MRSV4.0BulkRequest USERID="XXXXXX"> <Option></Option> <LabelCount>3</ LabelCount > <ImageParameters> <ImageParameter>4X6LabellP</ ImageParameter > <ImageParameter>2UP</ ImageParameter > </ ImageParameters > <RetailerName>XYZ Corp.</RetailerName> <RetailerAddress>123 Main St</RetailerAddress> <PermitNumber>293829</PermitNumber> <PermitIssuingPOCity>New York</PermitIssuingPOCity> <PermitIssuingPOState>NY</PermitIssuingPOState> <PermitIssuingPOZip5>10001</PermitIssuingPOZip5> <PDUFirmName>PDU Firm Co.</PDUFirmName> <PDUPOBox>PO Box 100</PDUPOBox> <PDUCity>Wilkes Barre</PDUCity> <PDUState>PA</PDUState> <PDUZip5>18702</PDUZip5> <PDUZip4>1234</PDUZip4> <ServiceType>Priority</ServiceType> <DeliveryConfirmation>False</DeliveryConfirmation> <InsuranceValue /> <MailingAckPackageID>ID00001</MailingAckPackageID> <WeightInPounds>0</WeightInPounds> <WeightInOunces>10</WeightInOunces> <RMA>RMA 123456</RMA> <RMAPICFlag>False</RMAPICFlag> <ImageType>TIF</ImageType> <RMABarcode>False</RMABarcode> </EMRSV4.0BulkRequest> 7

Electronic Merchandise Return Service Bulk Response Response Parameters Tag Name Occurs Description Type Validation / MerchandiseReturnLabel / InsuranceCost / PDUFirmName / PDUPOBox / PDUCity / PDUState / PDUZip5 / PDUZip4 / Postnet / LogMessage EMRSV4. 0BulkResponse repeating up to 1 times Base64 representation of the label in the form selected (PDF). Cost of the insurance. Postage Delivery Unit Name. Returned if provided in request XML. Postage Delivery Unit Post Office Box or Street Address. Postage Delivery Unit City. Supply either City and State or PO Box with ZIP Code. Postage Delivery Unit State. (group) base64binary decimal Postage Delivery ZIP Code. \d{5} Postage Delivery Unit ZIP+4 Code. \d{4} Postage Delivery Unit text representation of Postnet barcode A text message for integrators of this API. It may contain additional information about this particular request/response, or general information about the API or Web Tools. In typical implementations, whenever this tag is encountered, the message is written to the console log file for later analysis. Used with API=MerchReturnV4Bulk (alias) If an error message is returned, refer to the Error Responses section for an explanation. 8

Merchandise Return Bulk Label Example Error Responses Error conditions are handled at the main XML document level. When parsing, it is best to check for an error document first before checking for good data. Error documents have the following format: <Error> <Number></Number> <Source></Source> <Description></Description> <HelpFile></HelpFile> <HelpContext></HelpContext> </Error> Where: 9

Number = the error number generated by the Web Tools server. Source = the component and interface that generated the error on the Web Tools server. Description = the error description. HelpFile = [reserved for future use]. HelpContext = [reserved for future use]. Errors that are further down in the hierarchy also follow the above format. An <Error> element may be returned at the top (response) level if there is a problem with the syntax of the request, or if a system error occurs If you need assistance with an error response, contact the Internet Customer Care Center uspstechnicalsupport@mailps.custhelp.com. 10