Get Fees
You call vGrubshttps://sandbox.vgrubs.com/partner/get-fees/{partner-name}{partner-name} Your partner identifier, provisioned by vGrubs during onboarding.Use this endpoint to retrieve the delivery fee, service charge, and tax amounts for a specific order before charging the customer. You call our endpoint.
delivery orders, at least one of delivery_address or delivery_coordinates must be provided - both cannot be omitted simultaneously. For pickup orders, omit both fields.Request body
The partner's store ID.
Order subtotal in cents.
Delivery address as a string. Required for delivery orders if delivery_coordinates is not provided.
Delivery coordinates. Required for delivery orders if delivery_address is not provided. Takes priority over delivery_address when both are present.
Responses
Service charge in cents.
Delivery fee in cents.
Tax amount in cents.
Applied state tax percentage (0.00-100.00).
Whether this store accepts cash for pickup orders. When true, you may offer "Pay at pickup" and send the order with order.paid: false and payment.method: "cash". When false, do not offer cash. Independent of supported_order_types: a store can accept pickup and still answer false, which means pickup must be prepaid.
Order types the store accepts. Never empty. Treat it as a list and check whether it contains a type - do not compare it to a fixed array, as more values may be added later. Hide the order types a store does not accept: a new order with an unsupported order.type is rejected.
Missing or invalid fields in the request body.
Invalid or missing x-api-key header.