POST api/Credits
Creates a credit.
Request Information
URI Parameters
None.
Body Parameters
The credit model to create with.
CreditInputDto| Name | Description | Type | Additional information |
|---|---|---|---|
| Amount | decimal number |
Required |
|
| UserId | globally unique identifier |
Required |
|
| TenantId | globally unique identifier |
Required |
Request Formats
application/json, text/json
Sample:
{
"Amount": 1.0,
"UserId": "c8f2bda2-e638-4489-b42b-cbadc367da71",
"TenantId": "db7ce97b-3635-47b9-84e5-f0f1029dc861"
}
application/xml, text/xml
Sample:
<CreditInputDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Aardvark.Pay.Models"> <Amount>1</Amount> <TenantId>db7ce97b-3635-47b9-84e5-f0f1029dc861</TenantId> <UserId>c8f2bda2-e638-4489-b42b-cbadc367da71</UserId> </CreditInputDto>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
None.