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": "4ad3700a78b78ebf31dbf78a",
"orderPaymentMethodRef": "d6055bba8fbfb0727c2099d7",
"orderPaymentMethodOrigin": "orderPaymentMethodOrigin"
}
Response
{
"orderRemoveRefundMethod": {
"_id": "fa9e029a894df54a31f6ed18",
"id": "example",
"incId": 42,
"origin": "example",
"created": 1738799964258,
"modified": 1717671232271,
"shipping": {
"status": "Pending",
"fulfilled": true,
"date": 1726604095861,
"method": "example",
"freeShippingThreshold": 1.23,
"tracking": "example",
"shopCollection": true,
"weight": 1.23,
"packingSlip": "example"
},
"billing": {
"status": "example",
"fulfilled": true,
"paymentDate": 1717205762613,
"refundDate": 1715909804920
},
"orderId": "example",
"notes": [
{
"date": 1725783782163,
"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": "7db84b65d1a8ba691d2b34dc",
"quantity": 1,
"unavailable": true,
"added": 1735377881934
}
],
"messages": [
{
"_id": "7da9da2a37a842346b0e859b",
"created": 1740736215035,
"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": "260c71ee2102c5cac70643f9",
"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": 1759755341960,
"ip": "example"
}
],
"seller": {
"type": "example",
"name": "example",
"email": "email@example.com",
"ref": "841da835003b7e69d299ff76"
},
"updated": 1777321598896,
"status": "example",
"discogsStatus": "example",
"buyerWasContacted": true,
"unreadMessagesCount": 42,
"mergeableOrders": [
{
"_id": "4f09c7651c3615885b64b65b",
"id": "example",
"created": 1756431275611,
"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. |