Skip to content

Instantly share code, notes, and snippets.

@danhawkins
Last active September 18, 2021 16:47
Show Gist options
  • Select an option

  • Save danhawkins/e57a893356b7b2ee155f0c8f5ad1210c to your computer and use it in GitHub Desktop.

Select an option

Save danhawkins/e57a893356b7b2ee155f0c8f5ad1210c to your computer and use it in GitHub Desktop.
Error codes

Generic server

There was an unknown error that occurred on our side. Our developers have been made aware of this issue and will be working to correct it as soon as possible. If this problem persists, please contact support.

Attributes Description
http_status_code 400
human_message Sorry, we are unable to handle that request at the moment.
id 1001
key generic_server

Generic user

Something you sent us in your request was not recognized correctly. Please check out API documentation and ensure your request conforms. If you are sure you are conforming to the documentation, feel free to contact support.

Attributes Description
http_status_code 422
human_message Sorry, we did not understand your request.
id 1002
key generic_user

Not authorised

We either could not find the user, app or resource you are trying to authenticate with, or the password or secret you provided is invalid. Perhaps you do not have the required role to perform this action, or your authentication credentials are incorrect?

Attributes Description
http_status_code 403
human_message Sorry, you are not authorised to do that.
id 1004
key not_authorised
details {"detail"=>"Access denied."}

Policy check failed

One of our logic rules governing the manipulation of resources has failed and we are unable to continue with your request. This generally occurs when you are trying to perform an operation that does not make logical sense when combined with the current state of the system. Please check your request against our API documentation or contact support for help.

Attributes Description
http_status_code 422
human_message Sorry, one of our precondition checks failed and we can not continue.
id 1005
key policy_check_failed

Invalid transition

It seems like the new state you selected cannot be transitioned to from the current state. We provide available_states as a property which contains the states available to you.

Attributes Description
http_status_code 422
human_message Sorry, the transition you tried to make is not possible from the current state.
id 1006
key invalid_transition

Not found

One of the resources you requested was not found. Most likely it was a resource implied in the URL. Ensure you are using the correct identifers in your URL. Alternatively, it might be an implied resource that is missing. This may be due to data you are posting.

Attributes Description
http_status_code 404
human_message Sorry, one the resources you requested could not be found.
id 1007
key not_found
details {"detail"=>"Not found."}

Not saved

The resource you tried to save could not be persisted to our database. This is usually due to invalid attributes or missing relations between resources. Please check the attributes you are posting and try again.

Attributes Description
http_status_code 422
human_message Sorry, this item could not be saved.
id 1008
key not_saved

Not destroyed

The resource you tried to destroy does either not exist, has already been destroyed, or you are not authorised to destroy it.

Attributes Description
http_status_code 422
human_message Sorry, this item could not be destroyed.
id 1009
key not_destroyed

Json parse error

The JSON in your request could not be correctly parsed. Please check your syntax and try again.

Attributes Description
http_status_code 400
human_message The JSON you submitted could not be parsed.
id 1010
key json_parse_error

Value too long

One of the attributes submitted was too long and could not be parsed. Please check your syntax and try again.

Attributes Description
http_status_code 422
human_message One of the attributes submitted was too long and could not be parsed.
id 1011
key value_too_long

Restricted area policy check failed

One or more of the locations you're trying to create an order in is set right now as a restricted area. This means that, for some reason, we cannot offer service in that area at this time.

Attributes Description
http_status_code 422
human_message Sorry, one of the locations is in a restricted area
id 1012
key restricted_area_policy_check_failed

Job not editable

The job specified is not in an editable state. Once a job is submitted, you are not able to modify pickups, dropoffs or order items as it has already been sent to dispatch. If you require assistance, please contact our support team.

Attributes Description
http_status_code 400
human_message The job is not in an editable state.
id 2001
key job_not_editable

Unknown jobs timeframe

The timeframe you are requesting was not recognised. Currently we only support 3 general timeframes, "past", "present" and "future". Please ensure you are submitting one of those 3, or omit the attribute.

Attributes Description
http_status_code 422
human_message Timeframe not recognised. Must be past, present or future.
id 2002
key unknown_jobs_timeframe

Collection too early

The earliest_collection_at you provided must be less than what was originally provided. Specifying a collection time earlier than this is not possible.

Attributes Description
http_status_code 422
human_message The earliest_collection_at must be greater than current value.
id 2003
key collection_too_early

Missing waypoint

When specifying waypoint order, you must provide all waypoint ids. You may have forgotten one?

Attributes Description
http_status_code 400
human_message All waypoint ids must be supplied when sorting.
id 2004
key missing_waypoint

Invalid waypoint sorting

Currently, we do not support dropoff waypoints to occur before any pickup waypoints. If you have any problems, please contact support.

Attributes Description
http_status_code 422
human_message Pickups must occur before all dropoffs.
id 2005
key invalid_waypoint_sorting

Not transmittable

We can not transmit jobs to venues until the customer has submitted the job.

Attributes Description
http_status_code 422
human_message Cannot transmit a pickup until job is submitted.
id 2006
key not_transmittable

No transmittable location

We can not transmit this job, as there is no valid location capable of receiving the transmission. Please ensure this location has been set up correctly as a partner and ownership has been assigned correctly.

Attributes Description
http_status_code 422
human_message Cannot transmit without a location capable of receiving the transmission.
id 2007
key no_transmittable_location

Job without pickup

The operation you requested was halted due to the job missing a pickup or pickup waypoint. Please check your pickup has been created first, and correctly references the job before attempting this operation.

Attributes Description
http_status_code 422
human_message This job is missing a pickup.
id 2008
key job_without_pickup

Job missing geopoints

We are not able to accurately price your job unless we are given exact locations for all required waypoints. Please check your submission and try again.

Attributes Description
http_status_code 422
human_message Job distance can not be calculated with missing locations.
id 2009
key job_missing_geopoints

Job can not transition

The operation you requested was halted because the job pickup or pickup waypoint or venue requires order placing from Quiqup. Since the order has been placed we can not cancel the order.

Attributes Description
http_status_code 422
human_message The job can not be cancelled because we have placed the order with the venue.
id 2010
key job_can_not_transition

Ean not found

The provided EAN is not present in the list of allowed eans of the specified item or it's child items. Please check your EAN or Item.

Attributes Description
http_status_code 404
human_message The provided ean is not present in the list of allowed eans of specified item.
id 2011
key ean_not_found

Job can not charge amount too small

The operation you requested was halted because the job was attempted to be charged, but the amount to charge was below our payment provider will allow.

Attributes Description
http_status_code 422
human_message The job can not be charged because the amount attempted is below our payment providers minimum
id 2012
key job_can_not_charge_amount_too_small

Waypoints distances too large

The job can not be created due to a distance between waypoints greater than 20km

Attributes Description
http_status_code 422
human_message Distance between waypoints is greater than 20km
id 2013
key waypoints_distances_too_large

Unapplied promo code present

The promo code you are attempting to use cannot be added to your account at present as there is already a unused promo code present, and we only allow one promo code to be used at a time.

Attributes Description
http_status_code 422
human_message Promo code cannot be applied as there is an existing unused one.
id 2014
key unapplied_promo_code_present

User cannot select payment mode

You are not authorised to select a payment mode.

Attributes Description
http_status_code 422
human_message Sorry, but you're not authorised to select a payment mode
id 2015
key user_cannot_select_payment_mode
details {"payment_mode"=>"User is not authorised"}

Cannot optimise route

Sorry, but we cannot optimise this route.

Attributes Description
http_status_code 500
human_message Sorry, but we cannot optimise this route
id 2016
key cannot_optimise_route

Many to many unsupported error

"Sorry, but multi pickup, multi dropoff jobs are not yet supported"

Attributes Description
http_status_code 422
human_message Sorry, but multi pickup, multi dropoff jobs are not yet supported
id 2017
key many_to_many_unsupported_error

State action error

Sorry, but we cannot set both submit_job and cancel_job

Attributes Description
http_status_code 422
human_message Sorry, but we cannot set both submit_job and cancel_job
id 2018
key state_action_error

Scheduled for eta error

Sorry, ETA can only be calculated for single scheduled orders with known dropoff constraints

Attributes Description
http_status_code 422
human_message Sorry, ETA can only be calculated for single scheduled orders with known dropoff constraints
id 2019
key scheduled_for_eta_error

Scheduled for eta api error

Sorry, we couldn't provide you with an ETA. please retry or supply your own scheduled_for time. This can be done by assigning a value to scheduled_for attribute in your job payload.

Attributes Description
http_status_code 422
human_message Sorry, we couldn't provide you with an ETA. please retry or supply your own scheduled_for time
id 2020
key scheduled_for_eta_api_error

Constraint in future error

Using a delivery window is only possible for orders that are at least 2 hours in the future. Please amend the delivery window so you can complete this booking

Attributes Description
http_status_code 422
human_message Using a delivery window is only possible for orders that are at least 2 hours in the future. Please amend the delivery window so you can complete this booking
id 2021
key constraint_in_future_error

Mission can not transition

The operation you requested was halted because the pickup venue requires order placing from Quiqup. Since the order has been placed we can not cancel the order.

Attributes Description
http_status_code 422
human_message The mission can not be cancelled because we have placed the order with the venue.
id 2022
key mission_can_not_transition

Partner standard checks

Partner standard jobs must be submitted before 18:00 and should be a single order (one pickup and one dropoff)

Attributes Description
http_status_code 422
human_message There was an error with your partner standard job
id 2023
key partner_standard_checks

Auto unassign disabled error

The operation to unassign a driver is not allowed for automatic requests coming from services.

Attributes Description
http_status_code 403
human_message Automatic unassignments are disabled
id 2024
key auto_unassign_disabled_error

Multi region waypoints error

The operation you requested was halted because the order has waypoints from different regions.

Attributes Description
http_status_code 422
human_message Order has waypoints from different regions
id 2025
key multi_region_waypoints_error

Partner has no order limit error

"Oops! You have reached your hourly order limit

Attributes Description
http_status_code 422
human_message Oops! You have reached your hourly order limit
id 2026
key partner_has_no_order_limit_error

Already accepted order

The Venue has already accepted the order, it cannot be accepted again.

Attributes Description
http_status_code 422
human_message Venue has already accepted the order
id 3001
key already_accepted_order

Venue not accepted

Trying to update the status to Ready, but the Venue has not Accepted the order yet.

Attributes Description
http_status_code 422
human_message Venue has not accepted the order yet
id 3002
key venue_not_accepted

Quiqee already collected

Trying to update the status to Ready, but the Quiqee has already been to the Venue and collected the items.

Attributes Description
http_status_code 422
human_message Quiqee has already collected the items
id 3003
key quiqee_already_collected

No pickups data

There as no pickup data supplied in the API request and the user has no default

Attributes Description
http_status_code 422
human_message No pickup data supplied and no default pickup
id 3004
key no_pickups_data

Window constraints error

The window constraints are invalid

Attributes Description
http_status_code 422
human_message The window constraints are invalid
id 3005
key window_constraints_error

No receipt found

No receipt was found for the dropoff related to a courier required to upload receipts

Attributes Description
http_status_code 422
human_message No receipt was uploaded before completing the dropoff waypoint
id 3006
key no_receipt_found

Preauth failure

Before we allow you to submit jobs we preauthorise a part of the job cost on the card you have chosen to ensure authenticity and avoid card declines. Unfortunately, your preauthorisation has failed and we are unable to continue. Please ensure you have the required funds available on your card before submitting.

Attributes Description
http_status_code 422
human_message Sorry, we could not preauthorise your credit card.
id 4001
key preauth_failure
details {"payment"=>"Preauthorization failed."}

Card declined

Our payment gateway has declined payment on your card. Please ensure you are using the correct card and it has enough funds to continue your request.

Attributes Description
http_status_code 422
human_message Sorry, your card was declined.
id 4002
key card_declined
details {"payment"=>"The card was declined."}

Card error

We were unable to create your card in our system. Please check the number, expiry and CVC values to ensure you are submitting the card correctly.

Attributes Description
http_status_code 422
human_message Sorry, there was a problem with your credit card.
id 4003
key card_error
details {"detail"=>"Card error."}

Billing user not found

The entity you specified for billing could not be found. If you are trying to submit on behalf of someone else, please check you are using their correct identifier, and ensure your account has been granted the explicit right to submit on their behalf. If you need there rights granted, please contact support.

Attributes Description
http_status_code 400
human_message Could not find billable user for identifier.
id 4004
key billing_user_not_found
details ["detail", "Could not find a billable user for the identifier used"]

Job not completed

A charge attempt was made on a job that is not in a completed state

Attributes Description
http_status_code 400
human_message Could not charge an incomplete job
id 4005
key job_not_completed

Job balance negative

Job balance is negative

Attributes Description
http_status_code 400
human_message Job balance is negative
id 4007
key job_balance_negative

Refund greater then paid amount

"Refund amount is greater than paid amount"

Attributes Description
http_status_code 400
human_message Refund amount is greater than paid amount
id 4008
key refund_greater_then_paid_amount

Location not normalizable

It seems the location information you provided can not be converted to coordinates. Please check the location information you're providing, and ensure it is correct and within our delivery zones.

Attributes Description
http_status_code 400
human_message Can't determine a valid location for this request.
id 5001
key location_not_normalizable

Not enough location info

In order to determine your location, you must provide either have coordinates, a London postcode or lat/lon coordinates.

Attributes Description
http_status_code 400
human_message Please supply location, coordinates or postcode.
id 5002
key not_enough_location_info

Invalid postcode

The postcode you provided does not match the format for a valid UK postcode. Generally a valid postcode looks like "NW10 6RB"

Attributes Description
http_status_code 422
human_message The postcode provided is not valid.
id 5003
key invalid_postcode

Invalid coords

The coordinates you provided were invalid. Please check out API documentation and ensure you are sending coordinates in the correct format.

Attributes Description
http_status_code 400
human_message The coordinates provided are not valid.
id 5004
key invalid_coords

Location not servicable

The location you provided is not inside our serviceable area.

Attributes Description
http_status_code 404
human_message The location you provided is not inside our serviceable area.
id 5005
key location_not_servicable

Not subscribed to location

In order to perform this request you need to be subscribed to at least one partner location. Please check the api docs or contact support to find out how to subscribe to locations.

Attributes Description
http_status_code 422
human_message You are not currently subscribed to a location, please contact Quiqup.
id 5006
key not_subscribed_to_location

Could not resolve postcode

The postcode you provided matches the postcode format, but when we attempted to look it up with our address providers, we were unable to find an official match. Please ensure your postcode is a valid postcode. You can check this on http://www.royalmail.com/find-a-postcode, otherwise please contact support so we can ensure your postcode is supported.

Attributes Description
http_status_code 422
human_message The postcode you provided matches the postcode format, but when we attempted to look it up with our address providers, we were unable to find an official match. Please ensure your postcode is a valid postcode. You can check this on http://www.royalmail.com/find-a-postcode, otherwise please contact support so we can ensure your postcode is supported.
id 5007
key could_not_resolve_postcode

Could not resolve lookup

You have provided a lookup_id that we are unable to resolve. Please check you are sending the correct integer id for the location you are wishing to reference.

Attributes Description
http_status_code 422
human_message The location reference you provided could not be used.
id 5008
key could_not_resolve_lookup

Location already exists for this user

The location can't be saved because the user already has a copy

Attributes Description
http_status_code 403
human_message The location can't be saved because the user already has a copy
id 5010
key location_already_exists_for_this_user

What3words response error

There is an internal error with connecting to what3words service.

Attributes Description
http_status_code 500
human_message What3words api error.
id 5011
key what3words_response_error

What3words invalid search

The combination of words given couldn't be resolved to a location.

Attributes Description
http_status_code 422
human_message Invalid or non-existent 3 word address.
id 5012
key what3words_invalid_search

Estimation service error

Our estimation service was unable to generate an estimation for your job. Our developers have been notified. Please try again later.

Attributes Description
http_status_code 400
human_message Sorry, we could not retrieve estimations for your job.
id 6004
key estimation_service_error

Finance service error

We couldn't connect to our finance service. Our developers have been notified. Please, try again later.

Attributes Description
http_status_code 503
human_message An error ocurred with the Finance service.
id 6005
key finance_service_error

Eaq service error

An error occurred trying to retrieve EAQ.

Attributes Description
http_status_code 422
human_message An error occurred while trying to retrieve EAQ
id 6008
key eaq_service_error

Not saved

The resource you tried to create or update could not be saved. Most likely this is because it did not pass validation. Please refer to our API docs to ensure you are submitting a valid resource.

Attributes Description
http_status_code 422
human_message The resource you are trying to create or update was not able to save.
id 7001
key not_saved

Record invalid

The resource you tried to create or update was not saved because it was invalid. Please refer to our API docs to ensure you are submitting a valid resource.

Attributes Description
http_status_code 422
human_message The resource you are trying to create or update was invalid and did not save.
id 7002
key record_invalid

Not found

The resource you specified has either moved, been deleted, or never existed in the first place. Please check your URL parameters and ensure the identifiers you are providing are correct.

Attributes Description
http_status_code 404
human_message Sorry, the resource you were looking for was not found.
id 7003
key not_found
details {"detail"=>"Record not found."}

Not destroyed

The resource you specified has either moved, been deleted, or never existed in the first place. Please check your URL parameters and ensure the identifiers you are providing are correct.

Attributes Description
http_status_code 404
human_message Sorry, we were unable to destroy this resource.
id 7004
key not_destroyed

Pickup already claimed

Only a single CSR may claim a job. Please wait a while to ensure job data has updated. If this issue persists, you may need to remove the pickup orderer_id attribute using the admin interface.

Attributes Description
http_status_code 422
human_message This order has already been claimed by another CSR
id 8001
key pickup_already_claimed

Template type undefined

This template type is not defined. Please try using one of the acceptable template types.

Attributes Description
http_status_code 422
human_message This template type is not defined
id 8002
key template_type_undefined

Quiqee without WIW account

The quiqee you have selected has no wiw_account_id set which means he cannot get job bonuses from the job that he is assigned.

Attributes Description
http_status_code 422
human_message The quiqee has no wiw_account_id set
id 8003
key quiqee_without_wiw_account

Order job kinds must match

The jobs kinds of the orders you are trying to create a mission for do not match

Attributes Description
http_status_code 422
human_message Job kinds must match when creating a new mission
id 10001
key order_job_kinds_must_match

Order already on live mission

You cannot create a new mission for the order while it has a live mission

Attributes Description
http_status_code 422
human_message You cannot create a new mission for the order while it has a live mission
id 10002
key order_already_on_live_mission

Order not in correct state

The order is not in the correct state for the requested action

Attributes Description
http_status_code 422
human_message The order is not in the correct state for the requested action
id 10003
key order_not_in_correct_state

Order pickups must match

Attributes Description
http_status_code 422
human_message Order should have the same pickup location
id 10004
key order_pickups_must_match

Internal orders creation failed

Attributes Description
http_status_code 422
human_message Error creating internal orders
id 10005
key internal_orders_creation_failed

Order job regions must match

Attributes Description
http_status_code 422
human_message Order should have the same region
id 10006
key order_job_regions_must_match

Unkown depot

Attributes Description
http_status_code 422
human_message Could not find provided depot
id 10007
key unkown_depot

Last complete waypoint must match

Attributes Description
http_status_code 422
human_message Last complete waypoint must be same for all orders
id 10008
key last_complete_waypoint_must_match

At least one internal order

Attributes Description
http_status_code 422
human_message Order should have at least one previous internal order
id 10009
key at_least_one_internal_order

Depot region not found

Attributes Description
http_status_code 422
human_message Could not find the region of the depot provided
id 10010
key depot_region_not_found

Order not in depot region

Attributes Description
http_status_code 422
human_message Selected orders' region and selected depot region doesn't match.
id 10011
key order_not_in_depot_region

Parcel scan failed

Attributes Description
http_status_code 422
human_message Error scanning parcels
id 10012
key parcel_scan_failed

Parcel is already scanned

Attributes Description
http_status_code 422
human_message The order that you are trying to scan is scanned already
id 10013
key parcel_is_already_scanned
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment