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": "bf7b647a-dba7-4a1e-be28-7a9e64a27382",
"TenantId": "a3d09b5e-539c-4664-b4f6-3fd7711dd6d0"
}
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>a3d09b5e-539c-4664-b4f6-3fd7711dd6d0</TenantId> <UserId>bf7b647a-dba7-4a1e-be28-7a9e64a27382</UserId> </CreditInputDto>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
None.