Square Connect API Refund Clarification -
if merchant issues refund, show in both refunds list , retrieve payment endpoint? there situations in may show in one, not other (such cash, check, or other tender types)?
the use case external app storing / caching payments refunds need update stored payments keep accurate sales figures. if refunds show in both places, seems best way update stored payments in use case load refunds list periodically , update stored payment using retrieve payment endpoint.
regardless of tender type, every refund available both list refunds endpoint , list/retrieve payment endpoints. solution sounds one, since list refunds endpoint chronological date of refund, opposed date of original payment.
you can use payment_id
included in returned refund
objects stored copy of corresponding payment.
Comments
Post a Comment