Order Items

Preview the refund of an order item cancellation

Changed on

What cancelling the item would refund and how it would split between card and team credits, with the last four digits of the card. Writes nothing.

get/admin/order-items/{order_item_id}/refund-quote

Request

  • Base URL: https://api.presscart.com (the document declares no server; this is the origin it was published from)
  • URL: https://api.presscart.com/admin/order-items/{order_item_id}/refund-quote
  • Auth: HTTP bearer

Path parameters

order_item_idstring uuid required
Example:478b54fd-2fd7-4418-8711-f5adc05990e0

Query parameters

refund_method'CARD' | 'CREDITS'

Where the refund would go; credits when left out.

Example:CARD

Response

The refund the cancellation would make

amountnumber required

What the cancellation refunds, in dollars

cardnumber required

The part that would go back to card, in dollars

creditsnumber required

The part that would go to team credits, in dollars

card_last4string nullable required

The last four digits of the card, when part of the refund goes back to one

Example response

{
  "amount": 500,
  "card": 300,
  "credits": 200,
  "card_last4": "4242"
}

Changes