All URIs are relative to https://localhost/event
Method | HTTP request | Description |
---|---|---|
Chargeback | POST /v1/chargeback | Use chargeback to capture a chargeback reported on a transaction. This event can be called multiple times to record changes to the chargeback state. |
EventResponse Chargeback (Chargeback JSON)
Use chargeback to capture a chargeback reported on a transaction. This event can be called multiple times to record changes to the chargeback state.
Note - When you send a chargeback event you also need to send a label event if you want to prevent the user from making another purchase.
using System;
using System.Diagnostics;
using ai.thirdwatch.Api;
using ai.thirdwatch.Client;
using ai.thirdwatch.Model;
namespace Example
{
public class ChargebackExample
{
public void main()
{
// Configure API key authorization: api_key
Configuration.Default.AddApiKey("X-THIRDWATCH-API-KEY", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.AddApiKeyPrefix("X-THIRDWATCH-API-KEY", "Bearer");
var apiInstance = new ChargebackApi();
var JSON = new Chargeback(); // Chargeback | Pass chargeback to thirdwatch. Only `_userID` is required field. But this should contain chargeback info.
try
{
// Use chargeback to capture a chargeback reported on a transaction. This event can be called multiple times to record changes to the chargeback state.
EventResponse result = apiInstance.Chargeback(JSON);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling ChargebackApi.Chargeback: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
JSON | Chargeback | Pass chargeback to thirdwatch. Only `_userID` is required field. But this should contain chargeback info. |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]