POST api/PaymentMethod/Post
Crea en la base la moneda recibida.
Request Information
URI Parameters
None.
Body Parameters
ViewModel de la moneda a crear
PaymentMethodViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | string |
None. |
|
| Code | integer |
None. |
|
| Name | string |
Required |
|
| TypeId | integer |
Required |
|
| SpecificationLines | Collection of PaymentMethodSpecificationLineViewModel |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": "sample string 1",
"Code": 2,
"Name": "sample string 3",
"TypeId": 4,
"SpecificationLines": [
{
"Id": "sample string 1",
"Percentage": 2.0,
"SpecificationId": "sample string 3"
},
{
"Id": "sample string 1",
"Percentage": 2.0,
"SpecificationId": "sample string 3"
}
]
}
application/xml, text/xml
Sample:
<PaymentMethodViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Tempo.Core.WebAPI.ViewModels.Trading.Payments">
<Code>2</Code>
<Id>sample string 1</Id>
<Name>sample string 3</Name>
<SpecificationLines>
<PaymentMethodSpecificationLineViewModel>
<Id>sample string 1</Id>
<Percentage>2</Percentage>
<SpecificationId>sample string 3</SpecificationId>
</PaymentMethodSpecificationLineViewModel>
<PaymentMethodSpecificationLineViewModel>
<Id>sample string 1</Id>
<Percentage>2</Percentage>
<SpecificationId>sample string 3</SpecificationId>
</PaymentMethodSpecificationLineViewModel>
</SpecificationLines>
<TypeId>4</TypeId>
</PaymentMethodViewModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
De ser exitosa la creación retorna 200. De lo contrario retorna 400
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.