Use this API to approve a buyer’s return request. The exact effect depends on the return type and return status. Before calling this API, make sure the return is still awaiting a seller action that matches the decision you are sending.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”The unique identifier of the return request to be approved by the seller.
Query Parameters
Section titled “Query Parameters”Identifies the shop. Obtain it from the Get Authorized Shops API.
A unique value generated by the client that the server uses to recognize repeated requests. Reuse the same key when retrying the same request. If omitted, the server generates a key for that call. You may use a UUID or another random string with enough entropy to avoid collisions. Maximum length: 255 characters.
Request Bodyrequired
Section titled “Request Bodyrequired”object
Seller’s decision for the return request, available values:
APPROVE_REFUND: seller approve a refund-only requestAPPROVE_RETURN: seller approve the initial return-and-refund requestAPPROVE_RECEIVED_PACKAGE: seller approve return-and-refund request after the buyer has already shipped or handed over the item.APPROVE_REPLACEMENT: seller approve replacement requestISSUE_REPLACEMENT_REFUND: seller decline the replacement request and directly refund the buyer instead.OFFER_PARTIAL_REFUND: seller offers a partial refund amount to the buyer without requiring the item(s) to be returned.DIRECT_REFUND: seller issues a returnless refund, meaning the buyer receives a full refund and keeps the item
Optional. Use this field only when decision is set to APPROVE_RETURN. If set to true, the seller issues a returnless refund, which means the buyer receives a full refund and keeps the item. If set to false or omitted, the seller approves the return-and-refund flow and the buyer returns the item.
Required when decision is set to OFFER_PARTIAL_REFUND. When partial_refund is provided, both amount and currency are required. Omit this field for all other decisions.
object
Refund currency must match the currency of the current return request.
The partial refund amount seller would like to offer to the buyer
Example
{ "decision": "APPROVE_REFUND", "buyer_keep_item": true, "partial_refund": { "currency": "IDR", "amount": "10" }}Responses
Section titled “Responses”Success
object
Status code; 0 means success.
Success or failure message.
Request log ID.
object
Example
{ "code": 0, "data": {}, "message": "Success", "request_id": "202203070749000101890810281E8C70B7"}