western-union · Capability

Western Union Mass Payments API — Orders

Western Union Mass Payments API — Orders. 2 operations. Lead operation: List Orders. Self-contained Naftiko capability covering one Western Union business surface.

Run with Naftiko Western UnionOrders

What You Can Do

GET
Listorders — List Orders
/v1/customers/{clientid}/orders
GET
Getorder — Get Order
/v1/customers/{clientid}/orders/{orderid}

MCP Tools

list-orders

List Orders

read-only idempotent
get-order

Get Order

read-only idempotent

Capability Spec

mass-payments-orders.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Western Union Mass Payments API — Orders
  description: 'Western Union Mass Payments API — Orders. 2 operations. Lead operation: List Orders. Self-contained Naftiko
    capability covering one Western Union business surface.'
  tags:
  - Western Union
  - Orders
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    WESTERN_UNION_API_KEY: WESTERN_UNION_API_KEY
capability:
  consumes:
  - type: http
    namespace: mass-payments-orders
    baseUri: https://api.westernunion.com
    description: Western Union Mass Payments API — Orders business capability. Self-contained, no shared references.
    resources:
    - name: customers-clientId-orders
      path: /customers/{clientId}/orders
      operations:
      - name: listorders
        method: GET
        description: List Orders
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: clientId
          in: path
          type: string
          description: The partner's Western Union client ID.
          required: true
    - name: customers-clientId-orders-orderId
      path: /customers/{clientId}/orders/{orderId}
      operations:
      - name: getorder
        method: GET
        description: Get Order
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: clientId
          in: path
          type: string
          description: The partner's Western Union client ID.
          required: true
        - name: orderId
          in: path
          type: string
          description: The order identifier.
          required: true
  exposes:
  - type: rest
    namespace: mass-payments-orders-rest
    port: 8080
    description: REST adapter for Western Union Mass Payments API — Orders. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/customers/{clientid}/orders
      name: customers-clientid-orders
      description: REST surface for customers-clientId-orders.
      operations:
      - method: GET
        name: listorders
        description: List Orders
        call: mass-payments-orders.listorders
        with:
          clientId: rest.clientId
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/customers/{clientid}/orders/{orderid}
      name: customers-clientid-orders-orderid
      description: REST surface for customers-clientId-orders-orderId.
      operations:
      - method: GET
        name: getorder
        description: Get Order
        call: mass-payments-orders.getorder
        with:
          clientId: rest.clientId
          orderId: rest.orderId
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: mass-payments-orders-mcp
    port: 9090
    transport: http
    description: MCP adapter for Western Union Mass Payments API — Orders. One tool per consumed operation, routed inline
      through this capability's consumes block.
    tools:
    - name: list-orders
      description: List Orders
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: mass-payments-orders.listorders
      with:
        clientId: tools.clientId
      outputParameters:
      - type: object
        mapping: $.
    - name: get-order
      description: Get Order
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: mass-payments-orders.getorder
      with:
        clientId: tools.clientId
        orderId: tools.orderId
      outputParameters:
      - type: object
        mapping: $.