Refunding an order
Last updated
Was this helpful?
Was this helpful?
{
"amount": 23,
"items": [
{
"LineItemReference": "my_product_1",
"Quantity": 1
}
],
"comment": "requested by shopper",
"reason": "CUSTOM_REASON"
}{
"jsonrpc":"2.0",
"method":"issueRefund",
"params":[
"om7sb5uob2p2g9r321iif2v3hd7p5gkn", //session id
"11370513", //orderRef
"25.39", //amount
{
"Quantity":1, //quantity of product refunded
"Amount":25.39 //amount of product refunded
},
"This is a comment", //comment
"Duplicate purchase" //reason
],
"id":2
}$refundedOrder = $client->issueRefund($sessionID, $orderReference, $amount, $items, $comment, $reason);