Catcher API documentation

  • The Catcher API is a RESTful web service for developers to programmatically interact with Catcher Marketplace data and real-time delivery management functionality.
  • Every bit of data exchanged between clients and the API is JSON over HTTPS.
  • The base URL for the Catcher API is https://api.catcher.es , all the requests on this url use POST, PUT , GET methods and we need to add the specific end points mentioned below to this URL. Example, if you want to create a delivery order, you will Post to the below API: https://api.catcher.es/pitcher/v1/order
  • API key is mandatory in all the API's request.
  • All parameters marked with * are mandatory otherwise optional.
  • If you have questions about using the API, want to share some feedback, or have come across a bug you'd like to report, write us an email at it@catcher.es

Authentication

Our authorization API must be called with the credentials provided by CATCHER to obtain the JWT that will allow them to invoke the API creation of orders.

IMPORTANT: the authorization JWT token is valid for 24 hours, the same should be stored within the consuming application and only request a new token after it has expired.

Request Body
Copy
Result Example
Copy

Order Create

Request Body
Copy

IMPORTANT: Save the orderId , you will need it for another requests like order cancelation , order information or get driver location.

  • orderPickupLocName (*): Name of the collection point.
  • locationId (*) : LocationId assigned to your business. Must be provided by CATCHER
  • orderPickupTime (*) : Pickup time of the Order. Format: "2022-09-12 09:29:02"
  • orderDeliveryLocation (*): Delivery address
  • addressDetail: Extra information about the shipping address.
  • orderDeliveryLat (*): Delivery latitude
  • orderDeliveryLong (*): Delivery Longitud
  • orderPickupLocation (*): Pickup address
  • orderPickupLat (*): Pickup Latitud
  • orderPickupLong (*): Pickup Longitud
  • orderSource (*): Origin of the order, example: Glovo, UberEats, JustEat OwnBusiness
  • orderCode: Order code. The driver will need it to pickup the order
  • orderPaymentMethod: Payment method. (cash,card)
  • userPhone: Customer phone
  • userName: Full name of the client
  • orderTotalAmout: Total amount of the order. Where the 2 digits on the right represent the decimals. Example: For an order with a cost of 150.80 EUR, 15080 must be sent.
  • orderInstructions: Extra data of the order
  • externalId: Your internal order ID . We will send it in Orders Status Update webhook.
Result Example
Copy

Cancel Order

Get Order Status

Result Example
Copy

Status list

stacking: Waiting order to be stacked if configurated as well in your business console

matching: Waiting for Driver aceptation

matched: Accepted by a Driver

picking: Driver is going to pickup point

in_pickup_location: Driver is at pickup point waiting for the order

in_delivery: Driver is going to delivery location

finish: Order finished successfully

canceled: Order has been canceled

Get Order Detail

  • GET - https://api.catcher.es/pitcher/v1/order/$orderId
  • Header: Authorization: Bearer $token
  • **
  • IMPORTANT*: This endpoint will show you only same day orders. If you want to obtain details about orders from previous days you must point to this address

- GET - https://api.catcher.es/pitcher/v1/history/order/$orderId

**

Result Example
Copy

Get Driver location

Result Example
Copy

Webhook - Endpoint

You have to provide us an Endpoint to send you orders status changes , pricing and driver information

Webhook Structure
Copy

Order_status: matched, picking, in_pickup _location, in_delivery, finish, canceled

transportType: bicycle, moto, car, scooter

https://catcher.es/postman/CATCHER-API.json

Need More Help?

You can talk to us directly through it@catcher.es

Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard