POST vouchers/ucare/create

Request Information

URI Parameters

None.

Body Parameters

CreateUCareVoucherRequest
NameDescriptionTypeAdditional information
UserId

string

Required

FirstName

string

None.

LastName

string

None.

Email

string

None.

PhoneNumber

string

None.

Request Formats

application/json, text/json

Sample:
{
  "UserId": "sample string 1",
  "FirstName": "sample string 2",
  "LastName": "sample string 3",
  "Email": "sample string 4",
  "PhoneNumber": "sample string 5"
}

application/xml, text/xml

Sample:
<CreateUCareVoucherRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/UCareAPI.Models">
  <Email>sample string 4</Email>
  <FirstName>sample string 2</FirstName>
  <LastName>sample string 3</LastName>
  <PhoneNumber>sample string 5</PhoneNumber>
  <UserId>sample string 1</UserId>
</CreateUCareVoucherRequest>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'CreateUCareVoucherRequest'.

Response Information

Resource Description

CreateUCareVoucherResponse
NameDescriptionTypeAdditional information
Success

boolean

None.

Message

string

None.

Voucher

UCareVoucherDto

None.

Response Formats

application/json, text/json

Sample:
{
  "Success": true,
  "Message": "sample string 2",
  "Voucher": {
    "Id": 1,
    "ReferenceCode": "sample string 2",
    "UserId": "sample string 3",
    "Balance": 4.0,
    "DateCreated": "2026-04-13T14:58:42.3646881+02:00",
    "Currency": "sample string 6",
    "IsActive": true
  }
}

application/xml, text/xml

Sample:
<CreateUCareVoucherResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/UCareAPI.Models">
  <Message>sample string 2</Message>
  <Success>true</Success>
  <Voucher>
    <Balance>4</Balance>
    <Currency>sample string 6</Currency>
    <DateCreated>2026-04-13T14:58:42.3646881+02:00</DateCreated>
    <Id>1</Id>
    <IsActive>true</IsActive>
    <ReferenceCode>sample string 2</ReferenceCode>
    <UserId>sample string 3</UserId>
  </Voucher>
</CreateUCareVoucherResponse>