mirror of
https://github.com/valitydev/swag-payments.git
synced 2024-11-07 01:55:22 +00:00
47 lines
1.1 KiB
YAML
47 lines
1.1 KiB
YAML
|
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'
|