using System.Threading.Tasks;
static async Task Main(string[] args) {
private static async Task ApiCall() {
var json = JsonConvert.SerializeObject(new {
customIdentifier = "obucks10",
recipientPhoneDetails = new {
phoneNumber = "8031934751"
var message = new HttpRequestMessage(HttpMethod.Post, "https://giftcards/reloadly.com/orders") {
Content = new StringContent(json, Encoding.UTF8, "application/json")
message.Headers.TryAddWithoutValidation("Authorization", "Bearer YOUR_ACCESS_TOKEN_HERE");
message.Headers.TryAddWithoutValidation("Accept", "application/com.reloadly.giftcards-v1+json");
var httpClient = new HttpClient();
var response = await httpClient.SendAsync(message);
var responseBody = await response.Content.ReadAsStringAsync();
var result = JsonConvert.DeserializeObject < dynamic > (responseBody);
Console.WriteLine(result);