Return reasons
A return reason records why the buyer says an item is coming back. Every Return line needs one: send its ID as return_reason_id on each line when you create a Return or add a line. Flint provides nine reasons in every environment, and you can add your own for anything specific to what you sell.
Each line keeps the return_reason_handle and return_reason_name it was created with. Renaming, deactivating, or archiving a reason later never changes what an existing Return says.
A store that doesn't track reasons can create one, such as in_store with is_note_required: false, and use it for every return taken at the counter.
Built-in reasons#
These reasons exist in every environment without setup, with the same IDs everywhere, so you can hardcode them. Send the ID; a handle in return_reason_id isn't accepted. When a reason requires a note, each line that uses it also needs a buyer_note.
| Handle | Return reason ID | Note required | Name | Refund reason |
|---|---|---|---|---|
changed_mind | rrsn_1T6HXAX0CEXP6YA5K1T392KJE6 | No | Changed my mind | customer_changed_mind |
too_small | rrsn_7264NP74WFWQFJM9ZK37KGBW31 | No | Too small | not_as_described |
too_large | rrsn_51T64508KCQ9TX9BXY67TPM3ZQ | No | Too large | not_as_described |
damaged_on_arrival | rrsn_5PACJDCF4YPWRCH9JNP5Y6THDQ | Yes | Damaged on arrival | not_as_described |
defective | rrsn_3BQ939HAEA2C8N5QWG4ZSDA7HV | Yes | Defective | defective_product |
wrong_item | rrsn_33250Y53P4V7EV7XZ3GYHRQHCA | Yes | Wrong item | wrong_item_shipped |
arrived_late | rrsn_0EMCCQEJKQJJCNP72CJ98MMXG5 | No | Arrived too late | arrived_too_late |
no_longer_needed | rrsn_51572JN88BP55HN0V6EYDQ1K3H | No | No longer needed | requested_by_customer |
other | rrsn_0G0YF6HGRX0HCWX4939BQNMC8M | Yes | Other | other |
Built-in reasons have source: flint, no categories, so they apply to every item, and a created_at of 1970-01-01T00:00:00Z. You can't change their wording, note requirement, or categories; create your own reason for different wording. You can set them inactive, as Availability describes.
The last column is the reason Flint puts on a Refund that a Return resolution creates. Reasons you create map to other, and so does a Refund that covers lines with different reasons.
Availability#
status controls whether a reason can go on new Return lines.
- active moves to inactive on PATCH status: inactive
- inactive moves to active on PATCH status: active
- active moves to archived on DELETE, your reasons only
- inactive moves to archived on DELETE, your reasons only
status on return reasonactiveOffered to buyers and accepted on new Return lines. Every reason starts here.inactiveNot offered and not accepted on new lines until you set it back toactive. Use it to pause a reason, including a built-in one.archivedFinalRetired for good withDELETE /v1/return-reasons/{return_reason_id}. Only reasons you created can be archived. The reason stays readable by ID, its handle stays reserved, and any furtherPATCHorDELETEreturns409 ACTION_NOT_ALLOWEDwithreason: archived.
Switch between active and inactive with PATCH /v1/return-reasons/{return_reason_id}. PATCH doesn't accept archived; use DELETE. The change applies only to your account in the environment where you make it: a built-in reason you set inactive in a sandbox stays active in live mode, and its ID and wording never change.
A built-in reason accepts only status and expected_version. Sending any other field returns 400 INVALID_REQUEST with a NOT_ALLOWED detail whose param names the field, and DELETE returns 409 ACTION_NOT_ALLOWED. Its version is 1 and its updated_at is 1970-01-01T00:00:00Z until you first change its status in that environment.
A Return line sent with a reason that isn't active returns 409 ACTION_NOT_ALLOWED with current_status set to inactive or archived, and param naming the line's return_reason_id. Reactivate the reason or choose an active one. Through a customer session, the same reason returns 404 RESOURCE_NOT_FOUND.
An inactive reason still references its categories, so a category it names can't be deleted. Archiving a reason releases those references.
Offering reasons to buyers#
category_handles limits which items a reason applies to, by catalog category handle. A reason with categories applies only to order lines whose product is in at least one of them. A reason with an empty list applies to every line. Product types and tags don't count.
| Through a customer session | With your API key or the Dashboard | |
|---|---|---|
| Reasons offered | Active reasons that apply to the item | Active reasons that apply to the item |
| Reasons accepted on a line | Only active reasons that apply to the item | Any active reason |
Read the reasons to offer from a return preview, POST /v1/me/return-previews for a buyer or POST /v1/return-previews for your own tools. Each line's suggested_return_reasons lists up to 20 reasons with their return_reason_id, handle, name, and is_note_required. Reasons scoped to the item's categories come first, then reasons that apply to every item, each group sorted by handle. Two lines on one order can offer different lists.
When a buyer's preview line includes a reason that isn't active or doesn't apply to the item, the line comes back ineligible with reason: reason_not_allowed, and creating the Return with that reason through the customer session is refused. Staff and your integrations can choose any active reason for any line, so they can correct a buyer's pick. Buyer-initiated returns covers the buyer flow.
Create your own reasons#
curl -X POST https://api.withflintpay.com/v1/return-reasons \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: reason-runs-small-001" \
-d '{
"handle": "runs_small",
"name": "Runs small",
"description": "The shoe fits smaller than its labeled size.",
"category_handles": ["footwear"],
"is_note_required": false
}'
{
"data": {
"category_handles": ["footwear"],
"created_at": "2026-10-28T15:04:05Z",
"description": "The shoe fits smaller than its labeled size.",
"handle": "runs_small",
"is_note_required": false,
"name": "Runs small",
"return_reason_id": "rrsn_01KWM7C2Z8Q4T6V9XB3N5R7H2D",
"source": "merchant",
"status": "active",
"updated_at": "2026-10-28T15:04:05Z",
"version": 1
},
"request_id": "req_01KWM7C30AF5K2N8P4R6T9V3XB"
}
| Field | Rules |
|---|---|
handle | Required. The permanent key you match on. Starts with a lowercase letter and uses only lowercase letters, digits, and underscores, up to 100 characters. It can't be changed after create. |
name | Required. What the buyer reads, 1 to 255 characters after Flint trims surrounding spaces. |
description | Optional, up to 2048 characters. |
is_note_required | Defaults to false. When true, every line that uses the reason needs a buyer_note. Set it on reasons you would otherwise follow up on by email. |
category_handles | Up to 100 category handles. Leave it out to apply the reason to every item. Duplicates are dropped. |
A handle is unique across the built-in reasons and every reason you have created, archived ones included. Reusing one returns 409 ALREADY_EXISTS with param: "handle", and details[0].current_resource names the reason that has it. Use that reason, or choose another handle.
Update a reason#
PATCH /v1/return-reasons/{return_reason_id} changes only the fields you send:
- A present
category_handlesarray replaces the whole set, and[]clears it. Either one requiresexpected_version. "description": nulland"external_reference_id": nullclear those fields.- Send
expected_versionwith any other change to refuse it if the reason changed since you read it. A stale value returns409 VERSION_CONFLICT.
DELETE takes expected_version as a query parameter in the same way and returns the archived reason.
Find a reason#
GET /v1/return-reasons?handle=runs_small returns the reason with that exact, case-sensitive handle, built-in or yours. It combines with the source and status filters. Without status, lists return active and inactive reasons; name archived in status to include archived ones. Results are newest first, so the built-in reasons, created at the Unix epoch, come after yours.
Reasons are not findings or decisions#
Several Returns fields use the word "reason", and each records a different claim. A buyer choosing damaged_on_arrival and a warehouse recording a damage finding are separate facts about the same parcel, and the difference matters when one of them is wrong. Keep them separate in your own data.
| Vocabulary | Supplied by | Where it lives |
|---|---|---|
| Return reason | The buyer, or staff on their behalf | return_reason_id on the Return line |
| Inspection finding | The warehouse | finding_codes on an inspection line |
| Decline reason | The merchant | decline_reason on a line decision |
| Override reason | The merchant | override_reason on a decision that departs from the policy's proposal |
| Refund reason | Flint | reason on the Refund, mapped from the lines' return reasons |
Errors to handle#
- StatusHTTP 409What to doA Return line names an inactive or archived reason, a
DELETEtargets a built-in reason, or aPATCHorDELETEtargets an archived reason.details[0].current_statusgives the reason's status. - StatusHTTP 409CodeALREADY_
EXISTS What to doOn create, the handle belongs to a built-in reason or one of yours, archived or not.details[0].current_resourcenames it. - StatusHTTP 409What to doThe
expected_versionyou sent is stale, and nothing changed. Read the reason again and decide whether the change still applies. - StatusHTTP 404What to doNo reason has the ID, or no category has a handle in
category_handles, withparamnaming the entry. Through a customer session, also a reason that isn't active. - StatusHTTP 400CodeINVALID_
REQUEST What to doA field fails validation, such as a malformedhandle,status: archivedin aPATCH, a field other thanstatuson a built-in reason, or a missingbuyer_noteon a line whose reason requires one.
Return reasons send no webhook events. Read them when you need the current list.
Next steps#
Return policies and reasonsSet up the policies that decide eligibility, and the reasons buyers choose from.Buyer-initiated returnsOffer suggested reasons and create Returns from your own account pages.Your first returnCreate, process, and refund a Return with a built-in reason.The Return reason object#
A reason customers can select when requesting a return.
Returned by GET /v1/return-reasons/{return_reason_id} and carried by the endpoints below.
Attributes
category_handlesarray of stringRequiredCatalog category handles this reason applies to. A reason with categories is suggested, and accepted from a customer session, only for order lines whose product is in one of them. A reason with no categories applies to every line. Not product types or tags: use handles from GET /v1/categories.
created_atstringRequiredWhen the reason was created. Built-in Flint reasons use their release time, 2026-07-27T00:00:00Z. Their updated_at is the merchant availability change time, or the same release time if unchanged.
descriptionstringLonger explanation of when to use the reason.
external_reference_idstringCaller-owned identifier for this resource in an external system.
handlestringRequiredLowercase snake_case identifier, unique among your reasons. Flint's own reasons have fixed handles. Can't be changed after create, and an archived reason keeps its handle reserved.
is_note_requiredbooleanRequiredWhether a Return line with this reason needs a buyer_note.
namestringRequiredName buyers and staff see.
return_reason_idstringRequiredFlint's ID for the reason. Send it as return_reason_id on a Return line.
sourceenumRequiredWhether Flint provides the reason or you created it.
flintmerchant
statusenumRequiredWhether the reason is offered. An active reason is offered and accepted on new Return lines. An inactive reason is not offered or accepted until you set it back to active. An archived reason is retired for good and stays readable on Returns that recorded it. Archive a merchant reason with DELETE /v1/return-reasons/{return_reason_id}. Flint reasons cannot be deleted, but you can set them inactive.
activearchivedinactive
updated_atstringRequiredRFC3339 timestamp.
versionintegerRequiredIncreases whenever the reason changes. Send it as expected_version to update or archive the reason only if it hasn't changed since you read it.
{
"category_handles": [],
"created_at": "2026-09-07T00:00:00Z",
"handle": "too_small",
"is_note_required": false,
"name": "Too small",
"return_reason_id": "rrsn_4P3ZFKADVBAPEQ0P2X313W1HCR",
"source": "merchant",
"status": "active",
"updated_at": "2026-09-07T00:00:00Z",
"version": 1
}List return reasons#
/v1/return-reasonsRequires scope commerce.returns.operations.write or commerce.returns.policies.write or commerce.returns.read or commerce.returns.reasons.write or commerce.returns.resolutions.write or commerce.returns.write
Rate limit: read
List Return reasons, including Flint-provided defaults and merchant-defined reasons. Flint reasons have a created_at of 1970-01-01T00:00:00Z, so they follow your own. Default order: created_at descending, then return_reason_id descending.
Query parameters
external_reference_idstringExact-match filter on the caller-owned external reference ID.
handlestringExact, case-sensitive match on the reason's handle, for Flint and merchant reasons.
page_sizeintegerMaximum number of results to return, from 1 to 100. Defaults to 20.
page_tokenstringOpaque, signed next_page_token from the previous response, bound to the list and caller. Omit on the first request. You may change `page_size` between pages. Reuse it with the same endpoint, filters, sort, and request context. Do not parse or construct tokens. An altered, invalid, expired, or mismatched token returns a validation error.
querystringSearch by return reason ID, handle, name, description, or external reference ID.
sourcearray of enumFilter by source. Values are trimmed and deduplicated in first-seen order; empty or unknown entries are rejected. Values within this filter are ORed; separate filters are ANDed.
flintmerchant
statusarray of enumFilter by status. Omitted, the list leaves out archived rows; name archived to include them. Values are trimmed and deduplicated in first-seen order; empty or unknown entries are rejected. Values within this filter are ORed; separate filters are ANDed.
activearchivedinactive
Response · 200
Successful response.
dataarray of objectRequiredResource, collection, or operation result returned by this request.
category_handlesarray of stringRequiredCatalog category handles this reason applies to. A reason with categories is suggested, and accepted from a customer session, only for order lines whose product is in one of them. A reason with no categories applies to every line. Not product types or tags: use handles from GET /v1/categories.
created_atstringRequiredWhen the reason was created. Built-in Flint reasons use their release time, 2026-07-27T00:00:00Z. Their updated_at is the merchant availability change time, or the same release time if unchanged.
descriptionstringLonger explanation of when to use the reason.
external_reference_idstringCaller-owned identifier for this resource in an external system.
handlestringRequiredLowercase snake_case identifier, unique among your reasons. Flint's own reasons have fixed handles. Can't be changed after create, and an archived reason keeps its handle reserved.
is_note_requiredbooleanRequiredWhether a Return line with this reason needs a buyer_note.
namestringRequiredName buyers and staff see.
return_reason_idstringRequiredFlint's ID for the reason. Send it as return_reason_id on a Return line.
sourceenumRequiredWhether Flint provides the reason or you created it.
flintmerchant
statusenumRequiredWhether the reason is offered. An active reason is offered and accepted on new Return lines. An inactive reason is not offered or accepted until you set it back to active. An archived reason is retired for good and stays readable on Returns that recorded it. Archive a merchant reason with DELETE /v1/return-reasons/{return_reason_id}. Flint reasons cannot be deleted, but you can set them inactive.
activearchivedinactive
updated_atstringRequiredRFC3339 timestamp.
versionintegerRequiredIncreases whenever the reason changes. Send it as expected_version to update or archive the reason only if it hasn't changed since you read it.
metaobjectAdditional information about this response.
api_versionstringAPI version used to produce this response.
idempotency_replayedbooleanWhether this response replays a stored result for the supplied Idempotency-Key.
trace_idstringTrace identifier to include when contacting Flint about this request.
warningsarray of objectConditions that need attention even though the request succeeded.
next_page_tokenstringOpaque token to send as `page_token` to retrieve the next page. Omitted when there is no next page.
request_idstringRequiredIdentifier of this API request, used to correlate logs and support requests.
curl https://api.withflintpay.com/v1/return-reasons \
-H "Flint-Version: 2026-09-07" \
-H "Authorization: Bearer YOUR_API_KEY"Successful response.
{
"data": [
{
"category_handles": [],
"created_at": "2026-09-07T00:00:00Z",
"handle": "too_small",
"is_note_required": false,
"name": "Too small",
"return_reason_id": "rrsn_4P3ZFKADVBAPEQ0P2X313W1HCR",
"source": "merchant",
"status": "active",
"updated_at": "2026-09-07T00:00:00Z",
"version": 1
}
],
"meta": {
"api_version": "2026-09-07"
},
"request_id": "req_01KWM6WAHG3N9Q8T2V5XRZ7C4D"
}Create return reason#
/v1/return-reasonsIdempotentRequires scope commerce.returns.reasons.write
Rate limit: write
Create a merchant Return reason buyers can select. Buyer reasons are distinct from inspection findings, decline reasons, and Refund reasons. Flint handles and all existing merchant handles, including archived reasons, are reserved. A conflicting handle fails with `ALREADY_EXISTS`.
Request body
category_handlesarray of stringCatalog category handles this reason applies to. A reason with categories is suggested, and accepted from a customer session, only for order lines whose product is in one of them. A reason with no categories applies to every line. Not product types or tags: use handles from GET /v1/categories. Repeated handles are dropped.
descriptionstringDescription, limited to 2048 bytes after trimming surrounding whitespace.
external_reference_idstringCaller-owned identifier for this resource in an external system.
handlestringRequiredStable lower_snake_case identifier. After trimming surrounding whitespace, it must start with a lowercase letter and contain only lowercase letters, digits, and underscores, with 1 through 100 characters.
is_note_requiredbooleanWhether a Return line with this reason needs a buyer_note. Defaults to false.
namestringRequiredDisplay name, limited to 1 through 255 bytes after trimming surrounding whitespace. Surrounding whitespace is trimmed before length validation. A supplied value cannot be blank; use null where clearing is supported.
Response · 201
Successful response.
dataobjectRequiredResource, collection, or operation result returned by this request.
category_handlesarray of stringRequiredCatalog category handles this reason applies to. A reason with categories is suggested, and accepted from a customer session, only for order lines whose product is in one of them. A reason with no categories applies to every line. Not product types or tags: use handles from GET /v1/categories.
created_atstringRequiredWhen the reason was created. Built-in Flint reasons use their release time, 2026-07-27T00:00:00Z. Their updated_at is the merchant availability change time, or the same release time if unchanged.
descriptionstringLonger explanation of when to use the reason.
external_reference_idstringCaller-owned identifier for this resource in an external system.
handlestringRequiredLowercase snake_case identifier, unique among your reasons. Flint's own reasons have fixed handles. Can't be changed after create, and an archived reason keeps its handle reserved.
is_note_requiredbooleanRequiredWhether a Return line with this reason needs a buyer_note.
namestringRequiredName buyers and staff see.
return_reason_idstringRequiredFlint's ID for the reason. Send it as return_reason_id on a Return line.
sourceenumRequiredWhether Flint provides the reason or you created it.
flintmerchant
statusenumRequiredWhether the reason is offered. An active reason is offered and accepted on new Return lines. An inactive reason is not offered or accepted until you set it back to active. An archived reason is retired for good and stays readable on Returns that recorded it. Archive a merchant reason with DELETE /v1/return-reasons/{return_reason_id}. Flint reasons cannot be deleted, but you can set them inactive.
activearchivedinactive
updated_atstringRequiredRFC3339 timestamp.
versionintegerRequiredIncreases whenever the reason changes. Send it as expected_version to update or archive the reason only if it hasn't changed since you read it.
metaobjectAdditional information about this response.
api_versionstringAPI version used to produce this response.
idempotency_replayedbooleanWhether this response replays a stored result for the supplied Idempotency-Key.
trace_idstringTrace identifier to include when contacting Flint about this request.
warningsarray of objectConditions that need attention even though the request succeeded.
request_idstringRequiredIdentifier of this API request, used to correlate logs and support requests.
curl -X POST https://api.withflintpay.com/v1/return-reasons \
-H "Flint-Version: 2026-09-07" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: a-unique-key" \
-d '{
"handle": "too_small",
"is_note_required": false,
"name": "Too small"
}'Get return reason#
/v1/return-reasons/{return_reason_id}Requires scope commerce.returns.operations.write or commerce.returns.policies.write or commerce.returns.read or commerce.returns.reasons.write or commerce.returns.resolutions.write or commerce.returns.write
Rate limit: read
Retrieve one Return reason with its handle, category handles, and status.
Path parameters
return_reason_idstringRequiredFlint return reason id. Must be a valid ID with prefix rrsn_. Malformed IDs return 400 INVALID_REQUEST with detail INVALID_VALUE; well-formed IDs that do not exist return 404 RESOURCE_NOT_FOUND.
curl https://api.withflintpay.com/v1/return-reasons/rrsn_01KEZF7C00SEE2T4EYP1NXAH3E \
-H "Flint-Version: 2026-09-07" \
-H "Authorization: Bearer YOUR_API_KEY"Successful response.
{
"data": {
"category_handles": [],
"created_at": "2026-09-07T00:00:00Z",
"handle": "too_small",
"is_note_required": false,
"name": "Too small",
"return_reason_id": "rrsn_4P3ZFKADVBAPEQ0P2X313W1HCR",
"source": "merchant",
"status": "active",
"updated_at": "2026-09-07T00:00:00Z",
"version": 1
},
"meta": {
"api_version": "2026-09-07"
},
"request_id": "req_01KWM6WAHG3N9Q8T2V5XRZ7C4D"
}Update return reason#
/v1/return-reasons/{return_reason_id}IdempotentRequires scope commerce.returns.reasons.write
Rate limit: write
Update a Return reason. Send null to clear description. A present category_handles array replaces the existing set. Set status to active or inactive to control availability. Flint reasons accept only status and expected_version; create your own reason to use different wording. Use DELETE to archive a merchant reason.
Path parameters
return_reason_idstringRequiredFlint return reason id. Must be a valid ID with prefix rrsn_. Malformed IDs return 400 INVALID_REQUEST with detail INVALID_VALUE; well-formed IDs that do not exist return 404 RESOURCE_NOT_FOUND.
Request body
category_handlesarray of stringCatalog category handles this reason applies to. A reason with categories is suggested, and accepted from a customer session, only for order lines whose product is in one of them. A reason with no categories applies to every line. Not product types or tags: use handles from GET /v1/categories. Repeated handles are dropped. Requires expected_version.
descriptionstring or nullDescription, limited to 2048 bytes after trimming surrounding whitespace. Send null to clear it.
expected_versionintegerRequired when any of these fields is present: category_handles.
external_reference_idstring or nullCaller-owned identifier for this resource in an external system. Send null to clear it.
is_note_requiredbooleanWhether a Return line with this reason needs a buyer_note.
namestringDisplay name, limited to 1 through 255 bytes after trimming surrounding whitespace. Surrounding whitespace is trimmed before length validation. A supplied value cannot be blank; use null where clearing is supported.
statusenumSet active to offer the reason or inactive to stop offering it. To archive a merchant reason, use DELETE.
activeinactive
curl -X PATCH https://api.withflintpay.com/v1/return-reasons/rrsn_01KEZF7C00SEE2T4EYP1NXAH3E \
-H "Flint-Version: 2026-09-07" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: a-unique-key" \
-d '{
"category_handles": [
"events"
],
"expected_version": 1,
"name": "The size was too small"
}'Archive return reason#
/v1/return-reasons/{return_reason_id}IdempotentRequires scope commerce.returns.reasons.write
Rate limit: write
Archive a Return reason so it can't be selected on new Return lines. Returns that recorded it keep its name and handle. Flint reasons can't be archived; set status to inactive instead. An archived reason's handle stays reserved.
Path parameters
return_reason_idstringRequiredFlint return reason id. Must be a valid ID with prefix rrsn_. Malformed IDs return 400 INVALID_REQUEST with detail INVALID_VALUE; well-formed IDs that do not exist return 404 RESOURCE_NOT_FOUND.
Query parameters
expected_versionintegerOptional. The reason's current version. If it changed, the archive fails with 409 VERSION_CONFLICT and nothing changes.
curl -X DELETE https://api.withflintpay.com/v1/return-reasons/rrsn_01KEZF7C00SEE2T4EYP1NXAH3E \
-H "Flint-Version: 2026-09-07" \
-H "Authorization: Bearer YOUR_API_KEY"Was this helpful?