refundRequestRefund
refundRequestRefund is used to approve the refund request
less than a minute
Key Information
Use-Case
Refund requests will either be approved or denied, in this case the refundRequestRefund
mutation is used to approve the refund.
Further Points of Note
- This mutation is only available to Operators
Availability
- Operator API: Yes
- Seller API: No
Example
mutation approveRefundRequest{
refundRequestRefund(
input: {
refundRequestId: "UmVmdW5kUmVxdWVzdC01Mjk="
cashAmountCents: 34999
notes: [{ note: "refundRequestRefund API call" }]
}
) {
refundRequest {
id
status
}
errors {
field
messages
}
}
}
Arguments
Name | Type |
---|---|
attributes | RefundRequestRefundMutationInput |
Response
Returns RefundRequestRefundMutationPayload
Error Responses
HTTP Error | Error Message | Meaning |
---|---|---|
401 | Unauthorized | You don’t have access to the endpoint, likely Basic Authentication credentials are missing |
401 | API Token has expired | You don’t have access to the endpoint, likely that you are either not supplying an API Key, or the key you are supplying is invalid |
200 | No object found for refundRequestId: <refundRequestId> | The ID of the supplied refund request does not exist |
200 | Can only mark a returned or processed RefundRequest as refunded | You have attempted to mark a refund request as refunded, when it was not in the RETURNED state |