Skip to content

Record a merchant decision for underpaid, overpaid, late or review states

POST
/v1/payment-intents/{payment_intent_id}/resolve
curl --request POST \
--url https://api.feitpay.com/v1/payment-intents/example/resolve \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "resolution": "accepted", "note": "example" }'

Allowed resolutions depend on the current state (underpaid, overpaid, late_payment, manual_review) and require a note of at least 10 characters. Chain evidence and earlier events are preserved.

payment_intent_id
required
string
FeitPay-Organization
string

Active organization for dashboard sessions. Ignored for API keys (the key determines the organization).

Media typeapplication/json
object
resolution
required
string
Allowed values: accepted accepted_partial accepted_overpayment refunded_offchain rejected
note
required
string
>= 10 characters <= 2000 characters

Resolved. Original chain evidence is preserved.

Media typeapplication/json
object
id
required
string
object
required
string
Allowed value: payment_intent
livemode
required
boolean
organization_id
required
string
store_id
required
string
status
required
string
Allowed values: created awaiting_payment detected confirming confirmed underpaid overpaid expired late_payment reorged manual_review resolved failed canceled
status_reason
required
One of:

Machine-readable reason recorded with a payment intent state change (status_reason, state-event and timeline reason, webhook data.status_reason). created and quote_refreshed appear in state events; additional_payment_after_settlement only in payment.review_required event data for a transfer that arrived after the intent was settled; inconsistent_evidence marks evidence that supports no allowed transition (the state is held and operators are alerted). processor_* reasons mirror the invoice status of intents processed through FeitPay’s payment processor.

string
Allowed values: created quote_locked quote_refreshed transfer_seen_in_mempool waiting_for_confirmations required_confirmations_reached received_less_than_quoted received_more_than_quoted payment_after_quote_expiry late_top_up_after_partial_payment expired_without_payment block_reorganized reorg_unresolved transaction_dropped transaction_dropped_after_inclusion payment_does_not_match_active_quote inconsistent_evidence canceled_by_merchant resolved_with_recorded_reason sandbox_forced_quote_expiry additional_payment_after_settlement processor_pending processor_paid_unconfirmed processor_paid_partial processor_confirmed processor_complete processor_paid_over processor_expired processor_expired_partial processor_invalid processor_failed_confirm processor_refunded processor_unknown_status
amount
required

Decimal string. Never a float.

string
/^(0|[1-9][0-9]*)(\.[0-9]+)?$/
currency
required
string
allowed_methods
required
Array<string>
Allowed values: crypto pix
allowed_networks
required
Array<string>
merchant_order_id
required
string | null
description
required
string | null
customer
required
object
email
required
string | null
reference
required
string | null
metadata
required
object
<= 20 properties
key
additional properties
string
<= 500 characters
return_url
required
string | null
cancel_url
required
string | null
checkout_session_id
required
string | null
checkout_url
required
string | null
source
required
string
Allowed values: api dashboard invoice payment_link demo
invoice_id
required
string | null
payment_link_id
required
string | null
expires_at
required
string format: date-time
created_at
required
string format: date-time
updated_at
required
string format: date-time
detected_at
required
string | null format: date-time
confirmed_at
required
string | null format: date-time
quote
required
One of:
object
id
required
string
object
required
string
Allowed value: quote
network_id
required
string
asset_id
required
string
asset_symbol
required
string
decimals
required
integer
fiat_amount
required

Decimal string. Never a float.

string
/^(0|[1-9][0-9]*)(\.[0-9]+)?$/
fiat_currency
required
string
asset_amount
required

Decimal string. Never a float.

string
/^(0|[1-9][0-9]*)(\.[0-9]+)?$/
asset_amount_base_units
required

Integer amount in the asset’s smallest unit.

string
/^[0-9]+$/
rate
required

Fiat major units per one whole asset unit.

string
rate_source
required
string
rate_source_version
required
string
secondary_source
required
string | null
deviation_bps
required
integer | null
sandbox_rate
required

True when the rate is a labelled illustrative value, not market data.

boolean
spread_bps
required
integer
rounding_policy
required
string
Allowed value: ceil_to_asset_base_unit
required_confirmations
required
integer
status
required
string
Allowed values: active superseded expired
locked_at
required
string format: date-time
expires_at
required
string format: date-time
network_fee_paid_by
required
string
Allowed value: customer
platform_fee_billed_separately
required
boolean
payment_instructions
required
One of:
object
network_id
required
string
asset_id
required
string
address
required
string
amount
required

Decimal string. Never a float.

string
/^(0|[1-9][0-9]*)(\.[0-9]+)?$/
amount_base_units
required

Integer amount in the asset’s smallest unit.

string
/^[0-9]+$/
payment_uri
required

BIP21 / EIP-681 style URI for wallet apps and QR codes.

string
contract_address
required
string | null
memo_required
required
boolean
totals
required
One of:
object
asset_id
required
string
decimals
required
integer
expected
required

Decimal string. Never a float.

string
/^(0|[1-9][0-9]*)(\.[0-9]+)?$/
expected_base_units
required

Integer amount in the asset’s smallest unit.

string
/^[0-9]+$/
received
required

Decimal string. Never a float.

string
/^(0|[1-9][0-9]*)(\.[0-9]+)?$/
received_base_units
required

Integer amount in the asset’s smallest unit.

string
/^[0-9]+$/
confirmed
required

Decimal string. Never a float.

string
/^(0|[1-9][0-9]*)(\.[0-9]+)?$/
confirmed_base_units
required

Integer amount in the asset’s smallest unit.

string
/^[0-9]+$/
remaining
required

Decimal string. Never a float.

string
/^(0|[1-9][0-9]*)(\.[0-9]+)?$/
remaining_base_units
required

Integer amount in the asset’s smallest unit.

string
/^[0-9]+$/
required_confirmations
required
integer | null
resolution
required
One of:
object
kind
required
string
Allowed values: accepted accepted_partial accepted_overpayment refunded_offchain rejected
note
required
string
actor_type
required
string
actor_id
required
string | null
resolved_at
required
string format: date-time
fulfillable
required

True only when the expected amount is final on-chain (confirmed / overpaid, or resolved as accepted).

boolean
processor
required
One of:

Present when the intent is processed through FeitPay’s payment processor: custodial, the customer pays platform wallets and the funds are owed to the merchant (see /v1/balances).

object
name
required
string
Allowed values: feitpay
custodial
required
boolean
status
required

Processor invoice status: not_started until the checkout opens the invoice, then pending, paid, confirmed, complete, expired, invalid or refunded.

string
exception_status
required

None, paid_partial, paid_over or failed_confirm.

string
processor_invoice_id
required
string | null
expires_at
required
string | null format: date-time
paid_asset
required
string | null
sent_amount
required
string | null
tx_hashes
required
Array<string>
credited
required

The received funds were credited to the merchant balance.

boolean
credit_status

What happens to the funds this invoice received. none: nothing received yet. confirming: received and being confirmed on the blockchain; added to the merchant balance automatically (an invoice that is still open is credited when it completes; a partial or late payment once its transactions are confirmed). verifying: received and verified before it is added (not automatic for this payment). credited: in the balance. Always present on merchant responses.

string
Allowed values: none confirming verifying credited
methods
required
Array<object>
object
asset
required

Asset key: coin symbol, plus the chain for tokens (btc, usdt-eth).

string
symbol
required
string
chain
required
string
name
required
string
amount
required

Exact decimal amount to send in this asset.

string
rate
required

Exchange rate the payment processor used (invoice currency per unit of the asset).

string
address
required
string
payment_url
required

Wallet URI (BIP21 / EIP-681 style) for QR codes.

string
divisibility
required
integer
contract
required
string | null
extra_id

Memo / destination tag the payment must carry (XRP, TON, …). Present only on such networks: a payment sent without it cannot be attributed.

string
pix_copy_paste

Present only on a PIX payment (asset: brl, chain: pix): the PIX “copia e cola” payload a banking app pays, pasted or scanned as a QR code. The amount is fixed by the charge; address and payment_url are empty.

string
fee

PIX payments only, once credited: the FeitPay PIX fee deducted from the payment when it was credited (BRL, exact decimal). The balance received the payment amount minus this fee. Absent otherwise.

string
asset_choice

Checkout sessions only, before the invoice is opened: the customer chooses the coin first (options) and the checkout opens the invoice for it. Absent when no choice is needed.

boolean
options
Array<object>

A coin the customer can choose before the payment address is created, or PIX (asset: pix, on payments in BRL that accept PIX), which opens a PIX charge instead.

object
asset
required
string
symbol
required
string
chain
required
string
name
required
string
minimum_amount
required

Smallest payment this coin accepts, in the payment’s currency; null when unknown.

string | null
/^(0|[1-9][0-9]*)(\.[0-9]+)?$/
available
required
boolean
unavailable_reason
required
string | null
Allowed values: below_minimum temporarily_unavailable
memo
required

Payments on this network carry a memo / destination tag the customer must include.

boolean
coin_name

Display name of the coin itself, without the network (“Tether”, “Bitcoin”).

string
network_name

Display name of the network the coin moves on (“TRON”, “BNB Smart Chain”, “Ethereum”).

string
popular

Rank among the best-known coins for pickers (1 first: USDT on every network, TRON, Ethereum and BNB Smart Chain first, then ETH, USDC, SOL, BNB, XRP, LTC, DOGE, TRX, TON, BCH). Null for every other coin.

integer | null
>= 1
order

Position of the coin in FeitPay’s display order for lists and pickers (1 first). The best-known coins come first (popular), then the others alphabetically; coins with a higher minimum payment are listed after them. Clients sort by it when present.

integer
>= 1

Example

{
"object": "payment_intent",
"status": "created",
"status_reason": "created",
"amount": "59.90",
"allowed_methods": [
"crypto"
],
"source": "api",
"quote": {
"object": "quote",
"fiat_amount": "59.90",
"asset_amount": "59.90",
"asset_amount_base_units": "99834",
"rounding_policy": "ceil_to_asset_base_unit",
"status": "active",
"network_fee_paid_by": "customer",
"platform_fee_billed_separately": true
},
"payment_instructions": {
"amount": "59.90",
"amount_base_units": "99834"
},
"totals": {
"expected": "59.90",
"expected_base_units": "99834",
"received": "59.90",
"received_base_units": "99834",
"confirmed": "59.90",
"confirmed_base_units": "99834",
"remaining": "59.90",
"remaining_base_units": "99834"
},
"resolution": {
"kind": "accepted"
},
"processor": {
"name": "feitpay",
"credit_status": "none",
"asset_choice": true,
"options": [
{
"unavailable_reason": "below_minimum",
"coin_name": "Tether",
"network_name": "TRON"
}
]
}
}

Missing or invalid credentials.

Media typeapplication/json
object
error
required
object
type
required
string
Allowed values: invalid_request_error authentication_error permission_error not_found_error conflict_error idempotency_error rate_limit_error feature_unavailable_error api_error
code
required

Stable machine-readable reason. Known values are listed in ErrorCode; clients localize by code and show message (English) only for a code they do not know. New codes may be added at any time.

string
message
required

Human-readable explanation in English.

string
param
string
request_id
required
string

Example

{
"error": {
"type": "invalid_request_error"
}
}

Authenticated but not permitted. Any route may also answer request_blocked when abuse protection has blocked the client IP for a while.

Media typeapplication/json
object
error
required
object
type
required
string
Allowed values: invalid_request_error authentication_error permission_error not_found_error conflict_error idempotency_error rate_limit_error feature_unavailable_error api_error
code
required

Stable machine-readable reason. Known values are listed in ErrorCode; clients localize by code and show message (English) only for a code they do not know. New codes may be added at any time.

string
message
required

Human-readable explanation in English.

string
param
string
request_id
required
string

Example

{
"error": {
"type": "invalid_request_error"
}
}

Resource not found (or not visible to this tenant).

Media typeapplication/json
object
error
required
object
type
required
string
Allowed values: invalid_request_error authentication_error permission_error not_found_error conflict_error idempotency_error rate_limit_error feature_unavailable_error api_error
code
required

Stable machine-readable reason. Known values are listed in ErrorCode; clients localize by code and show message (English) only for a code they do not know. New codes may be added at any time.

string
message
required

Human-readable explanation in English.

string
param
string
request_id
required
string

Example

{
"error": {
"type": "invalid_request_error"
}
}

State conflict.

Media typeapplication/json
object
error
required
object
type
required
string
Allowed values: invalid_request_error authentication_error permission_error not_found_error conflict_error idempotency_error rate_limit_error feature_unavailable_error api_error
code
required

Stable machine-readable reason. Known values are listed in ErrorCode; clients localize by code and show message (English) only for a code they do not know. New codes may be added at any time.

string
message
required

Human-readable explanation in English.

string
param
string
request_id
required
string

Example

{
"error": {
"type": "invalid_request_error"
}
}

Validation failed.

Media typeapplication/json
object
error
required
object
type
required
string
Allowed values: invalid_request_error authentication_error permission_error not_found_error conflict_error idempotency_error rate_limit_error feature_unavailable_error api_error
code
required

Stable machine-readable reason. Known values are listed in ErrorCode; clients localize by code and show message (English) only for a code they do not know. New codes may be added at any time.

string
message
required

Human-readable explanation in English.

string
param
string
request_id
required
string

Example

{
"error": {
"type": "invalid_request_error"
}
}

Too many requests. See Retry-After.

Media typeapplication/json
object
error
required
object
type
required
string
Allowed values: invalid_request_error authentication_error permission_error not_found_error conflict_error idempotency_error rate_limit_error feature_unavailable_error api_error
code
required

Stable machine-readable reason. Known values are listed in ErrorCode; clients localize by code and show message (English) only for a code they do not know. New codes may be added at any time.

string
message
required

Human-readable explanation in English.

string
param
string
request_id
required
string

Example

{
"error": {
"type": "invalid_request_error"
}
}
Retry-After
integer