curl --request POST \
--url https://prod01.oms.fabric.inc/api/v2/order/appeasement \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'x-site-context: <x-site-context>' \
--data '{
"orderNumber": "123",
"appeasementType": "refund",
"customer": {
"name": {
"first": "John",
"middle": "Middle",
"last": "Doe"
},
"email": "john@fabric.inc",
"phone": {
"number": "55555555555",
"type": "MOBILE"
},
"userId": "62272e917b12209e68751d94",
"accountId": "62272e917b12209e68751d94",
"employeeId": "62272e917b12209e68751d94",
"company": "fabric"
},
"userID": "12",
"source": "SFSC",
"appeasements": [
{
"appeasementCounter": 1,
"reasonCode": "Late Delivery",
"subReasonCode": "subReasonCode",
"value": 12.5,
"notes": "Any additional info",
"payments": [
{
"paymentCounter": 1,
"refundAmount": 40
}
]
}
],
"items": [
{
"lineItemId": "d538b1f1-0e45-43c6-bfc6-9666fc1188ca",
"appeasements": [
{
"appeasementCounter": 1,
"reasonCode": "Late Delivery",
"subReasonCode": "subReasonCode",
"value": 12.5,
"notes": "Any additional info",
"payments": [
{
"paymentCounter": 1,
"refundAmount": 40
}
]
}
]
}
]
}'
{
"responseCode": "SUCCESS",
"responseMessage": "API Operation successfully completed",
"responseData": {
"orderNumber": "12",
"totalAmountRefunded": 25.5,
"channel": "12",
"tenant": "5f689caa4216e7000750d1ef"
}
}
Creates an appeasement for customer order.
curl --request POST \
--url https://prod01.oms.fabric.inc/api/v2/order/appeasement \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'x-site-context: <x-site-context>' \
--data '{
"orderNumber": "123",
"appeasementType": "refund",
"customer": {
"name": {
"first": "John",
"middle": "Middle",
"last": "Doe"
},
"email": "john@fabric.inc",
"phone": {
"number": "55555555555",
"type": "MOBILE"
},
"userId": "62272e917b12209e68751d94",
"accountId": "62272e917b12209e68751d94",
"employeeId": "62272e917b12209e68751d94",
"company": "fabric"
},
"userID": "12",
"source": "SFSC",
"appeasements": [
{
"appeasementCounter": 1,
"reasonCode": "Late Delivery",
"subReasonCode": "subReasonCode",
"value": 12.5,
"notes": "Any additional info",
"payments": [
{
"paymentCounter": 1,
"refundAmount": 40
}
]
}
],
"items": [
{
"lineItemId": "d538b1f1-0e45-43c6-bfc6-9666fc1188ca",
"appeasements": [
{
"appeasementCounter": 1,
"reasonCode": "Late Delivery",
"subReasonCode": "subReasonCode",
"value": 12.5,
"notes": "Any additional info",
"payments": [
{
"paymentCounter": 1,
"refundAmount": 40
}
]
}
]
}
]
}'
{
"responseCode": "SUCCESS",
"responseMessage": "API Operation successfully completed",
"responseData": {
"orderNumber": "12",
"totalAmountRefunded": 25.5,
"channel": "12",
"tenant": "5f689caa4216e7000750d1ef"
}
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
The x-site-context
header is a JSON object that contains information about the source you wish to pull from. The mandatory account
is the 24 character identifier found in Copilot. The channel
(Sales channel ID), stage
(environment name), and date
attributes can be used to further narrow the scope of your data source.
"{\"date\": \"2023-01-01T00:00:00.000Z\", \"channel\": 12, \"account\": \"1234abcd5678efgh9ijklmno\",\"stage\":\"production\"}"
Appeasement request details
Appeasement Completed
ServiceResponse Model