Discussions
Delivery pick up date error
The first page is addressed with a function to receive all available shipping methods.
In the second contact, the availability of each of the shipping methods is checked starting 48 hours from the moment of the order and according to the result, the available shipping methods are presented to the customer.
And in the third function, the choice of the shipping method chosen by the customer is sent to easyship.
EasyShip returns an error (that is, there is no available collection date in the shipping management)
What is the problem with the reference:
REQUEST:
{
"courier_id": "b6f1d8c1-7e1e-465e-aa64-880d34662e54",
"preferred_date": "2022-09-22",
"preferred_max_time": "2022-09-22T20:00",
"preferred_min_time": "2022-09-22T08:00",
"easyship_shipment_ids": [
"ESUS109151039"
]
}
RESPONSE:
{
"message": "Failed to create Pickup",
"errors": [
"Something went wrong when requesting a pickup to USPS, please try later or contact Easyship Customer Service",
[
{
"code": "1021313",
"content": "Invalid/missing value for address. - [-2147217999] Address supplied is not specific, please provide more information."
}
]
],
"pickup_fee": 0.0,
"available_balance": 955.3
On the other hand, in an application with a later date (starting in another week) the shipment is received and returns data for pickup and shipment:
REQUEST:
{
"courier_id": "b6f1d8c1-7e1e-465e-aa64-880d34662e54",
"preferred_date": "2022-09-27",
"preferred_max_time": "2022-09-27T20:00",
"preferred_min_time": "2022-09-27T08:00",
"easyship_shipment_ids": [
"ESUS109151039"
]
}
RESPONSE:
{
"courier_id": "b6f1d8c1-7e1e-465e-aa64-880d34662e54",
"courier_name": "USPS - Priority Mail",
"easyship_shipment_ids": [
"ESUS109151039"
],
"available_balance": 955.3,
"pickup": {
"easyship_pickup_id": "PUS14629991",
"preferred_min_time": "2022-09-27T08:00",
"preferred_max_time": "2022-09-27T20:00",
"pickup_reference_number": "Pending",
"pickup_fee": 0.0,
"provider_name": "Standard Pickup",
"shipments_count": 1,
"total_actual_weight": "2.0",
"pickup_state": "pending-delayed-api-request",
"address": {
"line_1": "200 Continental Dr Ste",
"line_2": null,
"line_3": null,
"postal_code": "19713",
"city": "Newark",
"state": "New Jersey",
"country": "United States",
"contact_email": "[email protected]",
"contact_phone": "+01 0505747479",
"company_name": "sharon doron",
"contact_name": "sharon doron"
}
}
}