Skip to content

Return policies

Return policies are merchant rules for eligibility, deadlines, allowed resolutions, approval mode, release timing, inspection, destination, completion, shipping, and restocking fees. Flint judges every return request against your active policies. Where a policy allows it, Flint approves and resolves the request itself; everything else waits for you, with the policy's proposal attached.

Use this API to write your return rules once, show them on a settings page, and look up the exact rules a past Return was judged under. Return policies and reasons walks through writing, activating, and changing a policy step by step.

Policies and revisions#

A policy is a stable identity. Its rules live on revisions, and a revision never changes once it's published.

  • The policy (rpol_...) holds name, status, version, external_reference_id, and metadata. PATCH /v1/return-policies/{return_policy_id} changes these and nothing else.
  • A revision (rpolv_...) holds the rules: scope, priority, eligibility, return window, modes, receiving, and fees. To change any of them, publish a new revision with POST /v1/return-policies/{return_policy_id}/revisions.

Creating a policy publishes its first revision. current_return_policy_revision_id names the revision Flint judges new requests by, and each publish points it at the new one. A revision carries the complete rules, so send all of them every time: a field you leave out of a publish doesn't carry over from the previous revision. Change the rules shows a publish.

Each Return line records the revision it was judged under in eligibility.return_policy_revision_id and keeps it whatever happens to the policy later. Read those rules with GET /v1/return-policies/{return_policy_id}/revisions/{return_policy_revision_id}, which works for archived policies too. A Return decided in March still shows the rules it was decided under after you've changed them twice.

Read the current revision#

Policy reads return current_return_policy_revision_id and leave the revision itself out. Add expand=current_revision to GET /v1/return-policies/{return_policy_id} or GET /v1/return-policies to include it as current_revision, the same object the revision endpoints return. On a list, that gives a settings page every policy with its rules in one request. Adding or dropping expand between pages keeps page_token valid.

cURL
curl -G https://api.withflintpay.com/v1/return-policies \
  -H "Authorization: Bearer YOUR_API_KEY" \
  --data-urlencode "status=active" \
  --data-urlencode "expand=current_revision"
JSON
{
  "data": [
    {
      "return_policy_id": "rpol_01KEZF7C00B0HF98CQ6VHC90WZ",
      "name": "Standard returns",
      "status": "active",
      "version": 2,
      "current_return_policy_revision_id": "rpolv_01KEZF7C00Q7RB5VDPZRGYEQTX",
      "current_revision": {
        "return_policy_revision_id": "rpolv_01KEZF7C00Q7RB5VDPZRGYEQTX",
        "return_policy_id": "rpol_01KEZF7C00B0HF98CQ6VHC90WZ",
        "priority": 100,
        "scope": { "match_type": "all" },
        "eligibility_result": "eligible",
        "return_window": { "duration_seconds": 2592000, "starts_at_event": "delivered" },
        "allowed_resolution_types": ["refund", "exchange"],
        "approval_mode": "automatic",
        "resolution_mode": "manual",
        "completion_mode": "automatic",
        "release_timing": "after_receipt",
        "is_merchandise_return_required": true,
        "is_inspection_required": false,
        "receiving_location_id": "loc_01KEZF7C00G0VBJJ8VMFCQ5YVG",
        "receipt_disposition_mode": "automatic",
        "return_shipping": { "payer": "buyer" },
        "restocking_fee": { "calculation_type": "percent", "percent": 10 },
        "effective_at": "2026-09-08T15:30:00Z",
        "created_at": "2026-09-07T00:00:00Z"
      },
      "metadata": {},
      "created_at": "2026-09-07T00:00:00Z",
      "updated_at": "2026-09-08T15:30:00Z"
    }
  ],
  "request_id": "req_01KWM6MMFKZ7MSJCYFVP9NAEBC"
}

This policy was created with its first revision (version: 1) and then activated (version: 2). It accepts anything for 30 days from delivery and approves requests itself. Because it offers exchanges, which need a person to pick the merchandise, it leaves the outcome to your staff. The buyer pays return shipping, the refund waits until the merchandise arrives, and each line gets a proposed 10 percent restocking fee.

Status#

Only active policies are evaluated. A new policy defaults to inactive, so you can publish and review its rules before any buyer meets them. Send status: "active" on create to use it immediately; the same activation checks apply.

status on return policy
Final values do not change again
  • inactive
    Not evaluated. Publish revisions freely, then set status: "active" with PATCH to turn it on.
  • active
    Evaluated for every new Return and every eligibility preview from POST /v1/return-previews. Set status: "inactive" with PATCH to stop.
  • archivedFinal
    Retired with DELETE. It can't be updated, activated, or given another revision; each of those returns 409 ACTION_NOT_ALLOWED with reason: archived. Lists leave archived policies out unless status names archived.

Activation checks#

Activating a policy, and publishing a revision to a policy that's already active, check the revision against the rest of your setup. Writing a revision to an inactive policy checks only the revision itself.

  • The receiving Location must be usable. It has to exist, be active, and have a postal address, since buyers ship to it. Otherwise the request fails with 409 ACTION_NOT_ALLOWED, and the message says what's wrong with the Location.
  • Two active policies can't tie. If another active policy has the same priority and a scope that could cover the same item, the request fails with 409 ACTION_NOT_ALLOWED and reason: configuration_required. Two scopes count as overlapping unless both are include and some list, such as category_handles, is filled in both with no value in common. Change one policy's priority, or narrow the scopes so they can't overlap.

Deactivation#

Setting a policy inactive fails with 409 ACTION_NOT_ALLOWED while a requested or open Return was judged under one of its revisions. Each of those Returns has to reach completed, declined, or canceled first.

Versions#

version starts at 1 and goes up by one with every change to the policy: an identity update, a status change, or a new revision. Send the version you last read as expected_version, and a change made since then fails with 409 VERSION_CONFLICT instead of being overwritten.

Requestexpected_version
Publish a revisionRequired, in the body
PATCH a policyOptional, in the body
DELETE a policyOptional, as a query parameter

Which policy applies#

For each line in a request, Flint takes the active policies whose scope covers the item and applies the one with the highest priority. Layer specific policies over a general one: a catch-all at priority 100 and a final-sale exclusion at priority 200, for example.

Every scope needs a match_type:

  • all covers every item. Every list in the scope must be empty or absent.
  • include covers only what its lists name, and at least one list must have a value. When you fill several lists, an item has to match each of them; within a list, any value matches.
ListMatches
product_idsThe order line's product
variant_idsThe order line's variant
category_handlesAny of the line's catalog categories, by handle
location_idsThe Location the item was fulfilled from
channel_typesThe order's origin: checkout, payment_link, virtual_terminal, api, or subscription

Each list holds up to 100 distinct values of 1 to 255 characters. Every handle in category_handles must name an existing category.

When no active policy covers a line, its eligibility is review_required with reason: no_matching_policy. You and your integrations can still create a Return for it and decide it by hand. Leave out override_reason: there is no policy to override, so the decision rejects one. A buyer can't request the line through a customer session, because only an active policy that covers the item opens it to self-service.

Revision rules#

eligibility_result splits revisions into two shapes, published as the ReturnPolicyRevisionInputIneligible and ReturnPolicyRevisionInputReturnable schemas. review_required is returnable, but every request under it waits for your decision.

  • Every revision needs priority, scope, approval_mode, and is_merchandise_return_required.
  • An ineligible revision also needs ineligibility_reason, and leaves out allowed_resolution_types, resolution_mode, release_timing, and completion_mode.
  • An eligible or review_required revision also needs allowed_resolution_types, resolution_mode, and completion_mode, plus release_timing when refund or store_credit is allowed. It can't set ineligibility_reason.

An ineligible revision states only that the items can't come back and why. Flint checks it before the return window, so a buyer sees the reason, such as final_sale, even after the window has passed. Final sale shows one.

On a returnable revision, these fields depend on each other:

  • Merchandise. is_merchandise_return_required: true needs receiving_location_id. When it's false, leave out both receiving_location_id and is_inspection_required.
  • Release timing. after_handoff and after_receipt need is_merchandise_return_required: true. after_inspection also needs is_inspection_required: true. When only exchange, replacement, or no_monetary_action is allowed and you leave release_timing out, Flint uses after_inspection when inspection is required, after_receipt when only the merchandise is, and after_approval otherwise.
  • Automatic resolution. resolution_mode: "automatic" needs resolution_selection_mode. With policy_default, set automatic_resolution_type to a value in allowed_resolution_types. With buyer_requested, leave automatic_resolution_type out and allow only refund, store_credit, and no_monetary_action. Under resolution_mode: "manual", set neither field.
  • Limits. priority is 0 or higher. return_window.duration_seconds is above 0 and at most 158,112,000 (1,830 days). allowed_resolution_types can't repeat a value. A policy name is 1 to 255 characters.

A revision that breaks a rule is rejected with 400 INVALID_REQUEST, on create and on publish alike. Rules Flint checks when you write a revision has the complete list.

What the modes decide#

  • approval_mode decides who approves. automatic approves a request without you when every line is eligible for its full requested quantity. manual waits for POST /v1/returns/{return_id}/decide.
  • resolution_mode decides who creates the buyer's outcome. automatic creates and confirms a refund, store_credit, or no_monetary_action outcome itself. manual leaves the outcome to you, which exchanges and replacements always need, because a person chooses the merchandise.
  • resolution_selection_mode decides who picks an automatic outcome. policy_default uses automatic_resolution_type, and buyer_requested uses what the buyer chose from allowed_resolution_types.
  • release_timing decides when the outcome's value is released: after_approval, after_handoff, after_receipt, after_inspection, or manual. It gates exchanges and replacements as well as refunds.
  • completion_mode decides who completes the Return. automatic completes it when its last completion blocker clears. manual waits for POST /v1/returns/{return_id}/complete.
  • receipt_disposition_mode decides what happens to verified merchandise on arrival. automatic, the default, records it as sellable at the receiving Location, after an accepted inspection when one is required. manual waits for you to create a disposition.

What automatic decides covers when automatic approval holds back and how the modes combine.

Return windows#

return_window is a duration_seconds and the event it counts from. Leave it out for no deadline. Each fulfillment gets its own deadline, reported as expires_at on the line's eligibility; after it, the line is ineligible with reason: return_window_expired.

starts_at_eventCounts from
fulfilledThe fulfillment completing
deliveredThe carrier, local, or digital delivery
picked_upThe buyer collecting in person
service_completedThe work being finished

When the starting event never happens for a fulfillment, such as a delivered window on an in-store pickup, Flint can't set a deadline. The line becomes review_required with reason: manual_review_required, and you decide it. See Windows.

Fees#

return_shipping.payer is merchant or buyer. It states your policy and charges nothing, because Flint doesn't buy return labels. To charge the buyer for a label, add a return_shipping_fee adjustment to the resolution.

restocking_fee is proposed for each eligible line in the line's policy_adjustment_proposals, with the amount in calculated_amount_money:

  • flat with flat_money proposes that amount for the line, whatever the quantity.
  • percent with percent, from 1 to 100 with up to four decimal places, proposes that share of the returned units' part of the order line's subtotal_money. 10 means 10 percent: returning 2 of 3 units from a line with a $90.00 subtotal proposes $6.00.

The fee lands on the resolution as a restocking_fee adjustment and shows in the Return's financial_summary as deduction_money.

Errors#

  • HTTP 400
    A revision breaks one of the revision rules, or a publish has no expected_version. Fix the request and send it again.
  • HTTP 404
    The policy or revision doesn't exist in this environment, or a category_handles value doesn't name a category. For a handle, param points at it, such as revision.scope.category_handles[0].
  • HTTP 409
    VERSION_CONFLICTRefresh, then retry
    The policy changed after you read it. Read it again, check what changed, and retry with its current version.
  • HTTP 409
    With reason: configuration_required, another active policy has the same priority and a scope that could overlap. With reason: archived, the policy is archived. Otherwise, an activation check found the receiving Location missing, inactive, or without a postal address, or a deactivation found open Returns judged under the policy.
Return policies and reasonsWrite, activate, and change a policy, and decide requests by hand.Buyer-initiated returnsShow buyers what your policies let them return.Returns API referenceThe Returns your policies judge.

The Return policy object#

Rules governing whether and how purchased items can be returned.

Returned by GET /v1/return-policies/{return_policy_id} and carried by the endpoints below.

Attributes

created_atstringRequired

RFC3339 timestamp.

current_return_policy_revision_idstringRequired

ID of the revision Flint judges new requests by.

current_revisionobject or null

Present only when `expand` includes `current_revision`; `null` when expanded and there is no related return policy revision.

Not returned with a customer session

external_reference_idstring

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

metadatamap of stringRequired

Stored caller-owned key-value data. See `MetadataInput` for key, value, and size rules.

namestringRequired

Name of the policy.

return_policy_idstringRequired

Unique identifier for this return policy, prefixed `rpol_`.

statusenumRequired

active policies apply to new Returns; inactive policies do not. Toggle active and inactive with PATCH status. Retire either with DELETE /v1/return-policies/{return_policy_id}.

  • active
  • inactive
  • archived
updated_atstringRequired

RFC3339 timestamp.

versionintegerRequired

Current version of this resource's owned state. Send it as `expected_version` when changing the resource to reject a stale write.

JSON
{
  "created_at": "2026-09-07T00:00:00Z",
  "current_return_policy_revision_id": "rpolv_01KEZF7C00Q7RB5VDPZRGYEQTX",
  "metadata": {},
  "name": "Standard returns",
  "return_policy_id": "rpol_01KEZF7C00B0HF98CQ6VHC90WZ",
  "status": "active",
  "updated_at": "2026-09-07T00:00:00Z",
  "version": 1
}

List return policies#

GET/v1/return-policies

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 policies with their status. Include the current revision with expand=current_revision. Default order: created_at descending, then return_policy_id descending.

Query parameters

external_reference_idstring

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

page_sizeinteger

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

page_tokenstring

Opaque next_page_token from the previous response. 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 invalid, expired, or mismatched token returns a validation error.

querystring

Search by return policy ID, name, or external reference ID.

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
  • inactive
  • archived
expandarray of enum

Include related objects in the response. Supported expansions: current_revision. Include the requested related resources using scoped batch reads for this page. Each relationship requires its existing target read scopes. Expansion changes the representation without changing pagination tokens. Limits: at most 10 unique expand paths per request.

  • current_revision

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-policies \
  -H "Flint-Version: 2026-09-07" \
  -H "Authorization: Bearer YOUR_API_KEY"

Successful response.

JSON
{
  "data": [
    {
      "created_at": "2026-09-07T00:00:00Z",
      "current_return_policy_revision_id": "rpolv_01KEZF7C00Q7RB5VDPZRGYEQTX",
      "metadata": {},
      "name": "Standard returns",
      "return_policy_id": "rpol_01KEZF7C00B0HF98CQ6VHC90WZ",
      "status": "active",
      "updated_at": "2026-09-07T00:00:00Z",
      "version": 1
    }
  ],
  "meta": {
    "api_version": "2026-09-07"
  },
  "request_id": "req_01KWM6DF5BCRZ5V0HFTSB11ERG"
}

Create return policy#

POST/v1/return-policiesIdempotent

Requires scope commerce.returns.policies.write

Rate limit: write

Create a Return policy with its first revision. The policy ID is stable across revisions, and each published revision is immutable.

Request body

external_reference_idstring

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

metadatamap of string

Caller-owned metadata. Values can't be empty strings. Keys starting with flint_ are reserved for Flint, are not returned, and cannot be written through the public API.

namestringRequired

Name of the policy, from 1 to 255 characters.

revisionone ofRequired

The revision with the complete rules. A field you leave out doesn't carry over from the previous revision.

statusenum

Whether the policy applies to new Returns. Defaults to inactive. Creating an active policy checks for overlapping active policies and a usable receiving location, just like activation through PATCH.

  • active
  • inactive

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-policies \
  -H "Flint-Version: 2026-09-07" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: a-unique-key" \
  -d '{
    "name": "Standard returns",
    "revision": {
      "allowed_resolution_types": [
        "refund"
      ],
      "approval_mode": "manual",
      "completion_mode": "manual",
      "eligibility_result": "eligible",
      "is_inspection_required": false,
      "is_merchandise_return_required": true,
      "priority": 10,
      "receipt_disposition_mode": "manual",
      "receiving_location_id": "loc_01K1P6G4M7H2N8Q9R3S5T6V7WX",
      "release_timing": "after_receipt",
      "resolution_mode": "manual",
      "scope": {
        "match_type": "all"
      }
    }
  }'

Get return policy#

GET/v1/return-policies/{return_policy_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 policy. Supports expand for current_revision.

Path parameters

return_policy_idstringRequired

Flint return policy id.

Query parameters

expandarray of enum

Include related objects in the response. Supported expansions: current_revision. Expanded relationships are returned only when explicitly requested and authorized. Limits: at most 10 unique expand paths per request.

  • current_revision

Response · 200

Successful response.

Same response as Create return policy.

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

Successful response.

JSON
{
  "data": {
    "created_at": "2026-09-07T00:00:00Z",
    "current_return_policy_revision_id": "rpolv_01KEZF7C00Q7RB5VDPZRGYEQTX",
    "metadata": {},
    "name": "Standard returns",
    "return_policy_id": "rpol_01KEZF7C00B0HF98CQ6VHC90WZ",
    "status": "active",
    "updated_at": "2026-09-07T00:00:00Z",
    "version": 1
  },
  "meta": {
    "api_version": "2026-09-07"
  },
  "request_id": "req_01KWM6DF5BCRZ5V0HFTSB11ERG"
}

Update return policy#

PATCH/v1/return-policies/{return_policy_id}Idempotent

Requires scope commerce.returns.policies.write

Rate limit: write

Update policy identity fields or set status to active or inactive. Rules live on revisions, so changing a window, fee, or scope means publishing a new revision.

Path parameters

return_policy_idstringRequired

Flint return policy id.

Request body

expected_versioninteger

Version last read from the resource returned in `data` (the primary resource for a result object). The write fails with `VERSION_CONFLICT` if it has changed. Requiredness depends on the operation and fields being changed.

external_reference_idstring or null

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

metadatamap of string or null

Caller-owned metadata. Omit this field to leave metadata unchanged. Send an object to merge by key, set a key to null to remove it, or set metadata to null to clear all caller-owned metadata. An empty object makes no change. Values can't be empty strings. Keys starting with flint_ are reserved for Flint, are not returned, and cannot be written through the public API.

namestring

Name of the policy, from 1 to 255 characters.

statusenum

Set `active` to evaluate the policy or `inactive` to stop.

  • active
  • inactive

Response · 200

Successful response.

Same response as Create return policy.

curl -X PATCH https://api.withflintpay.com/v1/return-policies/rpol_01KEZF7C00H8C042BEK6HBRANX \
  -H "Flint-Version: 2026-09-07" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: a-unique-key" \
  -d '{
    "expected_version": 1,
    "name": "Standard returns for online orders"
  }'

Retire return policy#

DELETE/v1/return-policies/{return_policy_id}Idempotent

Requires scope commerce.returns.policies.write

Rate limit: write

Retire a Return policy so it is no longer evaluated and no longer appears as an active choice.

Path parameters

return_policy_idstringRequired

Flint return policy id.

Query parameters

expected_versioninteger

Optional. The policy'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 policy.

curl -X DELETE https://api.withflintpay.com/v1/return-policies/rpol_01KEZF7C00H8C042BEK6HBRANX \
  -H "Flint-Version: 2026-09-07" \
  -H "Authorization: Bearer YOUR_API_KEY"

List return policy revisions#

GET/v1/return-policies/{return_policy_id}/revisions

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 every published revision of a Return policy. Default order: created_at descending, then return_policy_revision_id descending.

Path parameters

return_policy_idstringRequired

Flint return policy id.

Query parameters

page_sizeinteger

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

page_tokenstring

Opaque next_page_token from the previous response. 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 invalid, expired, or mismatched token returns a validation error.

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-policies/rpol_01KEZF7C00H8C042BEK6HBRANX/revisions \
  -H "Flint-Version: 2026-09-07" \
  -H "Authorization: Bearer YOUR_API_KEY"

Successful response.

JSON
{
  "data": [
    {
      "allowed_resolution_types": [
        "refund"
      ],
      "approval_mode": "manual",
      "completion_mode": "manual",
      "created_at": "2026-09-07T00:00:00Z",
      "eligibility_result": "eligible",
      "is_inspection_required": false,
      "is_merchandise_return_required": true,
      "priority": 10,
      "receipt_disposition_mode": "manual",
      "receiving_location_id": "loc_01K1P6G4M7H2N8Q9R3S5T6V7WX",
      "release_timing": "after_receipt",
      "resolution_mode": "manual",
      "return_policy_id": "rpol_01KEZF7C00B0HF98CQ6VHC90WZ",
      "return_policy_revision_id": "rpolv_01KEZF7C00Q7RB5VDPZRGYEQTX",
      "scope": {
        "category_handles": [],
        "channel_types": [],
        "location_ids": [],
        "match_type": "all",
        "product_ids": [],
        "variant_ids": []
      }
    }
  ],
  "meta": {
    "api_version": "2026-09-07"
  },
  "request_id": "req_01KWM6WAHG3N9Q8T2V5XRZ7C4D"
}

Publish return policy revision#

POST/v1/return-policies/{return_policy_id}/revisionsIdempotent

Requires scope commerce.returns.policies.write

Rate limit: write

Publish a new immutable Return policy revision while preserving the stable policy identity. Send the policy's current version as expected_version to reject a concurrent policy edit or publish.

Path parameters

return_policy_idstringRequired

Flint return policy id.

Request body

expected_versionintegerRequired

Required current version of the Return policy. A stale value returns VERSION_CONFLICT. Publishing increments the policy version.

revisionone ofRequired

The revision with the complete rules. A field you leave out doesn't carry over from the previous revision.

Response · 200

Successful response.

Same response as Create return policy.

curl -X POST https://api.withflintpay.com/v1/return-policies/rpol_01KEZF7C00H8C042BEK6HBRANX/revisions \
  -H "Flint-Version: 2026-09-07" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: a-unique-key" \
  -d '{
    "expected_version": 1,
    "revision": {
      "allowed_resolution_types": [
        "refund"
      ],
      "approval_mode": "manual",
      "completion_mode": "manual",
      "eligibility_result": "eligible",
      "is_inspection_required": false,
      "is_merchandise_return_required": true,
      "priority": 10,
      "receipt_disposition_mode": "manual",
      "receiving_location_id": "loc_01K1P6G4M7H2N8Q9R3S5T6V7WX",
      "release_timing": "after_receipt",
      "resolution_mode": "manual",
      "scope": {
        "match_type": "all"
      }
    }
  }'

Get return policy revision#

GET/v1/return-policies/{return_policy_id}/revisions/{return_policy_revision_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 immutable policy revision, including the exact rules a Return was evaluated against.

Path parameters

return_policy_idstringRequired

Flint return policy id.

return_policy_revision_idstringRequired

Flint return policy revision id.

Response · 200

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 https://api.withflintpay.com/v1/return-policies/rpol_01KEZF7C00H8C042BEK6HBRANX/revisions/rpolv_01KEZF7C007AWH6P4QC14Q25TC \
  -H "Flint-Version: 2026-09-07" \
  -H "Authorization: Bearer YOUR_API_KEY"

Successful response.

JSON
{
  "data": {
    "allowed_resolution_types": [
      "refund"
    ],
    "approval_mode": "manual",
    "completion_mode": "manual",
    "created_at": "2026-09-07T00:00:00Z",
    "eligibility_result": "eligible",
    "is_inspection_required": false,
    "is_merchandise_return_required": true,
    "priority": 10,
    "receipt_disposition_mode": "manual",
    "receiving_location_id": "loc_01K1P6G4M7H2N8Q9R3S5T6V7WX",
    "release_timing": "after_receipt",
    "resolution_mode": "manual",
    "return_policy_id": "rpol_01KEZF7C00B0HF98CQ6VHC90WZ",
    "return_policy_revision_id": "rpolv_01KEZF7C00Q7RB5VDPZRGYEQTX",
    "scope": {
      "category_handles": [],
      "channel_types": [],
      "location_ids": [],
      "match_type": "all",
      "product_ids": [],
      "variant_ids": []
    }
  },
  "meta": {
    "api_version": "2026-09-07"
  },
  "request_id": "req_01KWM6WAHG3N9Q8T2V5XRZ7C4D"
}

Was this helpful?