About Refund ​
Access scope
Multiple access scopes needed — refer to each endpoint for access scope requirements.
Refund Management is a crucial component of the Genstore trading system, offering standardized refund processing workflows and management capabilities. Through standardized refund handling mechanisms, it helps merchants efficiently process various refund scenarios and improve after-sales service quality.
Core Features
- Create Refund: Create refund request, specify refund amount, set refund reason and method.
- Manage Refund Status: Update refund status, track refund progress.
- Query Refund Information: Get refund details, list refund orders, query order-related refunds.
Use Cases
- After-sales Refund Processing: Customer service teams can quickly respond to refund applications, track refund progress, and maintain refund records to ensure efficient after-sales service experience.
- Refund Risk Management: Risk control teams can review abnormal refunds, monitor refund trends, and identify fraud risks to ensure transaction security.
- Financial Reconciliation: Finance teams can analyze refund data, verify refund details, and generate reconciliation reports to achieve accurate financial management.
- Business Analysis: Operations teams can analyze refund reasons, evaluate service quality, and optimize product strategies to improve operational efficiency.
Endpoints
POST
/api/202412/refunds: Create after-sales record
PUT
/api/202412/refunds/{refundId}: Review after-sales status
GET
/api/202412/orders/{orderId}/refunds: Get order after-sales list
GET
/api/202412/refunds?orderId={orderId}&refundId={refundId}: Get after-sale detail
The Refund resource Object ​
The Refund resource
Properties ​
{
"refund": {
"lineItems": [
{
"totalTax": "0.00",
"lineItem": {
"productId": "123",
"variantId": "222"
},
"quantity": "",
"lineItemId": "",
"subtotal": "10.00"
}
],
"note": "Note",
"createTime": "2013-06-27T08:48:27-04:00",
"customerId": "1020000013594",
"updateTime": "2012-08-24T14:01:46-04:00",
"refundPrice": "10.00",
"refundId": "1000069823694",
"status": ""
}
}
POST
Create after-sales record ​
Create after-sales record
Access scope
Requires ANY of the following access scopes: write_refunds
Endpoint
POST
/api/202412/refunds
Request Params
Response Data
curl -X POST \
https://{shop}.genmystore.com/api/202412/refunds" \
-H "X-Genstore-Access-Token: {access_token}" \
-H "Content-Type: application/json" \
-d '{
"refund":{
"lineItems":[
{
"quantity":"12",
"lineItemId":"128323456"
}
],
"note":"Item was damaged during shipping",
"rightsType":"1",
"orderId":"",
"customerId":"238478920",
"requestNo":"asdfaddsadafd"
}
}'
HTTP/1.1 200 OK
{
"refund": {
"lineItems": [
{
"totalTax": "0.00",
"lineItem": {
"productId": "123",
"variantId": "222"
},
"quantity": "12",
"lineItemId": "128323456",
"subtotal": "1"
}
],
"note": "Item was damaged during shipping",
"rightsType": "1",
"createTime": "2008-01-10T11:00:00-05:00",
"orderId": "",
"customerId": "238478920",
"updateTime": "2008-01-10T11:00:00-05:00",
"refundId": "255858046",
"status": ""
}
}
PUT
Review after-sales status ​
Review after-sales status。
Access scope
Requires ANY of the following access scopes: write_refunds
Endpoint
PUT
/api/202412/refunds/{refundId}
Request Params
Response Data
curl -X PUT \
https://{shop}.genmystore.com/api/202412/refunds/{refundId}" \
-H "X-Genstore-Access-Token: {access_token}" \
-H "Content-Type: application/json" \
-d '{
"orderId":"39072856",
"action":"1",
"refundId":"255858046"
}'
HTTP/1.1 200 OK
{
"refund": {
"lineItems": [
{
"totalTax": "0.00",
"lineItem": {
"productId": "123",
"variantId": "222"
},
"quantity": "12",
"lineItemId": "128323456",
"subtotal": "1"
}
],
"note": "Item was damaged during shipping",
"rightsType": "1",
"createTime": "2008-01-10T11:00:00-05:00",
"customerId": "238478920",
"updateTime": "2008-01-10T11:00:00-05:00",
"refundId": "255858046",
"status": "1"
}
}
GET
Get order after-sales list ​
Inquire about after-sales information based on the order.
Access scope
Requires ANY of the following access scopes: read_refunds
Endpoint
GET
/api/202412/orders/{orderId}/refunds
Request Params
Response Data
curl -X GET \
https://{shop}.genmystore.com/api/202412/orders/{orderId}/refunds" \
-H "X-Genstore-Access-Token: {access_token}" \
HTTP/1.1 200 OK
{
"refunds": [
{
"lineItems": [
{
"totalTax": "0.00",
"lineItem": {
"productId": "123",
"variantId": "222"
},
"quantity": "12",
"lineItemId": "128323456",
"subtotal": "1"
}
],
"note": "Item was damaged during shipping",
"rightsType": "1",
"createTime": "2008-01-10T11:00:00-05:00",
"customerId": "238478920",
"updateTime": "2008-01-10T11:00:00-05:00",
"refundId": "255858046",
"status": ""
}
]
}
GET
Get after-sale detail ​
Get details of a specific after-sale record.
Access scope
Requires ANY of the following access scopes: read_refunds
Endpoint
GET
/api/202412/refunds?orderId={orderId}&refundId={refundId}
Request Params
Response Data
curl -X GET \
https://{shop}.genmystore.com/api/202412/refunds?orderId={orderId}&refundId={refundId}" \
-H "X-Genstore-Access-Token: {access_token}" \
HTTP/1.1 200 OK
{
"refund": {
"lineItems": [
{
"totalTax": "0.00",
"lineItem": {
"productId": "123",
"variantId": "222"
},
"quantity": "12",
"lineItemId": "128323456",
"subtotal": "1"
}
],
"note": "Item was damaged during shipping",
"rightsType": "1",
"createTime": "2008-01-10T11:00:00-05:00",
"customerId": "238478920",
"updateTime": "2008-01-10T11:00:00-05:00",
"refundId": "255858046",
"status": "1"
}
}
About Refund
Access scope
Multiple access scopes needed — refer to each endpoint for access scope requirements.
Refund Management is a crucial component of the Genstore trading system, offering standardized refund processing workflows and management capabilities. Through standardized refund handling mechanisms, it helps merchants efficiently process various refund scenarios and improve after-sales service quality.
Core Features
- Create Refund: Create refund request, specify refund amount, set refund reason and method.
- Manage Refund Status: Update refund status, track refund progress.
- Query Refund Information: Get refund details, list refund orders, query order-related refunds.
Use Cases
- After-sales Refund Processing: Customer service teams can quickly respond to refund applications, track refund progress, and maintain refund records to ensure efficient after-sales service experience.
- Refund Risk Management: Risk control teams can review abnormal refunds, monitor refund trends, and identify fraud risks to ensure transaction security.
- Financial Reconciliation: Finance teams can analyze refund data, verify refund details, and generate reconciliation reports to achieve accurate financial management.
- Business Analysis: Operations teams can analyze refund reasons, evaluate service quality, and optimize product strategies to improve operational efficiency.
The Refund resource Object
The Refund resource
Properties
POST
Create after-sales record
Create after-sales record
Access scope
Requires ANY of the following access scopes: write_refunds
Endpoint
POST
/api/202412/refunds
PUT
Review after-sales status
Review after-sales status。
Access scope
Requires ANY of the following access scopes: write_refunds
Endpoint
PUT
/api/202412/refunds/{refundId}
GET
Get order after-sales list
Inquire about after-sales information based on the order.
Access scope
Requires ANY of the following access scopes: read_refunds
Endpoint
GET
/api/202412/orders/{orderId}/refunds
GET
Get after-sale detail
Get details of a specific after-sale record.
Access scope
Requires ANY of the following access scopes: read_refunds
Endpoint
GET
/api/202412/refunds?orderId={orderId}&refundId={refundId}