POST api/Payments
Request Information
URI Parameters
None.
Body Parameters
Payment| Name | Description | Type | Additional information |
|---|---|---|---|
| id | integer |
None. |
|
| paymentFullNumber | string |
None. |
|
| currency | string |
None. |
|
| foreignNumber | string |
Required |
|
| date | date |
Required |
|
| grossValue | decimal number |
Required |
|
| type | integer |
Required |
|
| paymentMethodId | integer |
Required |
|
| description | string |
None. |
|
| customerId | integer |
None. |
|
| oppositeAccount | string |
None. |
|
| companyData | CompanyData |
None. |
Request Formats
application/json, text/json
Sample:
{
"id": 1,
"paymentFullNumber": "sample string 2",
"currency": "sample string 3",
"foreignNumber": "sample string 4",
"date": "2025-11-08T13:36:17.5109258+01:00",
"grossValue": 6.0,
"type": 7,
"paymentMethodId": 8,
"description": "sample string 9",
"customerId": 10,
"oppositeAccount": "sample string 11",
"companyData": {
"companyName": "sample string 1",
"databaseName": "sample string 2"
}
}
application/xml, text/xml
Sample:
<Payment xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebApiOptima_v._2._0.Models">
<companyData>
<companyName>sample string 1</companyName>
<databaseName>sample string 2</databaseName>
</companyData>
<currency>sample string 3</currency>
<customerId>10</customerId>
<date>2025-11-08T13:36:17.5109258+01:00</date>
<description>sample string 9</description>
<foreignNumber>sample string 4</foreignNumber>
<grossValue>6</grossValue>
<id>1</id>
<oppositeAccount>sample string 11</oppositeAccount>
<paymentFullNumber>sample string 2</paymentFullNumber>
<paymentMethodId>8</paymentMethodId>
<type>7</type>
</Payment>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.