Compensation request
POST
https://api.forter-secure.com/v2/unified-compensation-request/{id}
Path Parameters
- idstringrequired
Header Parameters
- api-versionstringrequiredExampleDescription
- x-forter-siteidstringrequiredExampleDescription
Body Parameters
- bodyunifiedCompensationRequestRequestrequiredDescription
- accountIdstringrequiredExampleDescriptionMax Length50
- additionalEventIdentifiersobject
- AdditionalAccountEventIdentifiers
- additionalInformationobject
- GeneralPayloadMap
- compensationRequestCompensationRequestrequiredDescription
- initiationTypestring<CALL_CENTER | IN_STORE | CHAT | ONLINE | SELF_SERVICE>requiredExampleDescriptionAllowedCALL_CENTERIN_STORECHATONLINESELF_SERVICE
- itemsCompensationItem[]requiredDescription
- basicItemDataBasicItemDatarequiredDescription
- categorystringExampleDescriptionMax Length1000
- discountobject
- Discount
- couponCodeUsedstringrequiredExampleDescriptionMax Length150
- couponDiscountAmountobject
- Amount
- amountLocalCurrencystringExampleDescriptionMax Length20
- amountUSDstringExampleDescriptionMax Length12
- currencystringExampleDescriptionMax Length3Pattern[A-Z]{3}
- couponDiscountPercentstringDescription
- namestringrequiredExampleDescriptionMax Length500
- priceAmountrequiredDescription
- amountLocalCurrencystringExampleDescriptionMax Length20
- amountUSDstringExampleDescriptionMax Length12
- currencystringExampleDescriptionMax Length3Pattern[A-Z]{3}
- productIdstringExampleDescriptionMax Length70
- quantitynumberrequiredExampleDescription
- typestring<TANGIBLE | NON_TANGIBLE>requiredExampleDescriptionAllowedTANGIBLENON_TANGIBLE
- itemCompensationDataCompensationDatarequiredDescription
- compensationTypeRequestedstring<REPLACEMENT | REFUND | REFUND_UPON_RETURN | CREDIT | MIXED | UNKNOWN | NO_COMPENSATION>ExampleDescriptionAllowedREPLACEMENTREFUNDREFUND_UPON_RETURNCREDITMIXEDUNKNOWNNO_COMPENSATION
- initiationTimenumberrequiredExampleDescription
- internalReasonCategorystringExampleDescriptionMax Length40
- reasonCategorystring<CHANGED_MY_MIND | DOES_NOT_FIT | NOT_AS_DESCRIBED | WRONG_ITEM | ARRIVED_TOO_LATE | LOW_QUALITY | DAMAGED_GOODS | GIFT_RETURN | RETURN_TO_SENDER | RETURN_POLICY_EXCEPTION | OTHER | UNKNOWN | ITEM_NOT_RECEIVED | ENTIRE_ORDER_NOT_RECEIVED | OUTBOUND_ISSUE_CARRIER | OUTBOUND_ISSUE_MERCHANT | FAILED_DELIVERY | INBOUND_LOSS | INBOUND_ISSUE_CARRIER>ExampleDescriptionAllowedCHANGED_MY_MINDDOES_NOT_FITNOT_AS_DESCRIBEDWRONG_ITEMARRIVED_TOO_LATELOW_QUALITYDAMAGED_GOODSGIFT_RETURNRETURN_TO_SENDERRETURN_POLICY_EXCEPTIONOTHERUNKNOWNITEM_NOT_RECEIVEDENTIRE_ORDER_NOT_RECEIVEDOUTBOUND_ISSUE_CARRIEROUTBOUND_ISSUE_MERCHANTFAILED_DELIVERYINBOUND_LOSSINBOUND_ISSUE_CARRIER
- requestedReturnTypestring<SHIP_TO_WAREHOUSE | IN_STORE | NO_RETURN>requiredExampleDescriptionAllowedSHIP_TO_WAREHOUSEIN_STORENO_RETURN
- orderCompensationDataobject
- CompensationData
- compensationTypeRequestedstring<REPLACEMENT | REFUND | REFUND_UPON_RETURN | CREDIT | MIXED | UNKNOWN | NO_COMPENSATION>ExampleDescriptionAllowedREPLACEMENTREFUNDREFUND_UPON_RETURNCREDITMIXEDUNKNOWNNO_COMPENSATION
- initiationTimenumberrequiredExampleDescription
- internalReasonCategorystringExampleDescriptionMax Length40
- reasonCategorystring<CHANGED_MY_MIND | DOES_NOT_FIT | NOT_AS_DESCRIBED | WRONG_ITEM | ARRIVED_TOO_LATE | LOW_QUALITY | DAMAGED_GOODS | GIFT_RETURN | RETURN_TO_SENDER | RETURN_POLICY_EXCEPTION | OTHER | UNKNOWN | ITEM_NOT_RECEIVED | ENTIRE_ORDER_NOT_RECEIVED | OUTBOUND_ISSUE_CARRIER | OUTBOUND_ISSUE_MERCHANT | FAILED_DELIVERY | INBOUND_LOSS | INBOUND_ISSUE_CARRIER>ExampleDescriptionAllowedCHANGED_MY_MINDDOES_NOT_FITNOT_AS_DESCRIBEDWRONG_ITEMARRIVED_TOO_LATELOW_QUALITYDAMAGED_GOODSGIFT_RETURNRETURN_TO_SENDERRETURN_POLICY_EXCEPTIONOTHERUNKNOWNITEM_NOT_RECEIVEDENTIRE_ORDER_NOT_RECEIVEDOUTBOUND_ISSUE_CARRIEROUTBOUND_ISSUE_MERCHANTFAILED_DELIVERYINBOUND_LOSSINBOUND_ISSUE_CARRIER
- requestedReturnTypestring<SHIP_TO_WAREHOUSE | IN_STORE | NO_RETURN>requiredExampleDescriptionAllowedSHIP_TO_WAREHOUSEIN_STORENO_RETURN
- totalRequestedAmountAmountrequiredDescription
- amountLocalCurrencystringExampleDescriptionMax Length20
- amountUSDstringExampleDescriptionMax Length12
- currencystringExampleDescriptionMax Length3Pattern[A-Z]{3}
- connectionInformationConnectionInformationrequiredDescription
- checkoutToolsSessionIdstringExampleDescriptionMax Length128
- customerIPstringrequiredExampleDescription
- forterMobileUIDstringExampleDescriptionMax Length128
- forterTokenCookiestringExampleDescriptionMax Length128
- merchantDeviceIdentifierstringExampleDescriptionMax Length100
- merchantProvidedSessionIdstringExampleDescriptionMax Length128
- userAgentstringrequiredExampleDescriptionMax Length4096
- eventIdstringrequiredExampleDescriptionMax Length40
- eventTimenumberrequiredExampleDescription
- hasProofOfPurchasebooleanExampleDescription
- isGuestAccountbooleanrequiredDescription
- merchantAgentDataobject
- MerchantAgentData
- merchantAgentIdstringExampleDescription
- merchantAgentNamestringExampleDescription
- merchantIdentifiersobject
- MerchantIdentifiers
- merchantDomainstringExampleDescriptionMax Length2048
- merchantNamestringExampleDescriptionMax Length50
- originalOrderIdstringrequiredExampleDescriptionMax Length40
- statusobject
- CompensationStatus
- hasProofOfPurchaseboolean
- itemStatusItemCompensationStatus[]requiredDescription
- basicItemDataBasicItemDatarequiredDescription
- categorystringExampleDescriptionMax Length1000
- discountobject
- Discount
- couponCodeUsedstringrequiredExampleDescriptionMax Length150
- couponDiscountAmountobject
- Amount
- amountLocalCurrencystringExampleDescriptionMax Length20
- amountUSDstringExampleDescriptionMax Length12
- currencystringExampleDescriptionMax Length3Pattern[A-Z]{3}
- couponDiscountPercentstringDescription
- namestringrequiredExampleDescriptionMax Length500
- priceAmountrequiredDescription
- amountLocalCurrencystringExampleDescriptionMax Length20
- amountUSDstringExampleDescriptionMax Length12
- currencystringExampleDescriptionMax Length3Pattern[A-Z]{3}
- productIdstringExampleDescriptionMax Length70
- quantitynumberrequiredExampleDescription
- typestring<TANGIBLE | NON_TANGIBLE>requiredExampleDescriptionAllowedTANGIBLENON_TANGIBLE
- statusDataItemCompensationStatusDatarequiredDescription
- compensationTypeGrantedstring<REPLACEMENT | REFUND | REFUND_UPON_RETURN | CREDIT | MIXED | UNKNOWN | NO_COMPENSATION>requiredExampleDescriptionAllowedREPLACEMENTREFUNDREFUND_UPON_RETURNCREDITMIXEDUNKNOWNNO_COMPENSATION
- internalReasonCategorystringExampleDescriptionMax Length40
- reasonCategorystring<CHANGED_MY_MIND | DOES_NOT_FIT | NOT_AS_DESCRIBED | WRONG_ITEM | ARRIVED_TOO_LATE | LOW_QUALITY | DAMAGED_GOODS | GIFT_RETURN | RETURN_TO_SENDER | RETURN_POLICY_EXCEPTION | OTHER | UNKNOWN | ITEM_NOT_RECEIVED | ENTIRE_ORDER_NOT_RECEIVED | OUTBOUND_ISSUE_CARRIER | OUTBOUND_ISSUE_MERCHANT | FAILED_DELIVERY | INBOUND_LOSS | INBOUND_ISSUE_CARRIER>requiredExampleDescriptionAllowedCHANGED_MY_MINDDOES_NOT_FITNOT_AS_DESCRIBEDWRONG_ITEMARRIVED_TOO_LATELOW_QUALITYDAMAGED_GOODSGIFT_RETURNRETURN_TO_SENDERRETURN_POLICY_EXCEPTIONOTHERUNKNOWNITEM_NOT_RECEIVEDENTIRE_ORDER_NOT_RECEIVEDOUTBOUND_ISSUE_CARRIEROUTBOUND_ISSUE_MERCHANTFAILED_DELIVERYINBOUND_LOSSINBOUND_ISSUE_CARRIER
- returnConditionstring<GOOD_CONDITION | DAMAGED | WRONG_ITEM | NO_ITEM | NOT_ARRIVED | NO_RETURN>ExampleDescriptionAllowedGOOD_CONDITIONDAMAGEDWRONG_ITEMNO_ITEMNOT_ARRIVEDNO_RETURNMax Length40
- returnMethodGrantedstring<SHIP_TO_WAREHOUSE | IN_STORE | NO_RETURN>requiredExampleDescriptionAllowedSHIP_TO_WAREHOUSEIN_STORENO_RETURN
- statusLogobject
- CompensationStatusLog
- arrivedToWarehouseTimenumberExampleDescription
- initiationTimenumberExampleDescription
- initiationTypestring<CALL_CENTER | IN_STORE | CHAT | ONLINE | SELF_SERVICE>ExampleDescriptionAllowedCALL_CENTERIN_STORECHATONLINESELF_SERVICE
- shippedByCustomerTimenumberExampleDescription
- updatedStatusstring<ACCEPTED_BY_MERCHANT | REJECTED_BY_MERCHANT | WITHDRAWN_BY_CUSTOMER>requiredExampleDescriptionAllowedACCEPTED_BY_MERCHANTREJECTED_BY_MERCHANTWITHDRAWN_BY_CUSTOMER
- merchantAgentDataobject
- MerchantAgentData
- merchantAgentIdstringExampleDescription
- merchantAgentNamestringExampleDescription
- replacementOrderIdstringExampleDescriptionMax Length40
- shippingRefundedbooleanDescription
- shippingRefundedAmountobject
- Amount
- amountLocalCurrencystringExampleDescriptionMax Length20
- amountUSDstringExampleDescriptionMax Length12
- currencystringExampleDescriptionMax Length3Pattern[A-Z]{3}
- statusDataobject
- ItemCompensationStatusData
- compensationTypeGrantedstring<REPLACEMENT | REFUND | REFUND_UPON_RETURN | CREDIT | MIXED | UNKNOWN | NO_COMPENSATION>requiredExampleDescriptionAllowedREPLACEMENTREFUNDREFUND_UPON_RETURNCREDITMIXEDUNKNOWNNO_COMPENSATION
- internalReasonCategorystringExampleDescriptionMax Length40
- reasonCategorystring<CHANGED_MY_MIND | DOES_NOT_FIT | NOT_AS_DESCRIBED | WRONG_ITEM | ARRIVED_TOO_LATE | LOW_QUALITY | DAMAGED_GOODS | GIFT_RETURN | RETURN_TO_SENDER | RETURN_POLICY_EXCEPTION | OTHER | UNKNOWN | ITEM_NOT_RECEIVED | ENTIRE_ORDER_NOT_RECEIVED | OUTBOUND_ISSUE_CARRIER | OUTBOUND_ISSUE_MERCHANT | FAILED_DELIVERY | INBOUND_LOSS | INBOUND_ISSUE_CARRIER>requiredExampleDescriptionAllowedCHANGED_MY_MINDDOES_NOT_FITNOT_AS_DESCRIBEDWRONG_ITEMARRIVED_TOO_LATELOW_QUALITYDAMAGED_GOODSGIFT_RETURNRETURN_TO_SENDERRETURN_POLICY_EXCEPTIONOTHERUNKNOWNITEM_NOT_RECEIVEDENTIRE_ORDER_NOT_RECEIVEDOUTBOUND_ISSUE_CARRIEROUTBOUND_ISSUE_MERCHANTFAILED_DELIVERYINBOUND_LOSSINBOUND_ISSUE_CARRIER
- returnConditionstring<GOOD_CONDITION | DAMAGED | WRONG_ITEM | NO_ITEM | NOT_ARRIVED | NO_RETURN>ExampleDescriptionAllowedGOOD_CONDITIONDAMAGEDWRONG_ITEMNO_ITEMNOT_ARRIVEDNO_RETURNMax Length40
- returnMethodGrantedstring<SHIP_TO_WAREHOUSE | IN_STORE | NO_RETURN>requiredExampleDescriptionAllowedSHIP_TO_WAREHOUSEIN_STORENO_RETURN
- statusLogobject
- CompensationStatusLog
- arrivedToWarehouseTimenumberExampleDescription
- initiationTimenumberExampleDescription
- initiationTypestring<CALL_CENTER | IN_STORE | CHAT | ONLINE | SELF_SERVICE>ExampleDescriptionAllowedCALL_CENTERIN_STORECHATONLINESELF_SERVICE
- shippedByCustomerTimenumberExampleDescription
- updatedStatusstring<ACCEPTED_BY_MERCHANT | REJECTED_BY_MERCHANT | WITHDRAWN_BY_CUSTOMER>requiredExampleDescriptionAllowedACCEPTED_BY_MERCHANTREJECTED_BY_MERCHANTWITHDRAWN_BY_CUSTOMER
- totalGrantedAmountAmountrequiredDescription
- amountLocalCurrencystringExampleDescriptionMax Length20
- amountUSDstringExampleDescriptionMax Length12
- currencystringExampleDescriptionMax Length3Pattern[A-Z]{3}
Responses
200
- unifiedCompensationRequestResponseDescription
- correlationIdstringrequiredExampleDescription
- decisionReasonstringrequiredMax Length1000
- forterDecisionstringrequiredExampleDescriptionMax Length1000
- merchantPolicyIdstringrequiredExampleDescription
- recommendationsstring[]requiredDescription
- statusstringrequiredExampleDescriptionMax Length50
400
401
404
500
curl
curl --request POST \
--url https://api.forter-secure.com/v2/unified-compensation-request/{id} \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--header 'api-version: 10.3' \
--header 'x-forter-siteid: a1b2c3d4e5f6' \
--data '{
"accountId": "e520-ba9a-367-60b",
"additionalEventIdentifiers": {},
"additionalInformation": {},
"compensationRequest": {
"initiationType": "CALL_CENTER",
"items": [
{
"basicItemData": {
"discount": {
"couponCodeUsed": "FATHERSDAY2015",
"couponDiscountAmount": {}
},
"name": "White GenericBrand handbag",
"price": {},
"quantity": 1,
"type": "TANGIBLE"
},
"itemCompensationData": {
"initiationTime": 1415287568000,
"requestedReturnType": "SHIP_TO_WAREHOUSE"
}
}
],
"orderCompensationData": {
"initiationTime": 1415287568000,
"requestedReturnType": "SHIP_TO_WAREHOUSE"
},
"totalRequestedAmount": {}
},
"connectionInformation": {
"customerIP": "10.0.0.127",
"userAgent": "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.73 Safari/537.36"
},
"eventId": "r48987fgdse0r",
"eventTime": 1415287568000,
"isGuestAccount": false,
"merchantAgentData": {},
"merchantIdentifiers": {},
"originalOrderId": "2356fdse0rr489",
"status": {
"itemStatus": [
{
"basicItemData": {
"discount": {
"couponCodeUsed": "FATHERSDAY2015",
"couponDiscountAmount": {}
},
"name": "White GenericBrand handbag",
"price": {},
"quantity": 1,
"type": "TANGIBLE"
},
"statusData": {
"compensationTypeGranted": "REFUND",
"reasonCategory": "CHANGED_MY_MIND",
"returnMethodGranted": "SHIP_TO_WAREHOUSE",
"statusLog": {},
"updatedStatus": "ACCEPTED_BY_MERCHANT"
}
}
],
"merchantAgentData": {},
"shippingRefundedAmount": {},
"statusData": {
"compensationTypeGranted": "REFUND",
"reasonCategory": "CHANGED_MY_MIND",
"returnMethodGranted": "SHIP_TO_WAREHOUSE",
"statusLog": {},
"updatedStatus": "ACCEPTED_BY_MERCHANT"
},
"totalGrantedAmount": {}
}
}'javascript
var myHeaders = new Headers();
myHeaders.append("accept", "application/json");
myHeaders.append("content-type", "application/json");
myHeaders.append("api-version", "10.3");
myHeaders.append("x-forter-siteid", "a1b2c3d4e5f6");
var raw = JSON.stringify({
"accountId": "e520-ba9a-367-60b",
"additionalEventIdentifiers": {},
"additionalInformation": {},
"compensationRequest": {
"initiationType": "CALL_CENTER",
"items": [
{
"basicItemData": {
"discount": {
"couponCodeUsed": "FATHERSDAY2015",
"couponDiscountAmount": {}
},
"name": "White GenericBrand handbag",
"price": {},
"quantity": 1,
"type": "TANGIBLE"
},
"itemCompensationData": {
"initiationTime": 1415287568000,
"requestedReturnType": "SHIP_TO_WAREHOUSE"
}
}
],
"orderCompensationData": {
"initiationTime": 1415287568000,
"requestedReturnType": "SHIP_TO_WAREHOUSE"
},
"totalRequestedAmount": {}
},
"connectionInformation": {
"customerIP": "10.0.0.127",
"userAgent": "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.73 Safari/537.36"
},
"eventId": "r48987fgdse0r",
"eventTime": 1415287568000,
"isGuestAccount": false,
"merchantAgentData": {},
"merchantIdentifiers": {},
"originalOrderId": "2356fdse0rr489",
"status": {
"itemStatus": [
{
"basicItemData": {
"discount": {
"couponCodeUsed": "FATHERSDAY2015",
"couponDiscountAmount": {}
},
"name": "White GenericBrand handbag",
"price": {},
"quantity": 1,
"type": "TANGIBLE"
},
"statusData": {
"compensationTypeGranted": "REFUND",
"reasonCategory": "CHANGED_MY_MIND",
"returnMethodGranted": "SHIP_TO_WAREHOUSE",
"statusLog": {},
"updatedStatus": "ACCEPTED_BY_MERCHANT"
}
}
],
"merchantAgentData": {},
"shippingRefundedAmount": {},
"statusData": {
"compensationTypeGranted": "REFUND",
"reasonCategory": "CHANGED_MY_MIND",
"returnMethodGranted": "SHIP_TO_WAREHOUSE",
"statusLog": {},
"updatedStatus": "ACCEPTED_BY_MERCHANT"
},
"totalGrantedAmount": {}
}
});
var requestOptions = {
method: 'POST',
headers: myHeaders,
body: raw,
redirect: 'follow'
};
fetch("https://api.forter-secure.com/v2/unified-compensation-request/{id}", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));ruby
require "uri"
require "json"
require "net/http"
url = URI("https://api.forter-secure.com/v2/unified-compensation-request/{id}")
https = Net::HTTP.new(url.host, url.port)
https.use_ssl = true
request = Net::HTTP::Post.new(url)
request["accept"] = "application/json"
request["content-type"] = "application/json"
request["api-version"] = "10.3"
request["x-forter-siteid"] = "a1b2c3d4e5f6"
request.body = JSON.dump({
"accountId": "e520-ba9a-367-60b",
"additionalEventIdentifiers": {},
"additionalInformation": {},
"compensationRequest": {
"initiationType": "CALL_CENTER",
"items": [
{
"basicItemData": {
"discount": {
"couponCodeUsed": "FATHERSDAY2015",
"couponDiscountAmount": {}
},
"name": "White GenericBrand handbag",
"price": {},
"quantity": 1,
"type": "TANGIBLE"
},
"itemCompensationData": {
"initiationTime": 1415287568000,
"requestedReturnType": "SHIP_TO_WAREHOUSE"
}
}
],
"orderCompensationData": {
"initiationTime": 1415287568000,
"requestedReturnType": "SHIP_TO_WAREHOUSE"
},
"totalRequestedAmount": {}
},
"connectionInformation": {
"customerIP": "10.0.0.127",
"userAgent": "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.73 Safari/537.36"
},
"eventId": "r48987fgdse0r",
"eventTime": 1415287568000,
"isGuestAccount": false,
"merchantAgentData": {},
"merchantIdentifiers": {},
"originalOrderId": "2356fdse0rr489",
"status": {
"itemStatus": [
{
"basicItemData": {
"discount": {
"couponCodeUsed": "FATHERSDAY2015",
"couponDiscountAmount": {}
},
"name": "White GenericBrand handbag",
"price": {},
"quantity": 1,
"type": "TANGIBLE"
},
"statusData": {
"compensationTypeGranted": "REFUND",
"reasonCategory": "CHANGED_MY_MIND",
"returnMethodGranted": "SHIP_TO_WAREHOUSE",
"statusLog": {},
"updatedStatus": "ACCEPTED_BY_MERCHANT"
}
}
],
"merchantAgentData": {},
"shippingRefundedAmount": {},
"statusData": {
"compensationTypeGranted": "REFUND",
"reasonCategory": "CHANGED_MY_MIND",
"returnMethodGranted": "SHIP_TO_WAREHOUSE",
"statusLog": {},
"updatedStatus": "ACCEPTED_BY_MERCHANT"
},
"totalGrantedAmount": {}
}
})
response = https.request(request)
puts response.read_body
python
import requests
import json
url = "https://api.forter-secure.com/v2/unified-compensation-request/{id}"
payload = json.dumps({
"accountId": "e520-ba9a-367-60b",
"additionalEventIdentifiers": {},
"additionalInformation": {},
"compensationRequest": {
"initiationType": "CALL_CENTER",
"items": [
{
"basicItemData": {
"discount": {
"couponCodeUsed": "FATHERSDAY2015",
"couponDiscountAmount": {}
},
"name": "White GenericBrand handbag",
"price": {},
"quantity": 1,
"type": "TANGIBLE"
},
"itemCompensationData": {
"initiationTime": 1415287568000,
"requestedReturnType": "SHIP_TO_WAREHOUSE"
}
}
],
"orderCompensationData": {
"initiationTime": 1415287568000,
"requestedReturnType": "SHIP_TO_WAREHOUSE"
},
"totalRequestedAmount": {}
},
"connectionInformation": {
"customerIP": "10.0.0.127",
"userAgent": "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.73 Safari/537.36"
},
"eventId": "r48987fgdse0r",
"eventTime": 1415287568000,
"isGuestAccount": False,
"merchantAgentData": {},
"merchantIdentifiers": {},
"originalOrderId": "2356fdse0rr489",
"status": {
"itemStatus": [
{
"basicItemData": {
"discount": {
"couponCodeUsed": "FATHERSDAY2015",
"couponDiscountAmount": {}
},
"name": "White GenericBrand handbag",
"price": {},
"quantity": 1,
"type": "TANGIBLE"
},
"statusData": {
"compensationTypeGranted": "REFUND",
"reasonCategory": "CHANGED_MY_MIND",
"returnMethodGranted": "SHIP_TO_WAREHOUSE",
"statusLog": {},
"updatedStatus": "ACCEPTED_BY_MERCHANT"
}
}
],
"merchantAgentData": {},
"shippingRefundedAmount": {},
"statusData": {
"compensationTypeGranted": "REFUND",
"reasonCategory": "CHANGED_MY_MIND",
"returnMethodGranted": "SHIP_TO_WAREHOUSE",
"statusLog": {},
"updatedStatus": "ACCEPTED_BY_MERCHANT"
},
"totalGrantedAmount": {}
}
})
headers = {
'accept': 'application/json',
'content-type': 'application/json',
'api-version': '10.3',
'x-forter-siteid': 'a1b2c3d4e5f6'
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)
200
// Example unifiedCompensationRequestResponse
{
"correlationId": "HGJ7512345H3DE",
"decisionReason": "",
"forterDecision": "approve",
"merchantPolicyId": "0ee8ba28a8654c659addbae9253b707c",
"recommendations": [
""
],
"status": "success"
}400
// Bad Request (Often missing a required parameter)
401
// Unauthorized (No valid API key provided)
404
// Not Found (The requested item doesn't exist)
500
// Server Error (Something went wrong on Forter's end)