Skip to content

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.

HandleReturn reason IDNote requiredNameRefund reason
changed_mindrrsn_1T6HXAX0CEXP6YA5K1T392KJE6NoChanged my mindcustomer_changed_mind
too_smallrrsn_7264NP74WFWQFJM9ZK37KGBW31NoToo smallnot_as_described
too_largerrsn_51T64508KCQ9TX9BXY67TPM3ZQNoToo largenot_as_described
damaged_on_arrivalrrsn_5PACJDCF4YPWRCH9JNP5Y6THDQYesDamaged on arrivalnot_as_described
defectiverrsn_3BQ939HAEA2C8N5QWG4ZSDA7HVYesDefectivedefective_product
wrong_itemrrsn_33250Y53P4V7EV7XZ3GYHRQHCAYesWrong itemwrong_item_shipped
arrived_laterrsn_0EMCCQEJKQJJCNP72CJ98MMXG5NoArrived too latearrived_too_late
no_longer_neededrrsn_51572JN88BP55HN0V6EYDQ1K3HNoNo longer neededrequested_by_customer
otherrrsn_0G0YF6HGRX0HCWX4939BQNMC8MYesOtherother

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.

Return reason statusFinal
  • 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 reason
Final values do not change again
  • active
    Offered to buyers and accepted on new Return lines. Every reason starts here.
  • inactive
    Not offered and not accepted on new lines until you set it back to active. Use it to pause a reason, including a built-in one.
  • archivedFinal
    Retired for good with DELETE /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 further PATCH or DELETE returns 409 ACTION_NOT_ALLOWED with reason: 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 sessionWith your API key or the Dashboard
Reasons offeredActive reasons that apply to the itemActive reasons that apply to the item
Reasons accepted on a lineOnly active reasons that apply to the itemAny 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
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
  }'
Response
{
  "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"
}
FieldRules
handleRequired. 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.
nameRequired. What the buyer reads, 1 to 255 characters after Flint trims surrounding spaces.
descriptionOptional, up to 2048 characters.
is_note_requiredDefaults 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_handlesUp 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_handles array replaces the whole set, and [] clears it. Either one requires expected_version.
  • "description": null and "external_reference_id": null clear those fields.
  • Send expected_version with any other change to refuse it if the reason changed since you read it. A stale value returns 409 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.

VocabularySupplied byWhere it lives
Return reasonThe buyer, or staff on their behalfreturn_reason_id on the Return line
Inspection findingThe warehousefinding_codes on an inspection line
Decline reasonThe merchantdecline_reason on a line decision
Override reasonThe merchantoverride_reason on a decision that departs from the policy's proposal
Refund reasonFlintreason on the Refund, mapped from the lines' return reasons

Errors to handle#

  • HTTP 409
    A Return line names an inactive or archived reason, a DELETE targets a built-in reason, or a PATCH or DELETE targets an archived reason. details[0].current_status gives the reason's status.
  • HTTP 409
    On create, the handle belongs to a built-in reason or one of yours, archived or not. details[0].current_resource names it.
  • HTTP 409
    VERSION_CONFLICTRefresh, then retry
    The expected_version you sent is stale, and nothing changed. Read the reason again and decide whether the change still applies.
  • HTTP 404
    No reason has the ID, or no category has a handle in category_handles, with param naming the entry. Through a customer session, also a reason that isn't active.
  • HTTP 400
    A field fails validation, such as a malformed handle, status: archived in a PATCH, a field other than status on a built-in reason, or a missing buyer_note on 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 stringRequired

Catalog 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_atstringRequired

When 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.

descriptionstring

Longer explanation of when to use the reason.

external_reference_idstring

Caller-owned identifier for this resource in an external system.

handlestringRequired

Lowercase 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_requiredbooleanRequired

Whether a Return line with this reason needs a buyer_note.

namestringRequired

Name buyers and staff see.

return_reason_idstringRequired

Flint's ID for the reason. Send it as return_reason_id on a Return line.

sourceenumRequired

Whether Flint provides the reason or you created it.

  • flint
  • merchant
statusenumRequired

Whether 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.

  • active
  • archived
  • inactive
updated_atstringRequired

RFC3339 timestamp.

versionintegerRequired

Increases 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.

JSON
{
  "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#

GET/v1/return-reasons

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

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_idstring

Exact-match filter on the caller-owned external reference ID.

handlestring

Exact, case-sensitive match on the reason's handle, for Flint and merchant reasons.

page_sizeinteger

Maximum number of results to return, from 1 to 100. Defaults to 20.

page_tokenstring

Opaque, 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.

querystring

Search by return reason ID, handle, name, description, or external reference ID.

sourcearray of enum

Filter 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.

  • flint
  • merchant
statusarray of enum

Filter 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.

  • active
  • archived
  • inactive

Response · 200

Successful response.

dataarray of objectRequired

Resource, collection, or operation result returned by this request.

metaobject

Additional information about this response.

next_page_tokenstring

Opaque token to send as `page_token` to retrieve the next page. Omitted when there is no next page.

request_idstringRequired

Identifier 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.

JSON
{
  "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#

POST/v1/return-reasonsIdempotent

Requires 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 string

Catalog 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.

descriptionstring

Description, limited to 2048 bytes after trimming surrounding whitespace.

external_reference_idstring

Caller-owned identifier for this resource in an external system.

handlestringRequired

Stable 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_requiredboolean

Whether a Return line with this reason needs a buyer_note. Defaults to false.

namestringRequired

Display 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.

dataobjectRequired

Resource, collection, or operation result returned by this request.

metaobject

Additional information about this response.

request_idstringRequired

Identifier 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#

GET/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_idstringRequired

Flint 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.

Response · 200

Successful response.

Same response as Create return reason.

curl https://api.withflintpay.com/v1/return-reasons/rrsn_01KEZF7C00SEE2T4EYP1NXAH3E \
  -H "Flint-Version: 2026-09-07" \
  -H "Authorization: Bearer YOUR_API_KEY"

Successful response.

JSON
{
  "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#

PATCH/v1/return-reasons/{return_reason_id}Idempotent

Requires 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_idstringRequired

Flint 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 string

Catalog 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 null

Description, limited to 2048 bytes after trimming surrounding whitespace. Send null to clear it.

expected_versioninteger

Required when any of these fields is present: category_handles.

external_reference_idstring or null

Caller-owned identifier for this resource in an external system. Send null to clear it.

is_note_requiredboolean

Whether a Return line with this reason needs a buyer_note.

namestring

Display 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.

statusenum

Set active to offer the reason or inactive to stop offering it. To archive a merchant reason, use DELETE.

  • active
  • inactive

Response · 200

Successful response.

Same response as Create return reason.

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#

DELETE/v1/return-reasons/{return_reason_id}Idempotent

Requires 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_idstringRequired

Flint 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_versioninteger

Optional. The reason's current version. If it changed, the archive fails with 409 VERSION_CONFLICT and nothing changes.

Response · 200

Successful response.

Same response as Create return reason.

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?