If an order requires appeasement for any reason, that progress should begin with the Create Order Appeasement. This will allow the merchant to confirm details about who is responsible for the appeasement, how much credit they will pay, and other important information.
The .json address above can be used to access the schema within Postman. An example use of the Order Appeasement API follows below, or view the schema or the sample Postman Collection.
The example case creates an API call for an appeasement that has the following properties:
- $2 refund paid by Manufacturer
- From merchant’s catalog 0
- User ID 123456
This guide will demonstrate how to put together each section of the request to build this appeasement.
The minimum required parameters are those that apply to the refund that will be awarded, specifically the person who will be paying it and the amount the customer will receive:
|creditPayee||enum||The entity who will pay for the credit (KIBO, SHOPATRON, MANUFACTURER, or RETAILER).|
|creditAmount||number||The amount to be credited.|
|creditDescription||string||The reason for the credit.|
|rectifyOrder||boolean||Should the order be rectified? The default is “TRUE” so that even if this is not provided in the request, the parameter will be automatically set to the suggested best practice of rectification.|
Other possible parameters can be provided to specify other details about the appeasement. These variables are:
|orderAppeasementID||integer||A unique identifier for the appeasement. This ID is set by OMS when created in the system, so it is best to treat it as read-only and not try to set this parameter. The minimum value is “1”.|
|orderID||integer||A unique identifier for the order. The minimum value is “1”. This ID is set by OMS when created in the system, so it is best to treat it as read-only and not try to set this parameter.|
|externalOrderID||string||A client-generated unique identifier for the order. This is also a read-only parameter utilized by OMS internally.|
|creditCreationTimestamp||string||The creation time of the credit. Supports date-time format.|
|manufacturerID||integer||A unique identifier for a manufacturer. This is also a read-only parameter utilized by OMS internally.|
|catalogID||integer||The catalog number for the manufacturer. This is also a read-only parameter utilized by OMS internally.|
|retailerID||integer||A unique identifier for a retailer. The minimum value is “0”.|
|emailConsumer||boolean||Indicates whether the consumer should be emailed when the credit is created.|
|userID||integer||A unique identifier for a user. The minimum value is “0”.|
|needToRectify||boolean||Whether rectification is appropriate for the order. This is a ready-only parameter, so do not attempt to set it – use rectifyOrder instead.|
|rectifyAmount||number|| The amount to charge or refund for the order to be financially settled .|
The Full Request
This is the entire request that will create an appeasement. It is clearly lists the example’s key characteristics, with additional parameters defined where necessary.
This example is a simple refund that is not tied to a particular order, but it may be a good idea to specify an Order ID or External Order ID. Later, this will allow the appeasement to be searched for by its associated order.
"creditDescription": "No Inventory",
The returned response follows the same structure as the Get Appeasement API, providing information about the appeasement that was created.