refundRequestReturn
refundRequestReturn is used as part of the standard refunds workflow to mark the goods as having been returned.
2 minute read
Key Information
Use-Case
When operating the standard refund workflow, you need to mark the refund requests as having been returned. This is true with both post-dispatch (return) and pre-dispatch (cancellation) use-cases.
Further Points of Note
- The cancellation workflow (products have not yet been dispatched) still requires the use of this mutation, for more information on the supported workflows, refer to this article.
Availability
- Operator API: Yes
- Seller API: Yes - scoped to seller owned refund request
Example
mutation markRefundRequestItemAsReturned{
refundRequestReturn(
input: {
refundRequestId: "UmVmdW5kUmVxdWVzdC01Mjk="
notes: [{ note: "refundRequestReturn via API" }]
}
) {
refundRequest {
id
status
}
errors {
field
messages
}
}
}
Arguments
Name | Type |
---|---|
input | RefundRequestReturnMutationInput |
Response
Returns RefundRequestReturnMutationPayload
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 an awaiting RefundRequest as returned | You have attempted to mark a refund request as returned, when it was not in the AWAITING state |