phpamazon-mws

Amazon MWS Orders API - Check if Order was refunded


Here's the sample response I got from calling /Orders with Action=GetOrder.

+"Order": array:100 [▼
    0 => SimpleXMLElement {#491 ▼
      +"LatestShipDate": "1970-01-01T00:00:00Z"
      +"OrderType": "StandardOrder"
      +"PurchaseDate": "2017-01-17T01:44:52Z"
      +"AmazonOrderId": "701-#######-#######"
      +"IsReplacementOrder": "false"
      +"LastUpdateDate": "2017-01-17T01:46:09Z"
      +"NumberOfItemsShipped": "0"
      +"ShipServiceLevel": "Expedited"
      +"OrderStatus": "Canceled"
      +"SalesChannel": "Amazon.ca"
      +"IsBusinessOrder": "false"
      +"NumberOfItemsUnshipped": "0"
      +"IsPremiumOrder": "false"
      +"EarliestShipDate": "1970-01-01T00:00:00Z"
      +"MarketplaceId": "### ###"
      +"FulfillmentChannel": "AFN"
      +"PaymentMethod": "Other"
      +"IsPrime": "false"
      +"ShipmentServiceLevelCategory": "Expedited"
      +"SellerOrderId": "#### #### #"
    }

Is there a way to check if Order was refunded by specifying the OrderID?


Solution

  • Not sure if this is what you're looking for. But, the way I'd do this is via the Finance API section. ListFinancialEvents operation returns FinancialEvents object. That should return all refund events on an order, if any.