補償リクエスト
POST
https://api.forter-secure.com/v2/unified-compensation-request/{id}
Path Parameters
- idstringrequired
Header Parameters
- api-versionstringrequiredExampleDescriptionDefault10.1
- x-forter-siteidstringrequiredExampleDescriptionDefault8b47c6d423ba
Body Parameters
- bodyunifiedCompensationRequestRequestrequiredDescription
- accountIdstringrequiredDescriptionDefaulte520-ba9a-367-60b
- additionalEventIdentifiersobject
- AdditionalAccountEventIdentifiers
- additionalInformationobject
- GeneralPayloadMap
- compensationRequestCompensationRequestrequiredDescription
- initiationTypestring<CALL_CENTER | IN_STORE | CHAT | ONLINE | SELF_SERVICE>requiredDescriptionDefaultCALL_CENTER
- itemsCompensationItem[]requiredDescription
- basicItemDataBasicItemDatarequiredDescription
- categorystringDescriptionDefaultApparel and accessories
- discountobject
- Discount
- couponCodeUsedstringrequiredDescriptionDefaultFATHERSDAY2015
- couponDiscountAmountobject
- Amount
- amountLocalCurrencystringDescriptionDefault105.55
- amountUSDstringDescriptionDefault99.95
- currencystringDescriptionDefaultCAD
- couponDiscountPercentstringDescription
- namestringrequiredDescriptionDefaultWhite GenericBrand handbag
- priceAmountrequiredDescription
- amountLocalCurrencystringDescriptionDefault105.55
- amountUSDstringDescriptionDefault99.95
- currencystringDescriptionDefaultCAD
- productIdstringDescriptionDefaultAg54352R7768kkO
- quantitynumberrequiredDescriptionDefault1
- typestring<TANGIBLE | NON_TANGIBLE>requiredDescriptionDefaultTANGIBLE
- itemCompensationDataCompensationDatarequiredDescription
- compensationTypeRequestedstring<REPLACEMENT | REFUND | REFUND_UPON_RETURN | CREDIT | MIXED | UNKNOWN | NO_COMPENSATION>DescriptionDefaultREFUND
- initiationTimenumberrequiredDescriptionDefault1415287568000
- internalReasonCategorystringDescriptionDefaultdefective item
- 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>DescriptionDefaultCHANGED_MY_MIND
- requestedReturnTypestring<SHIP_TO_WAREHOUSE | IN_STORE | NO_RETURN>requiredDescriptionDefaultSHIP_TO_WAREHOUSE
- orderCompensationDataobject
- CompensationData
- compensationTypeRequestedstring<REPLACEMENT | REFUND | REFUND_UPON_RETURN | CREDIT | MIXED | UNKNOWN | NO_COMPENSATION>DescriptionDefaultREFUND
- initiationTimenumberrequiredDescriptionDefault1415287568000
- internalReasonCategorystringDescriptionDefaultdefective item
- 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>DescriptionDefaultCHANGED_MY_MIND
- requestedReturnTypestring<SHIP_TO_WAREHOUSE | IN_STORE | NO_RETURN>requiredDescriptionDefaultSHIP_TO_WAREHOUSE
- totalRequestedAmountAmountrequiredDescription
- amountLocalCurrencystringDescriptionDefault105.55
- amountUSDstringDescriptionDefault99.95
- currencystringDescriptionDefaultCAD
- connectionInformationConnectionInformationrequiredDescription
- checkoutToolsSessionIdstringDescriptionDefaultHTGDVC232fdFDFdfkdjk87382938mcndjc2f4gbbGd
- customerIPstringrequiredDescriptionDefault10.0.0.127
- forterMobileUIDstringDescriptionDefault6429751237891
- forterTokenCookiestringDescriptionDefault249453te8tbf9355186fet0ken547b95_2786972955236__UDE52-n5_8dg
- merchantDeviceIdentifierstringDescriptionDefaultHGJ7512345H3
- merchantProvidedSessionIdstringDescriptionDefaultHTGDVC232fdFDFdfkdjk87382938mcndjc2f4gbbGd
- userAgentstringrequiredDescriptionDefaultMozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.73 Safari/537.36
- eventIdstringrequiredDescriptionDefaultr48987fgdse0r
- eventTimenumberrequiredDescriptionDefault1415287568000
- hasProofOfPurchasebooleanDescriptionDefaulttrue
- isGuestAccountbooleanrequiredDescriptionDefaultfalse
- merchantAgentDataobject
- MerchantAgentData
- merchantAgentIdstringDescriptionDefaultHG36885TZ
- merchantAgentNamestringDescriptionDefaultJohn Smith
- merchantIdentifiersobject
- MerchantIdentifiers
- merchantDomainstringDescriptionDefaultHandbagsExpressDiscounts.com
- merchantNamestringDescriptionDefaultHandbags Express Discounts
- originalOrderIdstringrequiredDescriptionDefault2356fdse0rr489
- statusobject
- CompensationStatus
- hasProofOfPurchaseboolean
- itemStatusItemCompensationStatus[]requiredDescription
- basicItemDataBasicItemDatarequiredDescription
- categorystringDescriptionDefaultApparel and accessories
- discountobject
- Discount
- couponCodeUsedstringrequiredDescriptionDefaultFATHERSDAY2015
- couponDiscountAmountobject
- Amount
- amountLocalCurrencystringDescriptionDefault105.55
- amountUSDstringDescriptionDefault99.95
- currencystringDescriptionDefaultCAD
- couponDiscountPercentstringDescription
- namestringrequiredDescriptionDefaultWhite GenericBrand handbag
- priceAmountrequiredDescription
- amountLocalCurrencystringDescriptionDefault105.55
- amountUSDstringDescriptionDefault99.95
- currencystringDescriptionDefaultCAD
- productIdstringDescriptionDefaultAg54352R7768kkO
- quantitynumberrequiredDescriptionDefault1
- typestring<TANGIBLE | NON_TANGIBLE>requiredDescriptionDefaultTANGIBLE
- statusDataItemCompensationStatusDatarequiredDescription
- compensationTypeGrantedstring<REPLACEMENT | REFUND | REFUND_UPON_RETURN | CREDIT | MIXED | UNKNOWN | NO_COMPENSATION>requiredDescriptionDefaultREFUND
- internalReasonCategorystringDescriptionDefaultdefective item
- 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>requiredDescriptionDefaultCHANGED_MY_MIND
- returnConditionstring<GOOD_CONDITION | DAMAGED | WRONG_ITEM | NO_ITEM | NOT_ARRIVED | NO_RETURN>DescriptionDefaultDAMAGED
- returnMethodGrantedstring<SHIP_TO_WAREHOUSE | IN_STORE | NO_RETURN>requiredDescriptionDefaultSHIP_TO_WAREHOUSE
- statusLogobject
- CompensationStatusLog
- arrivedToWarehouseTimenumberDescriptionDefault1420070400000
- initiationTimenumberDescriptionDefault1415287568000
- initiationTypestring<CALL_CENTER | IN_STORE | CHAT | ONLINE | SELF_SERVICE>DescriptionDefaultCALL_CENTER
- shippedByCustomerTimenumberDescriptionDefault1420070400000
- updatedStatusstring<ACCEPTED_BY_MERCHANT | REJECTED_BY_MERCHANT | WITHDRAWN_BY_CUSTOMER>requiredDescriptionDefaultACCEPTED_BY_MERCHANT
- merchantAgentDataobject
- MerchantAgentData
- merchantAgentIdstringDescriptionDefaultHG36885TZ
- merchantAgentNamestringDescriptionDefaultJohn Smith
- replacementOrderIdstringDescriptionDefault2356fdse0rr489
- shippingRefundedbooleanDescription
- shippingRefundedAmountobject
- Amount
- amountLocalCurrencystringDescriptionDefault105.55
- amountUSDstringDescriptionDefault99.95
- currencystringDescriptionDefaultCAD
- statusDataobject
- ItemCompensationStatusData
- compensationTypeGrantedstring<REPLACEMENT | REFUND | REFUND_UPON_RETURN | CREDIT | MIXED | UNKNOWN | NO_COMPENSATION>requiredDescriptionDefaultREFUND
- internalReasonCategorystringDescriptionDefaultdefective item
- 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>requiredDescriptionDefaultCHANGED_MY_MIND
- returnConditionstring<GOOD_CONDITION | DAMAGED | WRONG_ITEM | NO_ITEM | NOT_ARRIVED | NO_RETURN>DescriptionDefaultDAMAGED
- returnMethodGrantedstring<SHIP_TO_WAREHOUSE | IN_STORE | NO_RETURN>requiredDescriptionDefaultSHIP_TO_WAREHOUSE
- statusLogobject
- CompensationStatusLog
- arrivedToWarehouseTimenumberDescriptionDefault1420070400000
- initiationTimenumberDescriptionDefault1415287568000
- initiationTypestring<CALL_CENTER | IN_STORE | CHAT | ONLINE | SELF_SERVICE>DescriptionDefaultCALL_CENTER
- shippedByCustomerTimenumberDescriptionDefault1420070400000
- updatedStatusstring<ACCEPTED_BY_MERCHANT | REJECTED_BY_MERCHANT | WITHDRAWN_BY_CUSTOMER>requiredDescriptionDefaultACCEPTED_BY_MERCHANT
- totalGrantedAmountAmountrequiredDescription
- amountLocalCurrencystringDescriptionDefault105.55
- amountUSDstringDescriptionDefault99.95
- currencystringDescriptionDefaultCAD
Responses
200
- unifiedCompensationRequestResponseDescription
- correlationIdstringrequiredDescriptionDefaultHGJ7512345H3DE
- decisionReasonstringrequiredDefault
- forterDecisionstringrequiredDescriptionDefaultapprove
- merchantPolicyIdstringrequiredDescriptionDefault0ee8ba28a8654c659addbae9253b707c
- recommendationsstring[]requiredDescriptionDefault
- statusstringrequiredDescriptionDefaultsuccess
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.1' \
--header 'x-forter-siteid: 8b47c6d423ba' \
--header 'authorization: Basic <base64-encoded-api-key:>' \
--data '{
"accountId": "e520-ba9a-367-60b",
"additionalEventIdentifiers": {},
"additionalInformation": {},
"compensationRequest": {
"initiationType": "CALL_CENTER",
"items": [
{
"basicItemData": {
"category": "Apparel and accessories",
"discount": {
"couponCodeUsed": "FATHERSDAY2015",
"couponDiscountAmount": {
"amountLocalCurrency": "105.55",
"amountUSD": "99.95",
"currency": "CAD"
}
},
"name": "White GenericBrand handbag",
"price": {
"amountLocalCurrency": "105.55",
"amountUSD": "99.95",
"currency": "CAD"
},
"productId": "Ag54352R7768kkO",
"quantity": 1,
"type": "TANGIBLE"
},
"itemCompensationData": {
"compensationTypeRequested": "REFUND",
"initiationTime": 1415287568000,
"internalReasonCategory": "defective item",
"reasonCategory": "CHANGED_MY_MIND",
"requestedReturnType": "SHIP_TO_WAREHOUSE"
}
}
],
"orderCompensationData": {
"compensationTypeRequested": "REFUND",
"initiationTime": 1415287568000,
"internalReasonCategory": "defective item",
"reasonCategory": "CHANGED_MY_MIND",
"requestedReturnType": "SHIP_TO_WAREHOUSE"
},
"totalRequestedAmount": {
"amountLocalCurrency": "105.55",
"amountUSD": "99.95",
"currency": "CAD"
}
},
"connectionInformation": {
"checkoutToolsSessionId": "HTGDVC232fdFDFdfkdjk87382938mcndjc2f4gbbGd",
"customerIP": "10.0.0.127",
"forterMobileUID": "6429751237891",
"forterTokenCookie": "249453te8tbf9355186fet0ken547b95_2786972955236__UDE52-n5_8dg",
"merchantDeviceIdentifier": "HGJ7512345H3",
"merchantProvidedSessionId": "HTGDVC232fdFDFdfkdjk87382938mcndjc2f4gbbGd",
"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,
"hasProofOfPurchase": true,
"isGuestAccount": false,
"merchantAgentData": {
"merchantAgentId": "HG36885TZ",
"merchantAgentName": "John Smith"
},
"merchantIdentifiers": {
"merchantDomain": "HandbagsExpressDiscounts.com",
"merchantName": "Handbags Express Discounts"
},
"originalOrderId": "2356fdse0rr489",
"status": {
"itemStatus": [
{
"basicItemData": {
"category": "Apparel and accessories",
"discount": {
"couponCodeUsed": "FATHERSDAY2015",
"couponDiscountAmount": {
"amountLocalCurrency": "105.55",
"amountUSD": "99.95",
"currency": "CAD"
}
},
"name": "White GenericBrand handbag",
"price": {
"amountLocalCurrency": "105.55",
"amountUSD": "99.95",
"currency": "CAD"
},
"productId": "Ag54352R7768kkO",
"quantity": 1,
"type": "TANGIBLE"
},
"statusData": {
"compensationTypeGranted": "REFUND",
"internalReasonCategory": "defective item",
"reasonCategory": "CHANGED_MY_MIND",
"returnCondition": "DAMAGED",
"returnMethodGranted": "SHIP_TO_WAREHOUSE",
"statusLog": {
"arrivedToWarehouseTime": 1420070400000,
"initiationTime": 1415287568000,
"initiationType": "CALL_CENTER",
"shippedByCustomerTime": 1420070400000
},
"updatedStatus": "ACCEPTED_BY_MERCHANT"
}
}
],
"merchantAgentData": {
"merchantAgentId": "HG36885TZ",
"merchantAgentName": "John Smith"
},
"replacementOrderId": "2356fdse0rr489",
"shippingRefundedAmount": {
"amountLocalCurrency": "105.55",
"amountUSD": "99.95",
"currency": "CAD"
},
"statusData": {
"compensationTypeGranted": "REFUND",
"internalReasonCategory": "defective item",
"reasonCategory": "CHANGED_MY_MIND",
"returnCondition": "DAMAGED",
"returnMethodGranted": "SHIP_TO_WAREHOUSE",
"statusLog": {
"arrivedToWarehouseTime": 1420070400000,
"initiationTime": 1415287568000,
"initiationType": "CALL_CENTER",
"shippedByCustomerTime": 1420070400000
},
"updatedStatus": "ACCEPTED_BY_MERCHANT"
},
"totalGrantedAmount": {
"amountLocalCurrency": "105.55",
"amountUSD": "99.95",
"currency": "CAD"
}
}
}'javascript
var myHeaders = new Headers();
myHeaders.append("accept", "application/json");
myHeaders.append("content-type", "application/json");
myHeaders.append("api-version", "10.1");
myHeaders.append("x-forter-siteid", "8b47c6d423ba");
myHeaders.append("authorization", "Basic <base64-encoded-api-key:>");
var raw = JSON.stringify({
"accountId": "e520-ba9a-367-60b",
"additionalEventIdentifiers": {},
"additionalInformation": {},
"compensationRequest": {
"initiationType": "CALL_CENTER",
"items": [
{
"basicItemData": {
"category": "Apparel and accessories",
"discount": {
"couponCodeUsed": "FATHERSDAY2015",
"couponDiscountAmount": {
"amountLocalCurrency": "105.55",
"amountUSD": "99.95",
"currency": "CAD"
}
},
"name": "White GenericBrand handbag",
"price": {
"amountLocalCurrency": "105.55",
"amountUSD": "99.95",
"currency": "CAD"
},
"productId": "Ag54352R7768kkO",
"quantity": 1,
"type": "TANGIBLE"
},
"itemCompensationData": {
"compensationTypeRequested": "REFUND",
"initiationTime": 1415287568000,
"internalReasonCategory": "defective item",
"reasonCategory": "CHANGED_MY_MIND",
"requestedReturnType": "SHIP_TO_WAREHOUSE"
}
}
],
"orderCompensationData": {
"compensationTypeRequested": "REFUND",
"initiationTime": 1415287568000,
"internalReasonCategory": "defective item",
"reasonCategory": "CHANGED_MY_MIND",
"requestedReturnType": "SHIP_TO_WAREHOUSE"
},
"totalRequestedAmount": {
"amountLocalCurrency": "105.55",
"amountUSD": "99.95",
"currency": "CAD"
}
},
"connectionInformation": {
"checkoutToolsSessionId": "HTGDVC232fdFDFdfkdjk87382938mcndjc2f4gbbGd",
"customerIP": "10.0.0.127",
"forterMobileUID": "6429751237891",
"forterTokenCookie": "249453te8tbf9355186fet0ken547b95_2786972955236__UDE52-n5_8dg",
"merchantDeviceIdentifier": "HGJ7512345H3",
"merchantProvidedSessionId": "HTGDVC232fdFDFdfkdjk87382938mcndjc2f4gbbGd",
"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,
"hasProofOfPurchase": true,
"isGuestAccount": false,
"merchantAgentData": {
"merchantAgentId": "HG36885TZ",
"merchantAgentName": "John Smith"
},
"merchantIdentifiers": {
"merchantDomain": "HandbagsExpressDiscounts.com",
"merchantName": "Handbags Express Discounts"
},
"originalOrderId": "2356fdse0rr489",
"status": {
"itemStatus": [
{
"basicItemData": {
"category": "Apparel and accessories",
"discount": {
"couponCodeUsed": "FATHERSDAY2015",
"couponDiscountAmount": {
"amountLocalCurrency": "105.55",
"amountUSD": "99.95",
"currency": "CAD"
}
},
"name": "White GenericBrand handbag",
"price": {
"amountLocalCurrency": "105.55",
"amountUSD": "99.95",
"currency": "CAD"
},
"productId": "Ag54352R7768kkO",
"quantity": 1,
"type": "TANGIBLE"
},
"statusData": {
"compensationTypeGranted": "REFUND",
"internalReasonCategory": "defective item",
"reasonCategory": "CHANGED_MY_MIND",
"returnCondition": "DAMAGED",
"returnMethodGranted": "SHIP_TO_WAREHOUSE",
"statusLog": {
"arrivedToWarehouseTime": 1420070400000,
"initiationTime": 1415287568000,
"initiationType": "CALL_CENTER",
"shippedByCustomerTime": 1420070400000
},
"updatedStatus": "ACCEPTED_BY_MERCHANT"
}
}
],
"merchantAgentData": {
"merchantAgentId": "HG36885TZ",
"merchantAgentName": "John Smith"
},
"replacementOrderId": "2356fdse0rr489",
"shippingRefundedAmount": {
"amountLocalCurrency": "105.55",
"amountUSD": "99.95",
"currency": "CAD"
},
"statusData": {
"compensationTypeGranted": "REFUND",
"internalReasonCategory": "defective item",
"reasonCategory": "CHANGED_MY_MIND",
"returnCondition": "DAMAGED",
"returnMethodGranted": "SHIP_TO_WAREHOUSE",
"statusLog": {
"arrivedToWarehouseTime": 1420070400000,
"initiationTime": 1415287568000,
"initiationType": "CALL_CENTER",
"shippedByCustomerTime": 1420070400000
},
"updatedStatus": "ACCEPTED_BY_MERCHANT"
},
"totalGrantedAmount": {
"amountLocalCurrency": "105.55",
"amountUSD": "99.95",
"currency": "CAD"
}
}
});
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.1"
request["x-forter-siteid"] = "8b47c6d423ba"
request["authorization"] = "Basic <base64-encoded-api-key:>"
request.body = JSON.dump({
"accountId": "e520-ba9a-367-60b",
"additionalEventIdentifiers": {},
"additionalInformation": {},
"compensationRequest": {
"initiationType": "CALL_CENTER",
"items": [
{
"basicItemData": {
"category": "Apparel and accessories",
"discount": {
"couponCodeUsed": "FATHERSDAY2015",
"couponDiscountAmount": {
"amountLocalCurrency": "105.55",
"amountUSD": "99.95",
"currency": "CAD"
}
},
"name": "White GenericBrand handbag",
"price": {
"amountLocalCurrency": "105.55",
"amountUSD": "99.95",
"currency": "CAD"
},
"productId": "Ag54352R7768kkO",
"quantity": 1,
"type": "TANGIBLE"
},
"itemCompensationData": {
"compensationTypeRequested": "REFUND",
"initiationTime": 1415287568000,
"internalReasonCategory": "defective item",
"reasonCategory": "CHANGED_MY_MIND",
"requestedReturnType": "SHIP_TO_WAREHOUSE"
}
}
],
"orderCompensationData": {
"compensationTypeRequested": "REFUND",
"initiationTime": 1415287568000,
"internalReasonCategory": "defective item",
"reasonCategory": "CHANGED_MY_MIND",
"requestedReturnType": "SHIP_TO_WAREHOUSE"
},
"totalRequestedAmount": {
"amountLocalCurrency": "105.55",
"amountUSD": "99.95",
"currency": "CAD"
}
},
"connectionInformation": {
"checkoutToolsSessionId": "HTGDVC232fdFDFdfkdjk87382938mcndjc2f4gbbGd",
"customerIP": "10.0.0.127",
"forterMobileUID": "6429751237891",
"forterTokenCookie": "249453te8tbf9355186fet0ken547b95_2786972955236__UDE52-n5_8dg",
"merchantDeviceIdentifier": "HGJ7512345H3",
"merchantProvidedSessionId": "HTGDVC232fdFDFdfkdjk87382938mcndjc2f4gbbGd",
"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,
"hasProofOfPurchase": true,
"isGuestAccount": false,
"merchantAgentData": {
"merchantAgentId": "HG36885TZ",
"merchantAgentName": "John Smith"
},
"merchantIdentifiers": {
"merchantDomain": "HandbagsExpressDiscounts.com",
"merchantName": "Handbags Express Discounts"
},
"originalOrderId": "2356fdse0rr489",
"status": {
"itemStatus": [
{
"basicItemData": {
"category": "Apparel and accessories",
"discount": {
"couponCodeUsed": "FATHERSDAY2015",
"couponDiscountAmount": {
"amountLocalCurrency": "105.55",
"amountUSD": "99.95",
"currency": "CAD"
}
},
"name": "White GenericBrand handbag",
"price": {
"amountLocalCurrency": "105.55",
"amountUSD": "99.95",
"currency": "CAD"
},
"productId": "Ag54352R7768kkO",
"quantity": 1,
"type": "TANGIBLE"
},
"statusData": {
"compensationTypeGranted": "REFUND",
"internalReasonCategory": "defective item",
"reasonCategory": "CHANGED_MY_MIND",
"returnCondition": "DAMAGED",
"returnMethodGranted": "SHIP_TO_WAREHOUSE",
"statusLog": {
"arrivedToWarehouseTime": 1420070400000,
"initiationTime": 1415287568000,
"initiationType": "CALL_CENTER",
"shippedByCustomerTime": 1420070400000
},
"updatedStatus": "ACCEPTED_BY_MERCHANT"
}
}
],
"merchantAgentData": {
"merchantAgentId": "HG36885TZ",
"merchantAgentName": "John Smith"
},
"replacementOrderId": "2356fdse0rr489",
"shippingRefundedAmount": {
"amountLocalCurrency": "105.55",
"amountUSD": "99.95",
"currency": "CAD"
},
"statusData": {
"compensationTypeGranted": "REFUND",
"internalReasonCategory": "defective item",
"reasonCategory": "CHANGED_MY_MIND",
"returnCondition": "DAMAGED",
"returnMethodGranted": "SHIP_TO_WAREHOUSE",
"statusLog": {
"arrivedToWarehouseTime": 1420070400000,
"initiationTime": 1415287568000,
"initiationType": "CALL_CENTER",
"shippedByCustomerTime": 1420070400000
},
"updatedStatus": "ACCEPTED_BY_MERCHANT"
},
"totalGrantedAmount": {
"amountLocalCurrency": "105.55",
"amountUSD": "99.95",
"currency": "CAD"
}
}
})
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": {
"category": "Apparel and accessories",
"discount": {
"couponCodeUsed": "FATHERSDAY2015",
"couponDiscountAmount": {
"amountLocalCurrency": "105.55",
"amountUSD": "99.95",
"currency": "CAD"
}
},
"name": "White GenericBrand handbag",
"price": {
"amountLocalCurrency": "105.55",
"amountUSD": "99.95",
"currency": "CAD"
},
"productId": "Ag54352R7768kkO",
"quantity": 1,
"type": "TANGIBLE"
},
"itemCompensationData": {
"compensationTypeRequested": "REFUND",
"initiationTime": 1415287568000,
"internalReasonCategory": "defective item",
"reasonCategory": "CHANGED_MY_MIND",
"requestedReturnType": "SHIP_TO_WAREHOUSE"
}
}
],
"orderCompensationData": {
"compensationTypeRequested": "REFUND",
"initiationTime": 1415287568000,
"internalReasonCategory": "defective item",
"reasonCategory": "CHANGED_MY_MIND",
"requestedReturnType": "SHIP_TO_WAREHOUSE"
},
"totalRequestedAmount": {
"amountLocalCurrency": "105.55",
"amountUSD": "99.95",
"currency": "CAD"
}
},
"connectionInformation": {
"checkoutToolsSessionId": "HTGDVC232fdFDFdfkdjk87382938mcndjc2f4gbbGd",
"customerIP": "10.0.0.127",
"forterMobileUID": "6429751237891",
"forterTokenCookie": "249453te8tbf9355186fet0ken547b95_2786972955236__UDE52-n5_8dg",
"merchantDeviceIdentifier": "HGJ7512345H3",
"merchantProvidedSessionId": "HTGDVC232fdFDFdfkdjk87382938mcndjc2f4gbbGd",
"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,
"hasProofOfPurchase": True,
"isGuestAccount": False,
"merchantAgentData": {
"merchantAgentId": "HG36885TZ",
"merchantAgentName": "John Smith"
},
"merchantIdentifiers": {
"merchantDomain": "HandbagsExpressDiscounts.com",
"merchantName": "Handbags Express Discounts"
},
"originalOrderId": "2356fdse0rr489",
"status": {
"itemStatus": [
{
"basicItemData": {
"category": "Apparel and accessories",
"discount": {
"couponCodeUsed": "FATHERSDAY2015",
"couponDiscountAmount": {
"amountLocalCurrency": "105.55",
"amountUSD": "99.95",
"currency": "CAD"
}
},
"name": "White GenericBrand handbag",
"price": {
"amountLocalCurrency": "105.55",
"amountUSD": "99.95",
"currency": "CAD"
},
"productId": "Ag54352R7768kkO",
"quantity": 1,
"type": "TANGIBLE"
},
"statusData": {
"compensationTypeGranted": "REFUND",
"internalReasonCategory": "defective item",
"reasonCategory": "CHANGED_MY_MIND",
"returnCondition": "DAMAGED",
"returnMethodGranted": "SHIP_TO_WAREHOUSE",
"statusLog": {
"arrivedToWarehouseTime": 1420070400000,
"initiationTime": 1415287568000,
"initiationType": "CALL_CENTER",
"shippedByCustomerTime": 1420070400000
},
"updatedStatus": "ACCEPTED_BY_MERCHANT"
}
}
],
"merchantAgentData": {
"merchantAgentId": "HG36885TZ",
"merchantAgentName": "John Smith"
},
"replacementOrderId": "2356fdse0rr489",
"shippingRefundedAmount": {
"amountLocalCurrency": "105.55",
"amountUSD": "99.95",
"currency": "CAD"
},
"statusData": {
"compensationTypeGranted": "REFUND",
"internalReasonCategory": "defective item",
"reasonCategory": "CHANGED_MY_MIND",
"returnCondition": "DAMAGED",
"returnMethodGranted": "SHIP_TO_WAREHOUSE",
"statusLog": {
"arrivedToWarehouseTime": 1420070400000,
"initiationTime": 1415287568000,
"initiationType": "CALL_CENTER",
"shippedByCustomerTime": 1420070400000
},
"updatedStatus": "ACCEPTED_BY_MERCHANT"
},
"totalGrantedAmount": {
"amountLocalCurrency": "105.55",
"amountUSD": "99.95",
"currency": "CAD"
}
}
})
headers = {
'accept': 'application/json',
'content-type': 'application/json',
'api-version': '10.1',
'x-forter-siteid': '8b47c6d423ba',
'authorization': 'Basic <base64-encoded-api-key:>'
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)
200
// Example unifiedCompensationRequestResponse
{
"correlationId": "",
"decisionReason": "",
"forterDecision": "",
"merchantPolicyId": "",
"recommendations": [
""
],
"status": ""
}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)
顧客が開始した補償要求(返金や再発送など)に関する情報を送信し、詐欺または悪用に関する決定を受け取ります。 要求は注文レベルまたはアイテムレベルで行うことができます。返答には、あなたの悪用防止ポリシーに基づく推奨事項も含まれる場合があります。