Create refund
Use the AdjustStoreCredit mutation to adjust store credit.
The amount can be a negative value and must be specified in the store's default currency (usually SEK).
Request:
mutation AdjustStoreCredit {
adjustCustomerStoreCredit(input: {
customerId: 12345,
amount: 50.00,
reason: "Refund for order #67890",
orderId: 67890
}) {
amount
success
}
}
Response:
{
"data": {
"adjustCustomerStoreCredit": {
"amount": 150.00, // amount after adjustment
"success": true
}
}
}