Refund order
Refund an order (full or selected line items) through Stripe Connect.
POST
/
v1
/
orders
/
{orderId}
/
refund
Refund order
curl --request POST \
--url https://api.quickshops.app/v1/orders/{orderId}/refund \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"lineItemIds": [
"<string>"
],
"restockInventory": true
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({lineItemIds: ['<string>'], restockInventory: true})
};
fetch('https://api.quickshops.app/v1/orders/{orderId}/refund', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.quickshops.app/v1/orders/{orderId}/refund"
payload = {
"lineItemIds": ["<string>"],
"restockInventory": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({lineItemIds: ['<string>'], restockInventory: true})
};
fetch('https://api.quickshops.app/v1/orders/{orderId}/refund', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": "<unknown>"
}{
"error": "<string>",
"code": "UNAUTHORIZED"
}{
"error": "<string>",
"code": "UNAUTHORIZED"
}{
"error": "<string>",
"code": "UNAUTHORIZED"
}{
"error": "<string>",
"code": "UNAUTHORIZED"
}{
"error": "<string>",
"code": "UNAUTHORIZED"
}{
"error": "<string>",
"code": "UNAUTHORIZED"
}{
"error": "<string>",
"code": "UNAUTHORIZED"
}{
"error": "<string>",
"code": "UNAUTHORIZED"
}Was this page helpful?
⌘I
Refund order
curl --request POST \
--url https://api.quickshops.app/v1/orders/{orderId}/refund \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"lineItemIds": [
"<string>"
],
"restockInventory": true
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({lineItemIds: ['<string>'], restockInventory: true})
};
fetch('https://api.quickshops.app/v1/orders/{orderId}/refund', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.quickshops.app/v1/orders/{orderId}/refund"
payload = {
"lineItemIds": ["<string>"],
"restockInventory": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({lineItemIds: ['<string>'], restockInventory: true})
};
fetch('https://api.quickshops.app/v1/orders/{orderId}/refund', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": "<unknown>"
}{
"error": "<string>",
"code": "UNAUTHORIZED"
}{
"error": "<string>",
"code": "UNAUTHORIZED"
}{
"error": "<string>",
"code": "UNAUTHORIZED"
}{
"error": "<string>",
"code": "UNAUTHORIZED"
}{
"error": "<string>",
"code": "UNAUTHORIZED"
}{
"error": "<string>",
"code": "UNAUTHORIZED"
}{
"error": "<string>",
"code": "UNAUTHORIZED"
}{
"error": "<string>",
"code": "UNAUTHORIZED"
}