Customer API
v1.0.0Customer-facing mobile/web app endpoints. NOTE: Every Amount Field is in Kobo (Minor), For Example: 100000k = N1000.00 (100000 kobo = N1000.00)
Pricing (cart - customer)
2 endpointsCreate a new price quote
Generates a pricing quote for an order, calculating meal subtotal, service charge, delivery fee, and providing a quoteId for reference.
The quote calculation is based on the current active fee and delivery configuration.
The customerId (if provided) is passed in the request body, as there is currently no customer authentication.
Request body must include a valid set of meals and their quantities, vendor information, and delivery address/location.
Request body
application/jsonDetails for generating the order quote.
nullResponses
201Quote generated successfully, returns comprehensive pricing information and quoteId.400Invalid input or required fields missing from request.curl -X POST 'https://customer-api.docs.newinstance.cloud/api/v1/pricing/quote'nullGet quote by ID
Retrieves a previously generated pricing quote by its identifier.
Returns all calculated fields and metadata for the specified quote.
This can be used to view or confirm the details of a specific quote before proceeding to order creation.
Parameters
quoteIdpath · stringrequireddefault: Unique identifier for the pricing quote.
Responses
200Quote fetched successfully.404Quote not found for the supplied quoteId.curl -X GET 'https://customer-api.docs.newinstance.cloud/api/v1/pricing/quote/{quoteId}'nullCustomers
8 endpointsRequest body
application/jsonnullResponses
201curl -X POST 'https://customer-api.docs.newinstance.cloud/api/v1/customers/customers/create-customer'nullParameters
customerIdpath · stringrequireddefault: Responses
200curl -X GET 'https://customer-api.docs.newinstance.cloud/api/v1/customers/customers/get-customer-by-id/{customerId}'nullRequest body
application/jsonnullResponses
201curl -X POST 'https://customer-api.docs.newinstance.cloud/api/v1/customers/customers/addresses/create-customer-address'nullParameters
customerIdpath · stringrequireddefault: Request body
application/jsonnullResponses
201curl -X POST 'https://customer-api.docs.newinstance.cloud/api/v1/customers/customers/addresses/make-customer-address-active'nullParameters
customerIdpath · stringrequireddefault: Request body
application/jsonnullResponses
201curl -X POST 'https://customer-api.docs.newinstance.cloud/api/v1/customers/customers/addresses/delete-customer-address'nullParameters
customerIdpath · stringrequireddefault: Responses
200curl -X GET 'https://customer-api.docs.newinstance.cloud/api/v1/customers/customers/addresses/fetch-customer-addresses'nullGet nearby vendors
Fetches all approved, open vendors within the configured search radius of the customer location.
Parameters
latitudequery · numberrequireddefault: Customer's current latitude
longitudequery · numberrequireddefault: Customer's current longitude
pagequery · numberdefault: 1pageSizequery · numberdefault: 20Responses
200Nearby vendors fetched successfullycurl -X GET 'https://customer-api.docs.newinstance.cloud/api/v1/customers/customers/vendors/nearby'nullSubmit a review for a rider
Allows a customer to submit a review for a rider after delivery completion. Customer can only review completed deliveries (DELIVERED status) that they placed. Each delivery can only be reviewed once. Review includes rating (1-5 stars), optional text feedback, and quality indicators (professional, on-time, handled with care).
Parameters
customerIdpath · stringrequireddefault: Customer ID
Request body
application/jsonnullResponses
201Review submitted successfully400Invalid request or review already exists404Order not foundcurl -X POST 'https://customer-api.docs.newinstance.cloud/api/v1/customers/customers/{customerId}/reviews/rider'nullPayments (Customers)
2 endpointsCheckout
Request body
application/jsonnullResponses
200Checkout successful400Bad requestcurl -X POST 'https://customer-api.docs.newinstance.cloud/api/v1/payments/checkout'nullGet attempt by reference
Parameters
referencepath · stringrequireddefault: Responses
200Attempt retrieved successfully400Bad requestcurl -X GET 'https://customer-api.docs.newinstance.cloud/api/v1/payments/attempts/{reference}'null