question

e-cosmetorium avatar image
0 Likes"
e-cosmetorium asked

Cannot issue_refund for case based on order with ebay managed payments

Hi

I'm using Case Management API to get my cases and issue refund when relevant.

Recently I have found out that for some cases returned by /post-order/v2/casemanagement/search i cannot issue refund. I think a common thing for those orders is payment method - ebay managed payment.


E.g

POST https://api.ebay.com/post-order/v2/casemanagement/5273578267/issue_refund

{
  "comments": {
    "content": null,
    "language": "en",
    "translatedFromContent": null,
    "translatedFromLanguage": null
   }
}


I get HTTP 400 error

{
 "error": [
  {
    "errorId": 292018,
    "domain": "resolutionsErrorDomain",
    "severity": "ERROR",
    "category": "REQUEST",
    "message": "Request is in invalid state.",
    "parameter": [],
    "errorName": "IllegalState",
    "organization": "Marketplace",
    "inputRefIds": []
  }
 ]
}


What is 292018 errorId? I haven't found a hint.

How to issue refund for such an order?


Note: now case is in state "waiting for return" but I get the same errors even if case open (this case of other cases)


Mirek

bugcase apicasemanagement
10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

sagar_developersupport avatar image
0 Likes"
sagar_developersupport answered

Hi @e-cosmetorium,

Please use issueRefund call of Fulfillment API instead. This call allows a seller (opted in to eBay Managed Payments) to issue a full or partial refund to a buyer for an order. Full or partial refunds can be issued at the order level or line item level.

Ref: https://developer.ebay.com/api-docs/sell/fulfillment/resources/order/methods/issueRefund

Best Regards,
eBay Developer Support

10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

e-cosmetorium avatar image
0 Likes"
e-cosmetorium answered

Thank you for a reply.

It seems that in https://developer.ebay.com/api-docs/sell/fulfillment/resources/order/methods/issueRefund does not have a field to pass disputeId (or caseId). Do you know how to do this? Is it needed to pass dispute-id/case-id in order to close dispute/case automatically?

Mirek

10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

sagar_developersupport avatar image
0 Likes"
sagar_developersupport answered

Hi @e-cosmetorium,

You need to use the orderID as the input for executing the issueRefund call. You can execute the getOrders call and refer to paymentSummary.refunds.refundStatus field to see the current status of the refund to the buyer.
Ref: https://developer.ebay.com/api-docs/sell/fulfillment/resources/order/methods/getOrder#response.paymentSummary.refunds.refundStatus

Best Regards,
eBay Developer Support

10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

e-cosmetorium avatar image
0 Likes"
e-cosmetorium answered

Hi

It seems that I cannot call order/{...}/issueRefund when case is active. I'm getting this error:

{"errors":[{"errorId":34916,"domain":"API_FULFILLMENT","category":"BUSINESS","message":"A post-transaction case exists on this order, seller refund can’t be triggered."}]}

OrderID: 19-07212-60952


Best regards

10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.