GET api_v2/Payment/GetProcessingOrCreateNewInvoice?sum={sum}&invoiceNumber={invoiceNumber}

Получить или создать новый счет на оплату по заданным параметрам.

Request Information

Parameters

NameDescriptionAdditional information
sum
Сумма к оплате, на которую бедут сформирован или получен счёт

Define this parameter in the request URI.

invoiceNumber
Номер счета.

Define this parameter in the request URI.

Response Information

Ok с инкапсулированным счётом, либо NotFound

Response body formats

application/xml, text/xml

Sample:
<Result>
  <Id>8e48dabb-03aa-41f6-a422-feff6065de6f</Id>
  <Date>2022-06-25T19:30:16.2413061+03:00</Date>
  <Sum>3</Sum>
  <InvoiceNumber>sample string 4</InvoiceNumber>
  <Requisite>sample string 5</Requisite>
  <Description>sample string 6</Description>
  <Comment>sample string 7</Comment>
  <State>sample string 8</State>
  <AccountId>3db26265-e5f5-42bd-bbcf-1f4b4f272c90</AccountId>
  <Uniq>sample string 10</Uniq>
  <Currency>sample string 11</Currency>
</Result>

application/json, text/json

Sample:
{
  "Id": "8e48dabb-03aa-41f6-a422-feff6065de6f",
  "Date": "2022-06-25T19:30:16.2413061+03:00",
  "Sum": 3.0,
  "InvoiceNumber": "sample string 4",
  "Requisite": "sample string 5",
  "Description": "sample string 6",
  "Comment": "sample string 7",
  "State": "sample string 8",
  "AccountId": "3db26265-e5f5-42bd-bbcf-1f4b4f272c90",
  "Uniq": "sample string 10",
  "Currency": "sample string 11"
}