swag-payments/spec/paths/analytics@shops@{shopID}@invoices.yaml

47 lines
1.1 KiB
YAML
Raw Normal View History

get:
description: Поиск инвойсов
tags:
- Search
operationId: getInvoices
parameters:
- $ref: '#/parameters/requestID'
- $ref: '#/parameters/shopID'
- $ref: '#/parameters/fromTime'
- $ref: '#/parameters/toTime'
- $ref: '#/parameters/limit'
- $ref: '#/parameters/offset'
- name: status
in: query
description: Набор статусов инвойса для поиска
required: false
type: array
items:
type: string
enum:
- unpaid
- cancelled
- paid
- refunded
- fulfilled
- name: invoiceID
in: query
description: Invoice ID
required: false
type: string
responses:
'200':
description: Найденные инвойсы
schema:
type: object
properties:
totalCount:
type: integer
invoices:
type: array
items:
$ref: '#/definitions/Invoice'
'400':
$ref: '#/responses/BadRequest'
'404':
$ref: '#/responses/NotFound'