API ReferenceGenerated Reference
Refund an eligible failed and charged call
Only the original account may apply. Successful calls are ineligible. Verified original funding allocations are required; older calls without them require support review. Retries return the same refund, and credits return to the original funding accounts and buckets.
Authorization
bearerAuth AuthorizationBearer <token>
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://api.xenodia.xyz/v1/refunds/apply" \ -H "Content-Type: application/json" \ -d '{ "call_id": 0, "reason": "string" }'{
"status": "string",
"refund": {
"id": 0,
"account_id": 0,
"call_id": 0,
"amount_micro": 0,
"reason": "string",
"status": "string",
"created_at": "2019-08-24T14:15:22Z"
}
}{
"error": "string",
"message": "string",
"request_id": "string"
}{
"error": "string",
"message": "string",
"request_id": "string"
}{
"error": "string",
"message": "string",
"request_id": "string"
}{
"error": "string",
"message": "string",
"request_id": "string"
}{
"error": "string",
"message": "string",
"request_id": "string"
}{
"error": "string",
"message": "string",
"request_id": "string"
}{
"error": "string",
"message": "string",
"request_id": "string"
}