v1
latestOpenAPI 3.0.0Forter License2026-07-1333204516.7 KBCompensation
Compensation request
Send information about a customer-initiated request for compensation, such as a refund or a reship, in order to receive a fraud or abuse decision. The request can be made on an order level or at the item level. The response may also include recommendations based on your abuse prevention policies.
post/v2/unified-compensation-request/{id}
Path parameters
idstring required
Headers
api-versionstring required
Example:10.1
Specify the version of the API to target.
x-forter-siteidstring required
Example:a1b2c3d4e5f6
Forter-assigned ID for your account. Note that your Site ID for your test site is different from your production site.
Authorizationstring required
Example:Basic <base64-encoded-api-key:>
Basic Authentiation in the form of a username and password. Use the API Key as the username and leave the password empty.
Request body
Example request
{
"accountId": "e520-ba9a-367-60b",
"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,
"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
Example unifiedCompensationRequestResponse
Example response
{
"correlationId": "HGJ7512345H3DE",
"forterDecision": "approve",
"merchantPolicyId": "0ee8ba28a8654c659addbae9253b707c",
"recommendations": [],
"status": "success"
}