orderRemoveRefundMethod Mutation
Description
Removes a refund method from an order. You can specify either the refund method reference ID or the refund method origin. If both are provided, the reference ID takes precedence.
mutation orderRemoveRefundMethod(
$orderRef: ID!
$orderPaymentMethodRef: ID
$orderPaymentMethodOrigin: String
) {
orderRemoveRefundMethod(
orderRef: $orderRef
orderPaymentMethodRef: $orderPaymentMethodRef
orderPaymentMethodOrigin: $orderPaymentMethodOrigin
) {
_id
id
incId
origin
created
modified
shipping {
status
fulfilled
date
method
freeShippingThreshold
tracking
shopCollection
weight
packingSlip
}
billing {
status
fulfilled
paymentDate
refundDate
}
orderId
notes {
date
content
}
instructions
totals {
subtotal
subtotalBeforeTaxes
tax
grand
leftToPay
itemQuantity
discount
shipping
creditNote
balance
}
items {
_id
quantity
unavailable
added
}
messages {
_id
created
subject
message
fromBuyer
flagged
content
read
orderId
orderIncId
uri
via
}
buyer {
_id
firstName
lastName
email
name
path
telephone
organisation
taxNumber
}
logs {
action
description
date
ip
}
seller {
type
name
email
ref
}
updated
status
discogsStatus
buyerWasContacted
unreadMessagesCount
mergeableOrders {
_id
id
created
total
description
}
path
}
}
Variables
{
"orderRef": "f96fe933a09ab99b2f047f20",
"orderPaymentMethodRef": "f520b36b12d450a773736f25",
"orderPaymentMethodOrigin": "orderPaymentMethodOrigin"
}
Response
{
"orderRemoveRefundMethod": {
"_id": "0533958cc1b0bf5af9c6037c",
"id": "example",
"incId": 42,
"origin": "example",
"created": 1721457266921,
"modified": 1722602211487,
"shipping": {
"status": "Pending",
"fulfilled": true,
"date": 1714350365893,
"method": "example",
"freeShippingThreshold": 1.23,
"tracking": "example",
"shopCollection": true,
"weight": 1.23,
"packingSlip": "example"
},
"billing": {
"status": "example",
"fulfilled": true,
"paymentDate": 1739766393184,
"refundDate": 1724312363587
},
"orderId": "example",
"notes": [
{
"date": 1710504942146,
"content": "example"
}
],
"instructions": "example",
"totals": {
"subtotal": 1.23,
"subtotalBeforeTaxes": 1.23,
"tax": 1.23,
"grand": 1.23,
"leftToPay": 1.23,
"itemQuantity": 1.23,
"discount": 0.1,
"shipping": 1.23,
"creditNote": 1.23,
"balance": 1.23
},
"items": [
{
"_id": "9a5f1c87025e1990e0c5d4ab",
"quantity": 1,
"unavailable": true,
"added": 1754206263204
}
],
"messages": [
{
"_id": "062db8d3862fab7096176fb8",
"created": 1709196724618,
"subject": "example",
"message": "example",
"fromBuyer": true,
"flagged": true,
"content": "example",
"read": true,
"orderId": "example",
"orderIncId": 42,
"uri": "https://www.my-common-ground-store.com/release/1763553751/release-artist-release-name",
"via": "example"
}
],
"buyer": {
"_id": "aaf5a33e08bc8b0b62024654",
"firstName": "example",
"lastName": "example",
"email": "email@example.com",
"name": "example",
"path": "/release/1763553751/release-artist-release-name",
"telephone": "example",
"organisation": "example",
"taxNumber": "example"
},
"logs": [
{
"action": "example",
"description": "example",
"date": 1722549041706,
"ip": "example"
}
],
"seller": {
"type": "example",
"name": "example",
"email": "email@example.com",
"ref": "164df1b2a8745ee2602b2619"
},
"updated": 1748816189596,
"status": "example",
"discogsStatus": "example",
"buyerWasContacted": true,
"unreadMessagesCount": 42,
"mergeableOrders": [
{
"_id": "474664daa9ae80ae1b88332f",
"id": "example",
"created": 1738548585963,
"total": 29.99,
"description": "example"
}
],
"path": "/release/1763553751/release-artist-release-name"
}
}
Arguments
| Name | Type | Description |
|---|---|---|
orderRef | ID! | Reference ID of the order to remove a refund method from. |
orderPaymentMethodRef | ID | Reference ID of the specific refund method to remove. If provided, this takes precedence over orderPaymentMethodOrigin. |
orderPaymentMethodOrigin | String | Origin of the refund method to remove (e.g., "cash", "card", "stripe"). Used if orderPaymentMethodRef is not provided. |