How to connect OnTime to ShippyPro
Discover here how to connect OnTime to ShippyPro in just a few steps
Summary
- Before you start
- How to connect OnTime
- Supported services and features
- Additional options
- Troubleshooting & Errors
- FAQ
1. Before you start
To connect OnTime you need an active OnTime account. Ask your OnTime sales contact for these credentials:
- API Key
- Username
- Password
OnTime issues these credentials for each client account. They are different from your OnTime web portal login.
Also check your OnTime contract for:
- Product Code: the service code agreed with OnTime. If you leave it empty, your account's default service is used.
- Origin Center: only needed if you ship from more than one OnTime dispatch center.
- Package Type: only needed for products that require it (e.g. product 27). See section 3.
Please note: OnTime and Envialia are the same company, but they are two separate integrations in ShippyPro. The OnTime integration uses OnTime's new REST API and needs its own credentials, so your Envialia credentials will not work here.
2. How to connect OnTime
- Log in to ShippyPro and go to the Carriers page.
- Click on the OnTime logo.
- Fill in the connection fields (see the table below).
- Click Connect to save.
Modal fields
|
Field |
Required |
Description |
|---|---|---|
|
API Key |
Yes |
The API Key issued by OnTime |
|
Username |
Yes |
The API username issued by OnTime (e.g. REST_CLIENTNAME) |
|
Password |
Yes |
The API password issued by OnTime |
|
Label Type |
Yes |
PDF A4 (default) or ZPL for thermal printers |
|
Product Code |
No |
The OnTime service code from your contract (max 20 characters). Leave empty to use your account's default service |
|
Package Type |
No |
The OnTime package/pallet type code (see section 3). Required for some products, such as 27. Leave empty to let OnTime derive it from weight and volume |
|
Origin Center |
No |
Your OnTime dispatch center code, if you have more than one (max 32 characters). Leave empty to use your primary center |
|
Test Mode |
No |
Connects to OnTime's test environment. See section 4 |
3. Supported services and features
Services
OnTime services are set in each client's contract and vary from account to account, so there is no service dropdown. Enter the code you agreed with OnTime in the Product Code field, or leave it empty to use your account's default service.
Destinations
- National: shipments from Spain within Spain.
- International: shipments from Spain to the destinations covered by your contract (e.g. Portugal). Customs data is not sent, and OnTime rejects postal codes it doesn't cover.
Package types
Use these codes in the Package Type field. Your account is only authorised for some of them, so check with OnTime which ones you can use.
|
Code |
Description |
Height (cm) |
Width (cm) |
Length (cm) |
Max weight (kg) |
|---|---|---|---|---|---|
|
981 |
EUR MINI |
60 |
80 |
60 |
100 |
|
1001 |
EUR PEQUEÑO |
80 |
80 |
120 |
200 |
|
1002 |
EUR MEDIO |
180 |
80 |
120 |
400 |
|
1003 |
EUR VOLUMINOSO |
220 |
80 |
120 |
500 |
|
1004 |
EUR GRANDE |
180 |
80 |
120 |
700 |
|
1005 |
EUR SUPER |
200 |
80 |
120 |
900 |
|
1006 |
EUR MEGA |
220 |
80 |
120 |
1200 |
|
1021 |
USA MINI |
60 |
100 |
60 |
100 |
|
1041 |
USA PEQUEÑO |
80 |
100 |
120 |
200 |
|
1022 |
USA MEDIO |
180 |
100 |
120 |
400 |
|
1042 |
USA VOLUMINOSO |
220 |
100 |
120 |
500 |
|
1023 |
USA GRANDE |
180 |
100 |
120 |
700 |
|
1043 |
USA SUPER |
200 |
100 |
120 |
900 |
|
1044 |
USA MEGA |
220 |
100 |
120 |
1200 |
Features
|
Feature |
Supported |
Notes |
|---|---|---|
|
PDF label |
Yes |
A4 page with one label per parcel |
|
ZPL label |
Yes |
For thermal printers |
|
Multiparcel |
Yes |
All parcels in one shipment, one label per parcel |
|
Cash on Delivery |
Yes |
Amount in EUR |
|
Return labels |
Yes |
|
|
Tracking |
Yes |
Tracking updates are retrieved automatically |
|
Proof of Delivery (POD) |
Yes |
Available once the parcel is delivered |
|
Delete shipment (Void) |
No |
Ask OnTime directly to cancel a shipment |
|
Live rates |
No |
|
|
Pickup booking |
No |
|
|
Closeout / manifest |
No |
|
|
Insurance |
No |
|
|
Customs documents (CN22/CN23, paperless) |
No |
|
|
Pickup/drop-off points (PUDO) |
No |
4. Additional options
Label Type
- PDF A4: OnTime returns an A4 page with one label per parcel, stacked vertically (about 210 x 100 mm each). The label size can't be changed.
- ZPL: choose this if you print on a thermal label printer.
Test Mode
Enable Test Mode to connect to OnTime's test environment. You'll need test credentials from OnTime.
Warning: shipments created in Test Mode are not dispatched. Remember to disable Test Mode and use your production credentials before you start shipping.
Tracking and Proof of Delivery
ShippyPro updates OnTime tracking automatically. Tracking and POD only work for shipments created through ShippyPro, because OnTime needs the tracking number together with the destination postal code, which ShippyPro saves when the label is created.
Your customers can also track parcels on OnTime's public tracking page: https://localizador.ontime.es/?localizador={trackingNumber}&cp={destinationPostalCode}
5. Troubleshooting & Errors
|
Error |
Cause |
Solution |
|---|---|---|
|
Invalid credentials / Unauthorized |
The API Key, Username or Password is wrong |
Check the credentials issued by OnTime and enter them again. Make sure you're not using Envialia credentials |
|
El Centro es erróneo or OnTime returned no shipment and no error detail |
The account isn't fully set up on OnTime's side for that origin center or product |
Check the Origin Center and Product Code fields, then ask OnTime to check your account setup |
|
CLASIFICACION EN TIPOS DE BULTO OBLIGATORIA |
The selected product (e.g. 27) requires a package type |
Fill the Package Type field with a code authorised for your account |
|
INVALID_PACKAGE_TYPE |
The package type isn't authorised for your account and origin center |
Use one of the allowed codes listed at the end of the error message, or ask OnTime |
|
INVALID_POSTAL_CODE |
OnTime doesn't serve that postal code, or the format is wrong |
Check the recipient's postal code and that the destination is covered by your contract |
|
DUPLICATE_SHIPMENT or the same order is rejected when shipped again |
OnTime doesn't accept the same order reference twice |
Check whether a label already exists for the order before shipping it again |
|
cURL error 28: Operation timed out |
OnTime took too long to answer |
The shipment may still have been created on OnTime's side. Check with OnTime before shipping the order again |
|
POD_NOT_AVAILABLE |
The parcel hasn't been delivered yet |
Try again after delivery |
|
Requires the receiver postal code (tracking or POD) |
The shipment was not created through ShippyPro |
Track the shipment directly on OnTime's portal |
|
Internal Server Error |
Temporary issue on OnTime's or ShippyPro's side |
Wait a few minutes and try again. If it persists, contact our Support team |
6. FAQ
Can I use my Envialia credentials to connect OnTime?
No. OnTime and Envialia are the same company, but the OnTime integration uses a new API with its own credentials. Ask OnTime for your API Key, Username and Password.
Can I delete a shipment created with OnTime?
No. OnTime doesn't allow shipments to be cancelled from ShippyPro. To cancel a shipment, contact OnTime directly.
Which service codes can I use?
Service codes are defined in your OnTime contract and vary from account to account. Ask OnTime for your codes, or leave Product Code empty to use your default service.
Why is my PDF label an A4 page?
OnTime only returns PDF labels as A4 pages, with one label per parcel. If you use a thermal printer, set Label Type to ZPL.
Is the Cash on Delivery amount printed on the label?
The COD amount is registered on the shipment with OnTime (in EUR), but it may not be printed on the label.
Can I ship internationally with OnTime?
Yes, from Spain to the destinations included in your OnTime contract. Customs documents are not supported.
Can I see live rates or book pickups for OnTime?
Not at the moment. Live rates, pickup booking and closeout are not available for OnTime.