we’ve been using the GraphQL API to create returns. At the moment our customers are going through customer service to register a return, for which they create the return manually and select the Label Type “Self Return”, which will create an RMA label for the customer.
I saw that this is also offered by the API (ReturnLabelType - GraphQL API), however, when I try setting label_type = SELF_RETURN the return gets registered but with the label type FREE and no label created at all.
I tried many different combinations, but was not able to recreate the same behavior as described above. Is this a known issue in the return_create mutation?
You should be able to create the return label through the API by sending create_label: true in the return_create mutation.
That said, we found a bug in the current flow where label_type: SELF_RETURN can be persisted back as FREE / Free Label instead of SELF_RETURN / Self Return. We’ve reported this to our Engineering team for review.
In the meantime, using create_label: true may still help you generate the RMA label, but the return may show the wrong label type until this is fixed.
that’s a relief, having confirmed that this is indeed a bug, since I literally tried every combination there is
Actually, I have set create_label: true , but it does not create the label, unfortunately and requires an active carrier (which we do not want in this case, since this is a self return)
Maybe you have another idea or you can see if this is as well an open issue.
I was indeed able to create a label (even if the return is saved as FREE instead of SELF_RETURN) with this payload. Check that the carrier and method is “genericlabel”.
mutation CreateReturnInput($data: CreateReturnInput!) {
return_create(data: $data) {
request_id
complexity
return {
id
line_items {
id
}
exchanges {
id
}
}
}
}
If it still doesn’t create a label for you please share an order id example and I’ll try myself. Also in the Profile section of this forum you can complete your ShipHero account id so is easier for me to reproduce your cases.