order27 ops

API de Order

Cross-vertical orders, cancel reasons, and lifecycle events.

Consultas

CONSULTA

adminListOrders

#

List orders with admin filters and pagination. Supports filtering by status, driver, customer, kind, date range, and sorting by various fields. # Authorization Requires TenantAdmin or PlatformAdmin role.

Argumentos

  • input!

    Por defecto

    {
      "pagination": {
        "limit": 10,
        "page": 1,
        "after": null
      },
      "statuses": null,
      "driverId": null,
      "customerId": null,
      "fleetIds": null,
      "serviceClassIds": null,
      "kind": null,
      "fromDate": null,
      "toDate": null,
      "sortBy": "CREATED_AT",
      "sortDirection": "ASC"
    }
Devuelve!
CONSULTA

cancelReason

#

Get a single cancel reason by ID (admin view). # Authorization Requires TenantAdmin or PlatformAdmin role.

Argumentos

  • idID!
Devuelve!
CONSULTA

cancelReasons

#

List cancel reasons available for the current user's role and app This query returns all active cancel reasons that are applicable to: - The user's current role (from JWT token) - The app specified in the request header - The user's tenant Results are ordered by position and name

Devuelve[!]!
CONSULTA

customerActiveStrikeCount

#

Active (unexpired) strike count for an account / app. Useful for admin dashboards without listing every strike. Requires TenantAdmin.

Argumentos

  • accountId!
  • app!
DevuelveInt!
CONSULTA

customerStrikeBlock

#

Current block state for an account / app combo. Returns None when the account has no soft or hard block. Requires TenantAdmin role.

Argumentos

  • accountId!
  • app!
Devuelve
CONSULTA

exportOrders

#

Export orders in CSV, JSON, or PDF format. # Authorization Requires TenantAdmin or PlatformAdmin role. # Arguments * input - Export parameters including filters and format # Returns Export data with content type and suggested filename. For PDF format, the data is base64-encoded.

Argumentos

  • input!

    Por defecto

    {
      "statuses": null,
      "driverId": null,
      "customerId": null,
      "fleetIds": null,
      "serviceClassIds": null,
      "kind": null,
      "fromDate": null,
      "toDate": null,
      "format": "CSV",
      "limit": null
    }
Devuelve!
CONSULTA

getPartnershipOrderStatistics

#

Get aggregated statistics for orders associated with a partnership. Returns counts of completed, cancelled, and active orders, along with total revenue and commissions. # Authorization - TenantAdmin/PlatformAdmin can access any partnership - PartnerAdmin can only access their own partnership

Argumentos

  • input!
Devuelve!
CONSULTA

listCancelReasons

#

List all cancel reasons for the tenant (admin view). Supports filtering by app and actor, with pagination. Unlike the client-facing cancelReasons query, this includes inactive reasons when includeInactive is true. # Authorization Requires TenantAdmin or PlatformAdmin role.

Argumentos

  • input!
Devuelve!
CONSULTA

listPartnershipOrders

#

List orders associated with a partnership. Returns orders where any participant entity is linked to the partnership via entity_partner_links. Uses temporal validity to ensure the link was active at the time of the order. # Authorization - TenantAdmin/PlatformAdmin can access any partnership - PartnerAdmin can only access their own partnership

Argumentos

  • input!
Devuelve!
CONSULTA

myOrders

#

List my orders - returns orders for the authenticated user filtered by their app

Argumentos

  • input
Devuelve[!]!
CONSULTA

myOrderStatistics

#

Get order statistics for the authenticated user. Statistics are automatically filtered by the app header (vertical).

Devuelve!
CONSULTA

myPaymentBlocks

#

Get active payment blocks for the current user. Returns empty list if no blocks exist.

Devuelve[!]!
CONSULTA

order

#

Get a single order by ID

Argumentos

  • orderId!
Devuelve
CONSULTA

orderActivities

#

Fetch all activities for a specific order. # Authorization Requires TenantAdmin or PlatformAdmin role. # Arguments * order_id - The order ID to fetch activities for # Returns List of activities associated with the order in chronological order.

Argumentos

  • orderId!
Devuelve[!]!
CONSULTA

orders

#

List orders for an account (admin only) with optional app filtering

Argumentos

  • input!
Devuelve[!]!
CONSULTA

orderStatistics

#

Get order statistics for a specific account (admin usage) Statistics are automatically filtered by the app header (vertical)

Argumentos

  • accountId!
Devuelve!

Mutaciones

MUTACIÓN

adminCreateOrder

#

Create an order on behalf of a customer. # Authorization Requires TenantAdmin or PlatformAdmin role.

Argumentos

  • input!
Devuelve!
MUTACIÓN

adminResolvePaymentBlock

#

Waive an account's active payment block (support/admin escape hatch). # Authorization Requires TenantOwner, TenantAdmin, or PlatformAdmin role.

Argumentos

  • blockIdString!
  • notesString
DevuelveBoolean!
MUTACIÓN

cancelOrder

#

Cancel an order with a specified reason This mutation allows customers, drivers, merchants, or staff to cancel an order with appropriate permissions based on their role and the cancel reason configuration. The order service handles the core cancellation logic and may call vertical-specific gRPC services (e.g., Taxi, Shop) for additional validation if needed.

Argumentos

  • input!
Devuelve!
MUTACIÓN

clearCustomerStrikeBlock

#

Clear the soft / hard block for an account on a given app. Used by support staff when a customer has gone through manual review. Does not erase the strike history — only the cached block state. Requires TenantAdmin role.

Argumentos

  • accountId!
  • app!
DevuelveBoolean!
MUTACIÓN

confirmOrderPayment

#

Confirm payment for an order after 3DS authentication

Argumentos

  • input!
Devuelve!
MUTACIÓN

createCancelReason

#

Create a new cancel reason. # Authorization Requires TenantAdmin or PlatformAdmin role.

Argumentos

  • input!
Devuelve!
MUTACIÓN

createOrder

#

Create a new order

Argumentos

  • input!
Devuelve!
MUTACIÓN

deleteCancelReason

#

Delete a cancel reason. # Authorization Requires TenantAdmin or PlatformAdmin role.

Argumentos

  • id!
DevuelveBoolean!
MUTACIÓN

resetCustomerStrikes

#

Reset (expire) all active strikes for an account on a given app and clear any block state. Equivalent to the on-tier-upgrade reset, but triggered manually by support. Requires TenantAdmin role.

Argumentos

  • accountId!
  • app!
DevuelveBoolean!
MUTACIÓN

updateCancelReason

#

Update an existing cancel reason. # Authorization Requires TenantAdmin or PlatformAdmin role.

Argumentos

  • input!
Devuelve!
MUTACIÓN

updateOrderStatus

#

Update order status

Argumentos

  • orderId!
  • newStatus!
  • reasonString
Devuelve!