Get Refund

🔒

Requires read_finance access scope.

The Get Refund API retrieves the details of a specific refund order using its unique identifier.

This API is especially useful for:

  1. Fetching the details of a specific refund order.
  2. Tracking the refund's status and processing timeline.
  3. Verifying the associated transaction and refund amounts.

Request Parameters

Public Request Parameters

📘

Public Request Parameters

Path Parameters

FieldTypeRequiredExampleDescription
idstringYes123456Unique identifier of the refund order.

Response Explanation

Public Response Parameters

📘

Public Response Parameters

Successful Response

FieldTypeExampleDescription
codestring"Success"Status code for the request.
messagestring"Request successful"Additional message about the response.
dataobjectContains the refund order details.
data.refund_orderobjectRefund order details.
data.refund_order.idstring"123456"Unique identifier for the refund order.
data.refund_order.store_idstring"store123"Store ID associated with the refund.
data.refund_order.transaction_order_idstring"trans123"ID of the transaction order associated with the refund.
data.refund_order.statusstring"succeeded"Status of the refund:
succeeded: Refund successfully processed.
failed: Refund failed.
processing: Refund is pending processing.
data.refund_order.amountstring"50.00"Refund amount.
data.refund_order.balance_currencystring"USD"Currency used for the refund balance.
data.refund_order.original_order_amountstring"100.00"Original order amount prior to the refund.
data.refund_order.created_atstring"2024-04-28T06:50:19Z"Refund creation timestamp (ISO-8601 format).
data.refund_order.completed_atstring"2024-04-28T06:52:36Z"Timestamp indicating when the refund was completed (ISO-8601 format).

Error Response

Error responses in the API can be represented using two different fields: errors and error. Both fields provide details about issues encountered during request processing. Below is an explanation of the fields with their respective examples and descriptions.

FieldTypeDescriptionExample
codestringThe error code indicating the type of issue.UnknownError
messagestringA detailed message describing the error.wrong cursor
FieldTypeExampleDescription
errorString "store is not active"Indicates an error encountered during the process

Error Detail

Status CodeMessagePossible ReasonExample Response
400Bad RequestInvalid input format or request structure (e.g., missing required fields or incorrect data types).Bad Request
UnauthorizedThe request is missing valid authentication credentials or the credentials provided are invalid.Unauthorized
500UnknownErrorcursor is not invalid or empty.Unknown error, please contact shoplazza technical support to resolve the issue.

API Structure Overview

Language
Credentials
Header
URL
Click Try It! to start a request and see the response here!