Bulk adjust payouts
using System.Net.Http.Headers;var client = new HttpClient();var request = new HttpRequestMessage{ Method = HttpMethod.Post, RequestUri = new Uri("https://external-api.moja-ai.com/api/v1/reporting/calls/payout/bulk-adjust"), Headers = { { "X-API-Key", "<X-API-Key>" }, }, Content = new StringContent("{ \"call_log_ids\": [ \"example\" ], \"revenue_paid_out\": 1, \"publisher_paid_out\": 1 }") { Headers = { ContentType = new MediaTypeHeaderValue("application/json") } }};using (var response = await client.SendAsync(request)){ response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body);}package main
import ( "fmt" "strings" "net/http" "io")
func main() {
url := "https://external-api.moja-ai.com/api/v1/reporting/calls/payout/bulk-adjust"
payload := strings.NewReader("{ \"call_log_ids\": [ \"example\" ], \"revenue_paid_out\": 1, \"publisher_paid_out\": 1 }")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-Key", "<X-API-Key>") req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close() body, _ := io.ReadAll(res.Body)
fmt.Println(res) fmt.Println(string(body))
}const url = 'https://external-api.moja-ai.com/api/v1/reporting/calls/payout/bulk-adjust';const options = { method: 'POST', headers: {'X-API-Key': '<X-API-Key>', 'Content-Type': 'application/json'}, body: '{"call_log_ids":["example"],"revenue_paid_out":1,"publisher_paid_out":1}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://external-api.moja-ai.com/api/v1/reporting/calls/payout/bulk-adjust \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <X-API-Key>' \ --data '{ "call_log_ids": [ "example" ], "revenue_paid_out": 1, "publisher_paid_out": 1 }'Sets revenue_paid_out and/or publisher_paid_out to the same value(s) on each listed call log id for your organization. Provide at least one of revenue_paid_out or publisher_paid_out. Use ids returned by POST /api/v1/reporting/calls/query. failed_call_log_ids lists request ids that do not exist for your organization (no matching call log row). Repeating the same request is safe when amounts are unchanged (adjustment flags only update when a value differs).
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Header Parameters
Section titled “Header Parameters”Request Bodyrequired
Section titled “Request Bodyrequired”Bulk-adjust revenue_paid_out and/or publisher_paid_out for many call logs (same amount(s) on each row).
object
Examplegenerated
{ "call_log_ids": [ "example" ], "revenue_paid_out": 1, "publisher_paid_out": 1}Responses
Section titled “Responses”Successful Response
object
Call log ids from the request that were not found for your organization (no row updated). Empty when every requested id matched a call log.
Examplegenerated
{ "message": "example", "updated_count": 1, "requested_count": 1, "revenue_paid_out": "example", "publisher_paid_out": "example", "failed_call_log_ids": [ "example" ]}Bad Request
object
object
Examplegenerated
{ "detail": { "code": "example", "message": "example" }}Unauthorized
object
object
Examplegenerated
{ "detail": { "code": "example", "message": "example" }}Not Found
object
object
Examplegenerated
{ "detail": { "code": "example", "message": "example" }}Conflict
object
object
Examplegenerated
{ "detail": { "code": "example", "message": "example" }}Validation Error
object
object
object
Examplegenerated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example", "input": "example", "ctx": {} } ]}Too Many Requests
object
object
Examplegenerated
{ "detail": { "code": "example", "message": "example" }}Internal server error

