Skip to main content
POST
Preview the points a refund returns

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

Order ID

Body

application/json
type
enum<string>
required

The refund type of the selection. Use items with order_items for an item refund.

Available options:
all,
tax,
shipping,
product_price,
cv,
qv,
partial,
items
amount
number

The cash amount of an all, partial or product_price refund.

tax
number

The tax amount of a tax refund, or of an all refund that also refunds tax.

shipping
number

The shipping amount of a shipping refund, or of an all refund that also refunds shipping.

order_items
object[]

The units of each order line an item refund takes.

Response

Success

points_to_return
integer
required

The redeemed points the refund would return. Zero when it returns none.

Required range: x >= 0
meta
object
required