const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
actor: '<string>',
notes: '<string>',
creditNoteId: '<string>',
makegoodCampaignId: '<string>',
adjustmentByPartyCents: {},
originalApplicationId: '<string>'
})
};
fetch('https://sandbox.api.enfinitos.com/v1/disputes/{disputeId}/resolve', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://sandbox.api.enfinitos.com/v1/disputes/{disputeId}/resolve"
payload = {
"actor": "<string>",
"notes": "<string>",
"creditNoteId": "<string>",
"makegoodCampaignId": "<string>",
"adjustmentByPartyCents": {},
"originalApplicationId": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://sandbox.api.enfinitos.com/v1/disputes/{disputeId}/resolve"
payload := strings.NewReader("{\n \"actor\": \"<string>\",\n \"notes\": \"<string>\",\n \"creditNoteId\": \"<string>\",\n \"makegoodCampaignId\": \"<string>\",\n \"adjustmentByPartyCents\": {},\n \"originalApplicationId\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://sandbox.api.enfinitos.com/v1/disputes/{disputeId}/resolve")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"actor\": \"<string>\",\n \"notes\": \"<string>\",\n \"creditNoteId\": \"<string>\",\n \"makegoodCampaignId\": \"<string>\",\n \"adjustmentByPartyCents\": {},\n \"originalApplicationId\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.api.enfinitos.com/v1/disputes/{disputeId}/resolve")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"actor\": \"<string>\",\n \"notes\": \"<string>\",\n \"creditNoteId\": \"<string>\",\n \"makegoodCampaignId\": \"<string>\",\n \"adjustmentByPartyCents\": {},\n \"originalApplicationId\": \"<string>\"\n}"
response = http.request(request)
puts response.read_bodyfalsecurl --request POST \
--url https://sandbox.api.enfinitos.com/v1/disputes/{disputeId}/resolve \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"actor": "<string>",
"notes": "<string>",
"creditNoteId": "<string>",
"makegoodCampaignId": "<string>",
"adjustmentByPartyCents": {},
"originalApplicationId": "<string>"
}
'{
"ok": true,
"data": {
"dispute": {
"id": "<string>",
"orgId": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"state": "OPENED",
"openedBy": "<string>",
"openedByRole": "advertiser",
"openedAt": "2023-11-07T05:31:56Z",
"disputedPeriod": {
"start": "2023-11-07T05:31:56Z",
"end": "2023-11-07T05:31:56Z"
},
"affectedSurface": {
"campaignId": "<string>",
"screenIds": [
"<string>"
],
"substrateId": "<string>"
},
"affectedPartyRole": "TENANT",
"claimedShortfall": {
"unit": "<string>",
"amount": "<string>"
},
"evidenceBundle": {
"proofPackIds": [
"<string>"
],
"meteringSnapshotIds": [
"<string>"
],
"settlementApplicationIds": [
"<string>"
],
"attachmentRefs": [
"<string>"
],
"auditorReportRef": "<string>"
},
"operatorResponse": {
"at": "2023-11-07T05:31:56Z",
"by": "<string>",
"stance": "ACKNOWLEDGE",
"notes": "<string>",
"proposedRemedy": {
"kind": "CREDIT",
"amount": "<string>",
"makegoodWindow": {
"start": "2023-11-07T05:31:56Z",
"end": "2023-11-07T05:31:56Z"
}
}
},
"advertiserResponse": {
"at": "2023-11-07T05:31:56Z",
"by": "<string>",
"stance": "ACCEPT",
"notes": "<string>"
},
"resolution": {
"kind": "CREDIT_ISSUED",
"creditNoteId": "<string>",
"makegoodCampaignId": "<string>",
"settlementAdjustmentId": "<string>",
"resolvedAt": "2023-11-07T05:31:56Z",
"resolvedBy": "<string>",
"notes": "<string>"
},
"timeline": [
{
"at": "2023-11-07T05:31:56Z",
"actor": "<string>",
"fromState": "OPENED",
"toState": "OPENED",
"notes": "<string>"
}
]
},
"overrideApplied": true,
"override": {},
"originalApplicationId": "<string>",
"overrideSkipped": {
"reason": "NO_LINKAGE",
"message": "<string>"
}
},
"contractVersion": "v1.0"
}{
"ok": false,
"error": "AUTH_REQUIRED",
"message": "<string>",
"contractVersion": "v1.0",
"field": "<string>",
"validationErrors": [
{}
],
"requiredScopes": [
"<string>"
],
"keyScopes": [
"<string>"
]
}{
"ok": false,
"error": "AUTH_REQUIRED",
"message": "<string>",
"contractVersion": "v1.0",
"field": "<string>",
"validationErrors": [
{}
],
"requiredScopes": [
"<string>"
],
"keyScopes": [
"<string>"
]
}{
"ok": false,
"error": "AUTH_REQUIRED",
"message": "<string>",
"contractVersion": "v1.0",
"field": "<string>",
"validationErrors": [
{}
],
"requiredScopes": [
"<string>"
],
"keyScopes": [
"<string>"
]
}{
"ok": false,
"error": "AUTH_REQUIRED",
"message": "<string>",
"contractVersion": "v1.0",
"field": "<string>",
"validationErrors": [
{}
],
"requiredScopes": [
"<string>"
],
"keyScopes": [
"<string>"
]
}{
"ok": false,
"error": "AUTH_REQUIRED",
"message": "<string>",
"contractVersion": "v1.0",
"field": "<string>",
"validationErrors": [
{}
],
"requiredScopes": [
"<string>"
],
"keyScopes": [
"<string>"
]
}{
"ok": false,
"error": "AUTH_REQUIRED",
"message": "<string>",
"contractVersion": "v1.0",
"field": "<string>",
"validationErrors": [
{}
],
"requiredScopes": [
"<string>"
],
"keyScopes": [
"<string>"
]
}Resolve a dispute
Finalise a dispute with a validated resolution — the terminal ADVERTISER_RESPONDED → RESOLVED (or ESCALATED → RESOLVED) leg. When kind is SETTLEMENT_ADJUSTMENT, the route builds the settlement-application OVERRIDE that corrects the disputed attribution and appends it in the SAME atomic write as the dispute transition; the resolution’s settlementAdjustmentId carries the override id. The original application is located via the dispute’s evidenceBundle.settlementApplicationIds (or an explicit originalApplicationId when the bundle links more than one). Lookup failure is NON-FATAL: the resolve still succeeds and the response carries overrideApplied: false plus an overrideSkipped machine reason so the operator can re-run the adjustment by hand. Requires scope settlement:write.
const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
actor: '<string>',
notes: '<string>',
creditNoteId: '<string>',
makegoodCampaignId: '<string>',
adjustmentByPartyCents: {},
originalApplicationId: '<string>'
})
};
fetch('https://sandbox.api.enfinitos.com/v1/disputes/{disputeId}/resolve', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://sandbox.api.enfinitos.com/v1/disputes/{disputeId}/resolve"
payload = {
"actor": "<string>",
"notes": "<string>",
"creditNoteId": "<string>",
"makegoodCampaignId": "<string>",
"adjustmentByPartyCents": {},
"originalApplicationId": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://sandbox.api.enfinitos.com/v1/disputes/{disputeId}/resolve"
payload := strings.NewReader("{\n \"actor\": \"<string>\",\n \"notes\": \"<string>\",\n \"creditNoteId\": \"<string>\",\n \"makegoodCampaignId\": \"<string>\",\n \"adjustmentByPartyCents\": {},\n \"originalApplicationId\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://sandbox.api.enfinitos.com/v1/disputes/{disputeId}/resolve")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"actor\": \"<string>\",\n \"notes\": \"<string>\",\n \"creditNoteId\": \"<string>\",\n \"makegoodCampaignId\": \"<string>\",\n \"adjustmentByPartyCents\": {},\n \"originalApplicationId\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.api.enfinitos.com/v1/disputes/{disputeId}/resolve")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"actor\": \"<string>\",\n \"notes\": \"<string>\",\n \"creditNoteId\": \"<string>\",\n \"makegoodCampaignId\": \"<string>\",\n \"adjustmentByPartyCents\": {},\n \"originalApplicationId\": \"<string>\"\n}"
response = http.request(request)
puts response.read_bodyfalsecurl --request POST \
--url https://sandbox.api.enfinitos.com/v1/disputes/{disputeId}/resolve \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"actor": "<string>",
"notes": "<string>",
"creditNoteId": "<string>",
"makegoodCampaignId": "<string>",
"adjustmentByPartyCents": {},
"originalApplicationId": "<string>"
}
'{
"ok": true,
"data": {
"dispute": {
"id": "<string>",
"orgId": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"state": "OPENED",
"openedBy": "<string>",
"openedByRole": "advertiser",
"openedAt": "2023-11-07T05:31:56Z",
"disputedPeriod": {
"start": "2023-11-07T05:31:56Z",
"end": "2023-11-07T05:31:56Z"
},
"affectedSurface": {
"campaignId": "<string>",
"screenIds": [
"<string>"
],
"substrateId": "<string>"
},
"affectedPartyRole": "TENANT",
"claimedShortfall": {
"unit": "<string>",
"amount": "<string>"
},
"evidenceBundle": {
"proofPackIds": [
"<string>"
],
"meteringSnapshotIds": [
"<string>"
],
"settlementApplicationIds": [
"<string>"
],
"attachmentRefs": [
"<string>"
],
"auditorReportRef": "<string>"
},
"operatorResponse": {
"at": "2023-11-07T05:31:56Z",
"by": "<string>",
"stance": "ACKNOWLEDGE",
"notes": "<string>",
"proposedRemedy": {
"kind": "CREDIT",
"amount": "<string>",
"makegoodWindow": {
"start": "2023-11-07T05:31:56Z",
"end": "2023-11-07T05:31:56Z"
}
}
},
"advertiserResponse": {
"at": "2023-11-07T05:31:56Z",
"by": "<string>",
"stance": "ACCEPT",
"notes": "<string>"
},
"resolution": {
"kind": "CREDIT_ISSUED",
"creditNoteId": "<string>",
"makegoodCampaignId": "<string>",
"settlementAdjustmentId": "<string>",
"resolvedAt": "2023-11-07T05:31:56Z",
"resolvedBy": "<string>",
"notes": "<string>"
},
"timeline": [
{
"at": "2023-11-07T05:31:56Z",
"actor": "<string>",
"fromState": "OPENED",
"toState": "OPENED",
"notes": "<string>"
}
]
},
"overrideApplied": true,
"override": {},
"originalApplicationId": "<string>",
"overrideSkipped": {
"reason": "NO_LINKAGE",
"message": "<string>"
}
},
"contractVersion": "v1.0"
}{
"ok": false,
"error": "AUTH_REQUIRED",
"message": "<string>",
"contractVersion": "v1.0",
"field": "<string>",
"validationErrors": [
{}
],
"requiredScopes": [
"<string>"
],
"keyScopes": [
"<string>"
]
}{
"ok": false,
"error": "AUTH_REQUIRED",
"message": "<string>",
"contractVersion": "v1.0",
"field": "<string>",
"validationErrors": [
{}
],
"requiredScopes": [
"<string>"
],
"keyScopes": [
"<string>"
]
}{
"ok": false,
"error": "AUTH_REQUIRED",
"message": "<string>",
"contractVersion": "v1.0",
"field": "<string>",
"validationErrors": [
{}
],
"requiredScopes": [
"<string>"
],
"keyScopes": [
"<string>"
]
}{
"ok": false,
"error": "AUTH_REQUIRED",
"message": "<string>",
"contractVersion": "v1.0",
"field": "<string>",
"validationErrors": [
{}
],
"requiredScopes": [
"<string>"
],
"keyScopes": [
"<string>"
]
}{
"ok": false,
"error": "AUTH_REQUIRED",
"message": "<string>",
"contractVersion": "v1.0",
"field": "<string>",
"validationErrors": [
{}
],
"requiredScopes": [
"<string>"
],
"keyScopes": [
"<string>"
]
}{
"ok": false,
"error": "AUTH_REQUIRED",
"message": "<string>",
"contractVersion": "v1.0",
"field": "<string>",
"validationErrors": [
{}
],
"requiredScopes": [
"<string>"
],
"keyScopes": [
"<string>"
]
}