2017-02-06 12:09:03 +00:00
|
|
|
|
get:
|
|
|
|
|
description: Поиск инвойсов
|
|
|
|
|
tags:
|
|
|
|
|
- Search
|
2017-04-21 12:59:45 +00:00
|
|
|
|
operationId: searchInvoices
|
2017-02-06 12:09:03 +00:00
|
|
|
|
parameters:
|
|
|
|
|
- $ref: '#/parameters/requestID'
|
|
|
|
|
- $ref: '#/parameters/shopID'
|
|
|
|
|
- $ref: '#/parameters/fromTime'
|
|
|
|
|
- $ref: '#/parameters/toTime'
|
|
|
|
|
- $ref: '#/parameters/limit'
|
|
|
|
|
- $ref: '#/parameters/offset'
|
2017-04-21 12:59:45 +00:00
|
|
|
|
- name: invoiceStatus
|
|
|
|
|
in: query
|
|
|
|
|
description: Статус инвойса для поиска
|
|
|
|
|
required: false
|
|
|
|
|
type: string
|
|
|
|
|
enum:
|
|
|
|
|
- unpaid
|
|
|
|
|
- cancelled
|
|
|
|
|
- paid
|
|
|
|
|
- refunded
|
|
|
|
|
- fulfilled
|
|
|
|
|
- name: paymentStatus
|
|
|
|
|
in: query
|
|
|
|
|
description: Статус платежа для поиска
|
|
|
|
|
required: false
|
|
|
|
|
type: string
|
|
|
|
|
enum:
|
|
|
|
|
- pending
|
|
|
|
|
- processed
|
|
|
|
|
- captured
|
|
|
|
|
- cancelled
|
|
|
|
|
- failed
|
2017-02-06 12:09:03 +00:00
|
|
|
|
- name: invoiceID
|
|
|
|
|
in: query
|
2017-04-21 12:59:45 +00:00
|
|
|
|
description: Идентификатор инвойса
|
2017-02-06 12:09:03 +00:00
|
|
|
|
required: false
|
|
|
|
|
type: string
|
2017-05-12 14:23:24 +00:00
|
|
|
|
maxLength: 40
|
2017-04-21 12:59:45 +00:00
|
|
|
|
- name: paymentID
|
|
|
|
|
in: query
|
|
|
|
|
description: Идентификатор платежа
|
|
|
|
|
required: false
|
|
|
|
|
type: string
|
2017-05-12 14:23:24 +00:00
|
|
|
|
maxLength: 40
|
2017-04-21 12:59:45 +00:00
|
|
|
|
- name: payerEmail
|
|
|
|
|
in: query
|
|
|
|
|
description: 'Email, указанный при оплате'
|
|
|
|
|
required: false
|
|
|
|
|
type: string
|
2017-05-12 14:23:24 +00:00
|
|
|
|
format: email
|
|
|
|
|
maxLength: 100
|
2017-04-21 12:59:45 +00:00
|
|
|
|
- name: payerIP
|
|
|
|
|
in: query
|
|
|
|
|
description: IP-адрес плательщика
|
|
|
|
|
required: false
|
|
|
|
|
type: string
|
2017-05-12 14:23:24 +00:00
|
|
|
|
format: ip-address
|
|
|
|
|
maxLength: 45
|
2017-04-21 12:59:45 +00:00
|
|
|
|
- name: payerFingerprint
|
|
|
|
|
in: query
|
|
|
|
|
description: Уникальный отпечаток user agent'а плательщика
|
|
|
|
|
required: false
|
|
|
|
|
type: string
|
2017-05-12 14:23:24 +00:00
|
|
|
|
maxLength: 1000
|
2017-04-21 12:59:45 +00:00
|
|
|
|
- name: cardNumberMask
|
|
|
|
|
in: query
|
|
|
|
|
description: Маскированый номер карты
|
|
|
|
|
required: false
|
|
|
|
|
type: string
|
2017-05-04 13:21:35 +00:00
|
|
|
|
pattern: '^\d{4}$'
|
2017-04-21 12:59:45 +00:00
|
|
|
|
- name: paymentAmount
|
|
|
|
|
in: query
|
|
|
|
|
description: Сумма платежа
|
|
|
|
|
required: false
|
|
|
|
|
type: integer
|
|
|
|
|
format: int64
|
|
|
|
|
minimum: 1
|
|
|
|
|
- name: invoiceAmount
|
|
|
|
|
in: query
|
|
|
|
|
description: Сумма инвойса
|
|
|
|
|
required: false
|
|
|
|
|
type: integer
|
|
|
|
|
format: int64
|
|
|
|
|
minimum: 1
|
2017-02-06 12:09:03 +00:00
|
|
|
|
responses:
|
|
|
|
|
'200':
|
|
|
|
|
description: Найденные инвойсы
|
|
|
|
|
schema:
|
|
|
|
|
type: object
|
|
|
|
|
properties:
|
|
|
|
|
totalCount:
|
|
|
|
|
type: integer
|
2017-04-21 12:59:45 +00:00
|
|
|
|
result:
|
2017-02-06 12:09:03 +00:00
|
|
|
|
type: array
|
|
|
|
|
items:
|
2017-04-21 12:59:45 +00:00
|
|
|
|
$ref: '#/definitions/InvoiceSearchResult'
|
2017-02-06 12:09:03 +00:00
|
|
|
|
'400':
|
|
|
|
|
$ref: '#/responses/BadRequest'
|
|
|
|
|
'404':
|
|
|
|
|
$ref: '#/responses/NotFound'
|