USPS Priority Mail API: Is the Days field business days? - usps

According to the USPS Web Tools documentation, this is a sample output of the Priority Mail time in transit API:
<PriorityMailResponse>
<OriginZip>90201</OriginZip>
<DestinationZip>21114</DestinationZip>
<Days>4</Days>
</PriorityMailResponse>
The description of the Days tag just says "Numbers of days expected to deliver". Does this mean actual days or business days? Do I have to take weekends and holidays into account?

Related

Best way to skip a payment with Stripe Subscriptions (give a free month)?

I am looking to implement a referral program for our app that will gives users a free month off their subscription every time they have a successful referral.
I came across this question Stripe: add free days to a subscription but it is 6 years old so I am not sure if this is still the way to go since Stripe has updated their service and API multiple times since then.
Reading through the Stripe Docs it seems there may be 2 ways to implement:
Use a coupon and apply it against the customer's subscription. (Stripe Subscription Discounts)
Move the date for their billing cycle by 1 month (Stripe Subscription Billing Cycles)
I would imagine this is a common thing. Is there a best practice on how to proceed?
I ended up contacting Stripe customer support and option 1 is the way to go (coupons).
Basically you create a coupon that deducts 100% of the subscription fee and you enable it for 1 month only. This will effectively skip 1 month's payment. It can be enabled manually via the Stripe Dashboard or the API.
Follow this link for more details: Stripe Coupons

Salesforce Send Email before Expiration Date

I would like to send email notification to Clients 1day before it's 30Days Trial Subscription ends based on the CreatedDate. Any suggestions would be appreciated.
Thank you!
Create an Workflow Rule and setup an Email Alert. You can create the Workflow Rule based off of a date and have it send an email template.
Create a Time-Dependent Workflow Action on a workflow rule when the record is created. The Time-Dependent Workflow Actions should be based on the Subscription End Date and should be 31 Days Before Subscription End Date. That way you don't have to worry about it. It'll just happen.
You can always look up pending actions in the Time-Based Workflow page in the setup area
In your question you mentioned the Created Date, if the Subscription end date is a fixed date from the created date that just factor that into the days before, but I think a separate end date gives more flexibility for scenarios such as extending a subscription.

How to remove 'SAMPLE DO NOT MAIL' from USPS shipping API image

I am having problem with USPS shipping API
Here is my XML
https://secure.shippingapis.com/ShippingAPI.dll?API=DelivConfirmCertifyV4&XML=%3C?xml%20version=%221.0%22%20encoding=%22UTF-8%22%20?%3E%3CDelivConfirmCertifyV4.0Request%20USERID=%22228OURBA2607%22%20PASSWORD=%22728ZK94KL112%22%3E%3CRevision%3E2%3C/Revision%3E%3CImageParameters%20/%3E%3CFromName%3EJohn%3C/FromName%3E%3CFromFirm%3E%20%3C/FromFirm%3E%3CFromAddress1%3EFlat%201%3C/FromAddress1%3E%3CFromAddress2%3ERoad%201%3C/FromAddress2%3E%3CFromCity%3ENY%3C/FromCity%3E%3CFromState%3ENY%3C/FromState%3E%3CFromZip5%3E12345%20%3C/FromZip5%3E%3CFromZip4/%3E%3CToName%3E%20Mozilla%20Foundation%20%3C/ToName%3E%3CToFirm%3E%20%3C/ToFirm%3E%3CToAddress1%3E%20Building%20K%20%3C/ToAddress1%3E%3CToAddress2%3E%201981%20Landings%20Drive%20%3C/ToAddress2%3E%3CToCity%3E%20Mountain%20View%3C/ToCity%3E%3CToState%3E%20CA%20%3C/ToState%3E%3CToZip5%3E%20%20%2094043%20%3C/ToZip5%3E%3CToZip4%20/%3E%3CWeightInOunces%3E%203%20%3C/WeightInOunces%3E%3CServiceType%3EPriority%3C/ServiceType%3E%3CImageType%3ETIF%3C/ImageType%3E%3C/DelivConfirmCertifyV4.0Request%3E
It return the correct image but on top of it it is written SAMPLE DO NOT MAIL. How to remove that?
I assume that you have already registered for USPS Web Tools here:
https://secure.shippingapis.com/registration/
And have received confirmation from USPS that your account is active:
If you need to set up USPS or your customers are receiving this error on check out (See below) you should confirm the following
Confirm that our USPS API access is approved
Confirm that it is not in test mode and is in production mode
If USPS says your account is active, this does not mean it is in production mode, - you need to call USPS and specifically request that it be moved to production mode after your account has been approved. A good idea is to perform this quick test:
Insert the following into your browser with your own USERID in place of the XXXX in the URL of any browser:
https://secure.shippingapis.com/ShippingAPITest.dll?API=CarrierPick... USERID="XXXX">ABC Corp.Suite 7771390 Market StreetHoustonTX770581234
If your USPS account is active, it should accept the username.
Confirm that your username and password is for this site only. USPS only allows 1 domain per account.
http://production.shippingapis.com/ShippingAPI.dll
The problem is that by default, you don’t have access to USPS’s production API. They have to approve you first. Keep in mind that they only allow you to use it on one web site per account, so if you’re setting Magento up for a client, customer, or other business entity other than your own you should set up a separate USPS account for them.
That's why you're receiving this text - "Sample Do Not Mail" over the generated shipping label.
You can set up your USPS WebTools account here:
http://www.usps.com/webtools/
Once you have set up your account, they will give you access to the testing environment.
The URL for the USPS test API is:
http://testing.shippingapis.com/ShippingAPITest.dll
I recommend asking USPS to turn on production mode. When you are approved by USPS for the production API, you should use the following URLs:
http://production.shippingapis.com/ShippingAPI.dll
https://secure.shippingapis.com/ShippingAPI.dll
When you have completed your testing, email the USPS Internet Customer Care Center (ICCC). They will switch your profile to allow you access to the production server and will provide you with the production URLs.
The ICCC is staffed as follows:
Monday through Friday from 8:00AM to 8:30PM Eastern Time
Saturday from 8:00AM to 6:00PM Eastern Time
Sunday and Postal Holidays - Closed except for the following Holidays: Martin Luther King; President's Day; Columbus Day; & Veteran's Day with hours from 9:00AM to 6:00PM Eastern Time
E-mail: uspstechsupport#esecurecare.net
Telephone: 1-800-344-7779
But remember, it’s very important that you set up a separate USPS account for each web site (or at least one per domain). USPS will disable your access to their production server if you are caught using your account on multiple web sites.
To request access to the USPS production API, fill out the form here:
http://www.usps.com/webtools/webtoolsapirequestform.htm
USPS doesn’t allow you to use their API for batch processing or data cleansing, so be sure to NOT check these boxes on the request form.
Once USPS gives you access to their production API server, everything should work corresponding to all USPS shipping options. If you are still having trouble, again check that you have access to USPS’s production API server.
From https://www.usps.com/business/web-tools-apis/webtools-faqs.pdf
The API containing "Certify" is our testing API which will only print
labels with the sample watermark. In order to generate actual labels,
you must remove "Certify" from your Web Tools XML requests.
Additionally:
See below 2.3 for additional details. Integrators should note that our
“Certify” test APIs are intended for limited functional verification
of API requests/responses. Any secondary processes, s uch as creation
of a SCAN Form or Shipping Services File, are not supported with
“Certify” APIs. For expanded functional testing support of Web Tools
APIs, users should contact the USPS IT HelpDesk at
https://usps.force.com/emailus/s/ Select (Web Tools) and describe your
testing needs in detail.

How long does it take to clear the first billing charge for my google app engine app?

I've made an app in order to send large mailings. Google enforces a 100 recipient a day maximum as I read on the quota page:
100 messages daily until first charge cleared; 20,000 messages per day thereafter
After deploying the app I've intentionally maxed out the 100 recipient limit, which adds a charge to my billing account of $0.01 This is also shown in my billing history.
However I've also set a weekly budget of $2.10 The one time charged associated with this budget has been made succesfully according to my Google Wallet. Looking at my current quota's it seems it's still limited to 100 even after waiting for 24 hours for my quota's to reset. Has anybody had the same problem? I don't know what to do next or how to interpret the "leave grace period" mentioned in my billing history.
If you were a new customer, you would have to wait one week, but you have already cleared a charge so you should be able to exceed the 100 user quota immediately. You may want to try to send mail and see if you get quota exceeded exceptions.
The "Leave Grace Period" messages mean that a charge previously failed putting you in the Grace Period. You then later successfully charged your credit card and left the Grace Period.
App Engine has announced that it will shortly be changing its billing system. So this answer will be outdated within a few weeks.

appengine Email Quota Reduced To 20100 ( 20000 billable ) emails at 2012-12-08

I use GoogleAppEngine for my application.
Billing is enabled and it sends daily newsletter Emails for my company subscribers.
and there was no problem until Dec-08-2012
I was sending up to 27000 emails per day (there was no limitation)
after this date my account was restricted
with daily limit (20100 emails per day (20000 billable)).
Can anyone please explain why this limit was set and if it will be increased or decreased in future?
There is no change in documentation
Google App Engine Quotas Mail
but daily sending limit is reduced now.
Thank you.

Resources