Добавить новые документы возврата оплаты по сделке продажи
POST/v5/orgs/:org_guid/deals/sales/:deal_guid/docs/money/refunds.batch
Коды возможных ошибок:
[500]: "InternalServerError" - внутренняя ошибка сервера [429]: "TooManyRequests" - превышено ограничение на количество запросов в секунду [401]: "Unauthorized" - для выполнения операции требуется авторизация [403]: "NoPermissions" - нет прав на выполнение этой операции [422]: "RequestIsNotValid" - параметры запроса не прошли валидацию [404]: "NotFound" - запрашиваемый объект или его родительский объект не найдены [422]: "Duplicate" - дубликат (объект с таким уникальным идентификатором уже существует) [422]: "NotAllowedForArchived" - операция не разрешена для объектов находящихся в архиве [422]: "ReferenceNotFound" - объект, на который ссылается текущий объект, не найден
Request
Path Parameters
Уникальный идентификатор организации
Уникальный иддентификатор сделки продажи
Query Parameters
Possible values: [compact
, full
]
Header Parameters
Язык используемый для ответов
Идентификатор клиента
Possible values: [Unknown
, App
, WebApp
, Service
]
Тип клиента
Имя клиента
ОС клиента
Версия ОС клиента
Разрешение экрана ОС клиента
Модель оборудования клиента
Организация по умолчанию
Поддерживаемые клиентом расширения моделей
- application/json-patch+json
- application/json
- text/json
- application/*+json
Body
Данные новых документов оплаты по сделке по продаже
Array [
Array [
]
Array [
]
]
for_payment
object
sum_by_card
object
required
Possible values: [RUB
, GBP
, USD
, EUR
, Unknown
]
sum_by_cash
object
required
Possible values: [RUB
, GBP
, USD
, EUR
, Unknown
]
total_sum
object
required
Possible values: [RUB
, GBP
, USD
, EUR
, Unknown
]
positions
object[]
nullable
paid_amount
object
required
Possible values: [RUB
, GBP
, USD
, EUR
, Unknown
]
position
object
required
fiscal_document
object
transactions
object[]
nullable
sale
object
Possible values: <= 128 characters
meta_data
object
nullable
Body
Данные новых документов оплаты по сделке по продаже
Array [
Array [
]
Array [
]
]
for_payment
object
sum_by_card
object
required
Possible values: [RUB
, GBP
, USD
, EUR
, Unknown
]
sum_by_cash
object
required
Possible values: [RUB
, GBP
, USD
, EUR
, Unknown
]
total_sum
object
required
Possible values: [RUB
, GBP
, USD
, EUR
, Unknown
]
positions
object[]
nullable
paid_amount
object
required
Possible values: [RUB
, GBP
, USD
, EUR
, Unknown
]
position
object
required
fiscal_document
object
transactions
object[]
nullable
sale
object
Possible values: <= 128 characters
meta_data
object
nullable
Body
Данные новых документов оплаты по сделке по продаже
Array [
Array [
]
Array [
]
]
for_payment
object
sum_by_card
object
required
Possible values: [RUB
, GBP
, USD
, EUR
, Unknown
]
sum_by_cash
object
required
Possible values: [RUB
, GBP
, USD
, EUR
, Unknown
]
total_sum
object
required
Possible values: [RUB
, GBP
, USD
, EUR
, Unknown
]
positions
object[]
nullable
paid_amount
object
required
Possible values: [RUB
, GBP
, USD
, EUR
, Unknown
]
position
object
required
fiscal_document
object
transactions
object[]
nullable
sale
object
Possible values: <= 128 characters
meta_data
object
nullable
Body
Данные новых документов оплаты по сделке по продаже
Array [
Array [
]
Array [
]
]
for_payment
object
sum_by_card
object
required
Possible values: [RUB
, GBP
, USD
, EUR
, Unknown
]
sum_by_cash
object
required
Possible values: [RUB
, GBP
, USD
, EUR
, Unknown
]
total_sum
object
required
Possible values: [RUB
, GBP
, USD
, EUR
, Unknown
]
positions
object[]
nullable
paid_amount
object
required
Possible values: [RUB
, GBP
, USD
, EUR
, Unknown
]
position
object
required
fiscal_document
object
transactions
object[]
nullable
sale
object
Possible values: <= 128 characters
meta_data
object
nullable
Responses
- 201
- 401
- 403
- 404
- 422
- 429
- 500
Created
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
]
Array [
]
]
for_payment
object
sum_by_card
object
required
Possible values: [RUB
, GBP
, USD
, EUR
, Unknown
]
sum_by_cash
object
required
Possible values: [RUB
, GBP
, USD
, EUR
, Unknown
]
total_sum
object
required
Possible values: [RUB
, GBP
, USD
, EUR
, Unknown
]
positions
object[]
nullable
paid_amount
object
required
Possible values: [RUB
, GBP
, USD
, EUR
, Unknown
]
position
object
required
fiscal_document
object
transactions
object[]
nullable
sale
object
Possible values: <= 128 characters
meta_data
object
nullable
[
{
"for_payment": {
"guid": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"type_of": "string"
},
"processed_at": "2024-10-23T06:47:46.845Z",
"sum_by_card": {
"value": 0,
"currency": "RUB",
"type_of": "string"
},
"sum_by_cash": {
"value": 0,
"currency": "RUB",
"type_of": "string"
},
"total_sum": {
"value": 0,
"currency": "RUB",
"type_of": "string"
},
"positions": [
{
"paid_quantity": 0,
"paid_amount": {
"value": 0,
"currency": "RUB",
"type_of": "string"
},
"position": {
"guid": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"type_of": "string"
},
"type_of": "string"
}
],
"fiscal_document": {
"guid": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"type_of": "string"
},
"transactions": [
{
"guid": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"type_of": "string"
}
],
"sale": {
"guid": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"type_of": "string"
},
"created_at": "2024-10-23T06:47:46.845Z",
"updated_at": "2024-10-23T06:47:46.845Z",
"deleted_at": "2024-10-23T06:47:46.845Z",
"meta": "string",
"meta_data": {},
"guid": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"type_of": "string"
}
]
Unauthorized
- application/json
- Schema
- Example (from schema)
Schema
Possible values: [InternalServerError
, TooManyRequests
, RequestIsNotValid
, BadRequest
, NoPermissions
, Unauthorized
, NotFound
, ReferenceNotFound
, Duplicate
, NotUnique
, NotNullOrUnique
, NotAllowed
, NotAllowedForArchived
, TryLater
, OperationCannotBePerformed
, NotificationsAreOutOfService
, TrySendCodeLater
, UsernameIsAlreadyTaken
, PhoneIsNotFound
, PhoneIsNotFoundInOrganization
, PhoneIsAlreadyTaken
, InvalidConfirmationCode
, ConfirmationCodeWasCanceled
, ConfirmationCodeWasNotSend
, UsernameDoesNotExist
, WrongUsernameOrPassword
, WrongActivationCode
, TryActivateLater
, AliasIsNotFound
, AliasIsAlreadyTaken
, NotAllowedForOwner
, DealPositionHasInvalidQuantity
, CheckMarkingCodeMustBeDisabled
, LegalEntityCrptTokenNotSpecified
]
{
"code": "InternalServerError",
"message": "string",
"info": "string"
}
Forbidden
- application/json
- Schema
- Example (from schema)
Schema
Possible values: [InternalServerError
, TooManyRequests
, RequestIsNotValid
, BadRequest
, NoPermissions
, Unauthorized
, NotFound
, ReferenceNotFound
, Duplicate
, NotUnique
, NotNullOrUnique
, NotAllowed
, NotAllowedForArchived
, TryLater
, OperationCannotBePerformed
, NotificationsAreOutOfService
, TrySendCodeLater
, UsernameIsAlreadyTaken
, PhoneIsNotFound
, PhoneIsNotFoundInOrganization
, PhoneIsAlreadyTaken
, InvalidConfirmationCode
, ConfirmationCodeWasCanceled
, ConfirmationCodeWasNotSend
, UsernameDoesNotExist
, WrongUsernameOrPassword
, WrongActivationCode
, TryActivateLater
, AliasIsNotFound
, AliasIsAlreadyTaken
, NotAllowedForOwner
, DealPositionHasInvalidQuantity
, CheckMarkingCodeMustBeDisabled
, LegalEntityCrptTokenNotSpecified
]
{
"code": "InternalServerError",
"message": "string",
"info": "string"
}
Not Found
- application/json
- Schema
- Example (from schema)
Schema
Possible values: [InternalServerError
, TooManyRequests
, RequestIsNotValid
, BadRequest
, NoPermissions
, Unauthorized
, NotFound
, ReferenceNotFound
, Duplicate
, NotUnique
, NotNullOrUnique
, NotAllowed
, NotAllowedForArchived
, TryLater
, OperationCannotBePerformed
, NotificationsAreOutOfService
, TrySendCodeLater
, UsernameIsAlreadyTaken
, PhoneIsNotFound
, PhoneIsNotFoundInOrganization
, PhoneIsAlreadyTaken
, InvalidConfirmationCode
, ConfirmationCodeWasCanceled
, ConfirmationCodeWasNotSend
, UsernameDoesNotExist
, WrongUsernameOrPassword
, WrongActivationCode
, TryActivateLater
, AliasIsNotFound
, AliasIsAlreadyTaken
, NotAllowedForOwner
, DealPositionHasInvalidQuantity
, CheckMarkingCodeMustBeDisabled
, LegalEntityCrptTokenNotSpecified
]
{
"code": "InternalServerError",
"message": "string",
"info": "string"
}
Client Error
- application/json
- Schema
- Example (from schema)
Schema
Possible values: [InternalServerError
, TooManyRequests
, RequestIsNotValid
, BadRequest
, NoPermissions
, Unauthorized
, NotFound
, ReferenceNotFound
, Duplicate
, NotUnique
, NotNullOrUnique
, NotAllowed
, NotAllowedForArchived
, TryLater
, OperationCannotBePerformed
, NotificationsAreOutOfService
, TrySendCodeLater
, UsernameIsAlreadyTaken
, PhoneIsNotFound
, PhoneIsNotFoundInOrganization
, PhoneIsAlreadyTaken
, InvalidConfirmationCode
, ConfirmationCodeWasCanceled
, ConfirmationCodeWasNotSend
, UsernameDoesNotExist
, WrongUsernameOrPassword
, WrongActivationCode
, TryActivateLater
, AliasIsNotFound
, AliasIsAlreadyTaken
, NotAllowedForOwner
, DealPositionHasInvalidQuantity
, CheckMarkingCodeMustBeDisabled
, LegalEntityCrptTokenNotSpecified
]
{
"code": "InternalServerError",
"message": "string",
"info": "string"
}
Too Many Requests
- application/json
- Schema
- Example (from schema)
Schema
Possible values: [InternalServerError
, TooManyRequests
, RequestIsNotValid
, BadRequest
, NoPermissions
, Unauthorized
, NotFound
, ReferenceNotFound
, Duplicate
, NotUnique
, NotNullOrUnique
, NotAllowed
, NotAllowedForArchived
, TryLater
, OperationCannotBePerformed
, NotificationsAreOutOfService
, TrySendCodeLater
, UsernameIsAlreadyTaken
, PhoneIsNotFound
, PhoneIsNotFoundInOrganization
, PhoneIsAlreadyTaken
, InvalidConfirmationCode
, ConfirmationCodeWasCanceled
, ConfirmationCodeWasNotSend
, UsernameDoesNotExist
, WrongUsernameOrPassword
, WrongActivationCode
, TryActivateLater
, AliasIsNotFound
, AliasIsAlreadyTaken
, NotAllowedForOwner
, DealPositionHasInvalidQuantity
, CheckMarkingCodeMustBeDisabled
, LegalEntityCrptTokenNotSpecified
]
{
"code": "InternalServerError",
"message": "string",
"info": "string"
}
Server Error
- application/json
- Schema
- Example (from schema)
Schema
Possible values: [InternalServerError
, TooManyRequests
, RequestIsNotValid
, BadRequest
, NoPermissions
, Unauthorized
, NotFound
, ReferenceNotFound
, Duplicate
, NotUnique
, NotNullOrUnique
, NotAllowed
, NotAllowedForArchived
, TryLater
, OperationCannotBePerformed
, NotificationsAreOutOfService
, TrySendCodeLater
, UsernameIsAlreadyTaken
, PhoneIsNotFound
, PhoneIsNotFoundInOrganization
, PhoneIsAlreadyTaken
, InvalidConfirmationCode
, ConfirmationCodeWasCanceled
, ConfirmationCodeWasNotSend
, UsernameDoesNotExist
, WrongUsernameOrPassword
, WrongActivationCode
, TryActivateLater
, AliasIsNotFound
, AliasIsAlreadyTaken
, NotAllowedForOwner
, DealPositionHasInvalidQuantity
, CheckMarkingCodeMustBeDisabled
, LegalEntityCrptTokenNotSpecified
]
{
"code": "InternalServerError",
"message": "string",
"info": "string"
}