Creates a new refund record.
- Update a refund by ID
Final POS API (1.2.4)
Welcome to the Final POS Public API—your playground for crafting the checkout and kiosk flows you want. Create your API keys in Manage (Settings > API Keys) and send them as x-api-key on every request. Customer endpoints use dynamic DTO generation so they adapt to your custom tables in real time, while the rest of the controllers follow a stable, static contract for predictable integrations.
Line items included in the refund.
Taxes applied to the line item.
Discount applied to the line item.
Product ID of the line item.
Variant ID of the line item.
Summary of the refund amounts.
List of taxes applied to the refund.
Payment details for the refund.
- Mock serverhttps://docs.finalpos.com/_mock/openapi/v1/api/refunds
- Official APIhttps://api.finalpos.com/v1/api/refunds
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://docs.finalpos.com/_mock/openapi/v1/api/refunds \
-H 'Content-Type: application/json' \
-H 'x-api-key: YOUR_API_KEY_HERE' \
-d '{
"orderId": "507f1f77bcf86cd799439011",
"sessionId": "507f1f77bcf86cd799439012",
"externalId": "ext_refund_123",
"currency": "USD",
"lineItems": [
{
"name": "Sweet Tea",
"quantity": 1,
"price": "5.00",
"total": "5.00",
"productId": "507f1f77bcf86cd799439011",
"variantId": "507f1f77bcf86cd799439012"
}
],
"reason": "Customer requested refund",
"refundedBy": "507f1f77bcf86cd799439013",
"refundedByExternalId": "ext_user_123",
"summary": {
"total": "100.00",
"subTotal": "90.00",
"totalTaxes": "10.00"
},
"payment": [
{
"paymentType": "credit_card",
"amount": "100.00",
"transactionId": "txn_123"
}
],
"balance": "0.00"
}'The refund has been successfully created.
Timestamp when the Refunds was created.
Timestamp when the Refunds was last updated.
Line items included in the refund.
Summary of the refund amounts.
Payment details for the refund.
{ "id": "o1p2q3r4s5t6u7v8w9x0y1z2", "createdAt": "2025-12-07T19:31:48.436+00:00", "updatedAt": "2025-12-07T19:35:48.436+00:00", "companyId": "o1p2q3r4s5t6u7v8w9x0y1z2", "orderId": "507f1f77bcf86cd799439011", "sessionId": "507f1f77bcf86cd799439012", "externalId": "ext_refund_123", "currency": "USD", "fromFinal": false, "lineItems": [ { … } ], "reason": "Customer requested refund", "refundedBy": "507f1f77bcf86cd799439013", "refundedByExternalId": "ext_user_123", "summary": { "total": "100.00", "subTotal": "90.00", "totalTaxes": "10.00" }, "payment": [ { … } ], "balance": "0.00" }
- Mock serverhttps://docs.finalpos.com/_mock/openapi/v1/api/refunds/{id}
- Official APIhttps://api.finalpos.com/v1/api/refunds/{id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://docs.finalpos.com/_mock/openapi/v1/api/refunds/{id}' \
-H 'x-api-key: YOUR_API_KEY_HERE'The refund has been successfully retrieved.
Timestamp when the Refunds was created.
Timestamp when the Refunds was last updated.
Line items included in the refund.
Summary of the refund amounts.
Payment details for the refund.
{ "id": "o1p2q3r4s5t6u7v8w9x0y1z2", "createdAt": "2025-12-07T19:31:48.436+00:00", "updatedAt": "2025-12-07T19:35:48.436+00:00", "companyId": "o1p2q3r4s5t6u7v8w9x0y1z2", "orderId": "507f1f77bcf86cd799439011", "sessionId": "507f1f77bcf86cd799439012", "externalId": "ext_refund_123", "currency": "USD", "fromFinal": false, "lineItems": [ { … } ], "reason": "Customer requested refund", "refundedBy": "507f1f77bcf86cd799439013", "refundedByExternalId": "ext_user_123", "summary": { "total": "100.00", "subTotal": "90.00", "totalTaxes": "10.00" }, "payment": [ { … } ], "balance": "0.00" }
Line items included in the refund.
Summary of the refund amounts.
Payment details for the refund.
- Mock serverhttps://docs.finalpos.com/_mock/openapi/v1/api/refunds/{id}
- Official APIhttps://api.finalpos.com/v1/api/refunds/{id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PUT \
'https://docs.finalpos.com/_mock/openapi/v1/api/refunds/{id}' \
-H 'Content-Type: application/json' \
-H 'x-api-key: YOUR_API_KEY_HERE' \
-d '{
"orderId": "507f1f77bcf86cd799439011",
"sessionId": "507f1f77bcf86cd799439012",
"externalId": "ext_refund_123",
"currency": "USD",
"lineItems": [
{
"name": "Sweet Tea",
"quantity": 1,
"price": "5.00",
"total": "5.00",
"productId": "507f1f77bcf86cd799439011",
"variantId": "507f1f77bcf86cd799439012"
}
],
"reason": "Customer requested refund",
"refundedBy": "507f1f77bcf86cd799439013",
"refundedByExternalId": "ext_user_123",
"summary": {
"total": "100.00",
"subTotal": "90.00",
"totalTaxes": "10.00"
},
"payment": [
{
"paymentType": "credit_card",
"amount": "100.00",
"transactionId": "txn_123"
}
],
"balance": "0.00"
}'The refund has been successfully updated.
Timestamp when the Refunds was created.
Timestamp when the Refunds was last updated.
Line items included in the refund.
Summary of the refund amounts.
Payment details for the refund.
{ "id": "o1p2q3r4s5t6u7v8w9x0y1z2", "createdAt": "2025-12-07T19:31:48.436+00:00", "updatedAt": "2025-12-07T19:35:48.436+00:00", "companyId": "o1p2q3r4s5t6u7v8w9x0y1z2", "orderId": "507f1f77bcf86cd799439011", "sessionId": "507f1f77bcf86cd799439012", "externalId": "ext_refund_123", "currency": "USD", "fromFinal": false, "lineItems": [ { … } ], "reason": "Customer requested refund", "refundedBy": "507f1f77bcf86cd799439013", "refundedByExternalId": "ext_user_123", "summary": { "total": "100.00", "subTotal": "90.00", "totalTaxes": "10.00" }, "payment": [ { … } ], "balance": "0.00" }
- Mock serverhttps://docs.finalpos.com/_mock/openapi/v1/api/refunds/{id}
- Official APIhttps://api.finalpos.com/v1/api/refunds/{id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X DELETE \
'https://docs.finalpos.com/_mock/openapi/v1/api/refunds/{id}' \
-H 'x-api-key: YOUR_API_KEY_HERE'{ "statusCode": 200, "message": "Resource with Id 123 deleted successfully" }