using RestSharp;
var options = new RestClientOptions("https://api.sandbox.{id}.gr4vy.app/gift-card-services/{gift_card_service_id}");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("Authorization", "Bearer <token>");
var response = await client.GetAsync(request);
Console.WriteLine("{0}", response.Content);{
"type": "gift-card-service",
"id": "6c020bf3-179b-4f4f-858d-84e39e196e0f",
"merchant_account_id": "default",
"gift_card_service_definition_id": "qwikcilver-gift-card",
"display_name": "Qwikcilver UK",
"active": true,
"fields": [
{
"key": "secret_key",
"value": "sk_test_26PHem9AhJZvU623DfE1x4sd"
}
],
"created_at": "2012-12-12T10:53:43+00:00",
"updated_at": "2012-12-12T10:53:43+00:00"
}Retrieves the details of a single configured gift card service.
using RestSharp;
var options = new RestClientOptions("https://api.sandbox.{id}.gr4vy.app/gift-card-services/{gift_card_service_id}");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("Authorization", "Bearer <token>");
var response = await client.GetAsync(request);
Console.WriteLine("{0}", response.Content);{
"type": "gift-card-service",
"id": "6c020bf3-179b-4f4f-858d-84e39e196e0f",
"merchant_account_id": "default",
"gift_card_service_definition_id": "qwikcilver-gift-card",
"display_name": "Qwikcilver UK",
"active": true,
"fields": [
{
"key": "secret_key",
"value": "sk_test_26PHem9AhJZvU623DfE1x4sd"
}
],
"created_at": "2012-12-12T10:53:43+00:00",
"updated_at": "2012-12-12T10:53:43+00:00"
}gift-card-services.read scope.Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The unique ID of the gift card service.
"541b126f-44c5-4c5e-a06b-d0e0d54c7d3f"
Returns a gift card service.
An configured gift card service.
The type of this resource.
gift-card-service "gift-card-service"
The ID of this gift card service.
"6c020bf3-179b-4f4f-858d-84e39e196e0f"
The unique ID for a merchant account.
"default"
The ID of the gift card service definition used to create this service.
1 - 50"qwikcilver-gift-card"
The custom name set for this service.
1 - 200"Qwikcilver UK"
Defines if this service is currently active or not.
true
A list of fields, each containing a key-value pair for each field
configured for this gift card service. Fields marked as secret
are not returned.
Show child attributes
The date and time when this service was created.
"2012-12-12T10:53:43+00:00"
The date and time when this service was last updated.
"2012-12-12T10:53:43+00:00"