Question & Answer
Question
Refund configuration and Invoice details design with respect to Refund Fulfillment Orders.
Answer
For a payment method, if the refund configuration is set to create a Refund Fulfillment Order, when the Return Order is refunded, a new Refund Fulfillment Order (a type of Sales Order) is created for the configured Item. Here, the refund does not get settled against any payment method. Rather, there is a transfer of amount to a Refund Fulfillment Order from the Return Order. The Refund Fulfillment Order has an attribute OrderPurpose="REFUND" which would differentiate this order from a normal Sales Order.
A TransferIn record
is created in the YFS_Charge_Transaction table for the Refund Fulfillment Order
and a TransferOut record is created in the same table for the Sales Order (for
the Return Order in case of blind return). The Invoice detail of the Return
Order has a TransferOut for the return amount (funds are transferred to the
Refund Fulfillment Order). The Invoice detail of the Refund Fulfillment Order
has a TransferIn for the same amount. When a Refund Fulfillment Order is
invoiced and collected, this refund amount on the Refund Fulfillment Order
invoice will be linked to the TransferIn from the Return Order.
The XML published in the 'PUBLISH_INVOICE_DETAIL' event of the 'Send Invoice'
Transaction will have a ChargeType=”TransferOut” under the
<CollectionDetails> element. The Payment Method details are not populated with
the collection details since the refund is not against any payment method, but
rather, a fund transfer occurs between the orders.
However, when the payment method configuration refunds to the same Payment method, the return amount is refunded to the payment method on the Sales Order. In case of a blind return, the refund is against the payment method on the Return Order. The XML published in the 'PUBLISH_INVOICE_DETAIL' event will have ChargeType=”Charge” with a negative charge amount and an associated payment method under the <CollectionDetails> element.
Historical Number
FAQ3630
Was this topic helpful?
Document Information
Modified date:
16 June 2018
UID
swg21519319