ArgusDocs
English Türkçe

Errors and retries

On this page

How to read an error, see who has to act, and retry a request without running it twice.

A successful request returns 200, or 201 when it creates a new object. A failed request returns a 4xx or 5xx status and a JSON body with an error object.

Handle an error in three steps

  1. Branch on error.type. It tells you who has to act: the customer, you, or nobody yet because a retry is enough. Error types lists each type.
  2. Look up error.code in Error codes. Each row says what to do.
  3. Log error.request_id. Support finds the request with it.

Show the customer a short message of your own. Never show message: it is written for developers and can change.

A minimal handler in Node.js:

const res = await fetch('https://api.pf.organizer.tr/v1/refunds', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.ARGUS_SECRET_KEY}`,
    'Idempotency-Key': 'refund-SIP-2026-10427-1',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({ payment_intent: 'pi_01J9ZQ8C3D5F7H9K2M4P6R8T1V', amount: 2500 }),
});
if (!res.ok) {
  const { error } = await res.json();
  console.error(error.type, error.code, error.request_id);
}

The error object

{
  "error": {
    "type": "card_error",
    "code": "card_declined",
    "decline_code": "insufficient_funds",
    "param": null,
    "message": "The card has insufficient funds.",
    "request_id": "req_01J9ZQ4V8K2M3N5P7R9T1W3Y5F"
  }
}
Field Meaning
type The kind of error. Branch your handling on it.
code A stable reason your code can check. It can be null.
decline_code On a card decline: why the card was declined.
param The request field the error is about, when there is one.
message An explanation for developers. It can change, so do not parse it or show it to customers.
request_id The id of the request. The Request-Id response header has it too. Quote it to support.
payment_intent On a decline during confirmation: the payment as it stands now.

Errors about a field

When a request has a missing or wrong field, the answer is 400 with the code parameter_missing or parameter_invalid. param names the field in bracket notation, for example line_items[0][price_data][unit_amount]. message names the same field in backticks and says what is expected:

{
  "error": {
    "type": "invalid_request_error",
    "code": "parameter_missing",
    "decline_code": null,
    "param": "line_items[0][price_data][unit_amount]",
    "message": "`line_items[0][price_data][unit_amount]` is required when `line_items[0][price_data]` is given.",
    "request_id": "req_01J9ZQ4V8K2M3N5P7R9T1W3Y5F"
  }
}

We report the first problem we find. Fix it and send the request again to see the next one. When an object has a field that the endpoint does not take, param names the object, and the message names that field and lists the fields it takes.

HTTP status codes

Status Meaning
200 Success.
201 Created. The request made a new object.
400 Invalid request. Fix it before sending it again.
401 Missing or invalid API key.
402 The request was valid but could not be completed: the card was declined, fraud screening stopped the payment, or the balance is too low.
403 Not allowed. The cause is the key's scope, the IP address, the website or the state of your account.
404 The object does not exist in your account.
405 The URL does not take this HTTP method.
409 The Idempotency-Key was used for another request, the object's state no longer allows the call, or a conflicting change is pending.
415 The endpoint takes JSON only and the body is not JSON. Card payments always do. Send Content-Type: application/json.
429 Too many requests. Wait for the Retry-After seconds, then retry. See rate limits.
500 An error on our side before anything changed. Retry with the same key.
502 The bank or a service failed, or the outcome is unknown. Read the code: some are safe to retry and some are not.
503 We could not finish the request now. Wait for Retry-After and retry with the same key.

Retries and idempotency says what to do with each 5xx.

Error types

Who acts Types What to do
The customer acts card_error, fraud_error, risk_error Ask for another card or payment method. Show a short message of your own.
You fix it invalid_request_error, authentication_error, permission_error, balance_error Fix the request, the key or the account setting. Do not send the same request again.
Wait and retry api_error, rate_limit_error, idempotency_error Retry with the same Idempotency-Key. See Retries and idempotency below.
The customer acts
Type Meaning
card_error The card was declined or cannot be used. decline_code says why.
fraud_error Fraud screening stopped the payment.
risk_error Risk controls declined a wallet payment.
You fix it
Type Meaning
invalid_request_error The request is malformed or breaks a rule. Fix it before you send it again.
authentication_error The API key is missing, malformed, revoked or of the wrong kind.
permission_error The key or user is not allowed to do this: scope, IP allowlist, product or account state.
balance_error Your available balance does not cover the operation.
Wait and retry
Type Meaning
api_error A problem on our side or at a bank. See Retries and idempotency below.
rate_limit_error Too many requests. Wait, then retry.
idempotency_error The Idempotency-Key was reused with a different body, or the first request is still running.

Card decline codes

On a 402 card_error, decline_code says why the card was declined. Show the customer a short message of your own, such as "Your card was declined. Try another card." Keep the exact reason for your logs and for support.

Most common declines

Decline code What to do
insufficient_funds Ask for another card or a smaller amount.
do_not_honor Ask for another card; the customer can contact their bank.
expired_card Ask the customer to check the expiry date or use another card.
incorrect_cvc Ask the customer to re-enter the security code.
authentication_failed Let the customer try 3D Secure again or use another card.
issuer_unavailable Retry after a few minutes.

All decline codes

Open a group. Each code has its meaning and the action we recommend.

Ask for another card or a smaller amount
Decline code Meaning What to do
insufficient_funds The card has insufficient funds. Ask for another card or a smaller amount.
do_not_honor The card's bank declined without a specific reason. Ask for another card; the customer can contact their bank.
limit_exceeded A limit (amount or count) was exceeded: the card limit at the bank, or a transaction limit of your account (see GET /v1/limits). Ask for another card or a smaller amount.
card_not_supported The card brand or type cannot be accepted. Ask for another card.
restricted_card The card is restricted. Ask for another card.
transaction_not_allowed The card does not allow this kind of transaction (for example online use). Retry with 3D Secure, or ask for another card.
installment_not_supported The card or terminal does not support the requested installment count. Offer a single payment or a count from the installment preview.
Ask the customer to fix the card details
Decline code Meaning What to do
expired_card The card has expired. Ask the customer to check the expiry date or use another card.
incorrect_cvc The CVC is wrong. Ask the customer to re-enter the security code.
invalid_card The card number or data is invalid. Ask the customer to check the card number.
authentication_failed 3D Secure authentication failed or was not completed. Let the customer try 3D Secure again or use another card.
Retry in a few minutes
Decline code Meaning What to do
issuer_unavailable The card's bank could not be reached. Retry after a few minutes.
processing_error The bank had a processing error. Retry after a few minutes.
Do not retry
Decline code Meaning What to do
lost_card The card was reported lost. Do not retry. Show a generic decline message.
stolen_card The card was reported stolen. Do not retry. Show a generic decline message.
fraudulent The card's bank suspects fraud. Do not retry. Ask for another payment method.
blocked Declined by the platform's risk controls (the card, customer or device is blocked). Do not retry.

Error codes

Most common errors

Start here. Every other code is below, grouped by status.

Code HTTP What to do
parameter_invalid 400 Fix the field named in param. The message says what is allowed.
api_key_invalid 401 Copy the key again from the API keys page in the Developers menu. Check for spaces or a cut-off end.
insufficient_scope 403 Add the scope named in the message to the restricted key, or use another key.
ip_not_allowed 403 Add the server's public IP address on the Allowed IP addresses tab of API keys.
website_not_registered 403 Register the website on the Websites & callbacks tab of Business details.
resource_missing 404 Check the id, and that you use a key of the same account and installation.
card_declined 402 Show a short decline message and ask for another card. decline_code tells you more; see the table above.
payment_intent_unexpected_state 400 Read the payment and check its status before you call again.
idempotency_conflict 409 Use a new Idempotency-Key for a different request. Reuse a key only to repeat the same request.
rate_limit 429 Wait for Retry-After, then retry with the same key. Spread out batch jobs.

All error codes

Open a status. Search and #code links open the right group too.

400 Invalid request
Code HTTP Meaning What to do
non_secure_not_allowed 400 3D Secure was set to none but non-secure payments are not allowed for your account or this amount. Send the payment with 3D Secure (leave three_d_secure out or set required).
payment_intent_unexpected_state 400 The payment is not in a state that allows this call (for example capturing a payment that is not requires_capture). Read the payment and check its status before you call again.
parameter_invalid 400 A parameter has an invalid value; param names it. Fix the field named in param. The message says what is allowed.
parameter_missing 400 A required parameter is missing; param names it. Add the field named in param.
amount_exceeds_refundable 400 The refund is larger than amount_refundable of the payment. Refund at most amount_refundable of the payment.
amount_exceeds_items 400 The refund amount is larger than the sum of the amounts of its items. Refund what goes beyond the items (shipping, for example) with a second refund without items. Lower amount, or refund the rest with a second refund without items.
wallet_load_redemption_required 400 The payment loaded money into a wallet by card, so it cannot be refunded with the API. Only the unspent part can go back, to the same card, and your payment institution does that. Do not refund it with the API. Contact your payment institution.
refund_item_unknown 400 items[n][line_item] is not a line item of this payment. Use a line_item id from the payment's line items.
refund_item_duplicate 400 A line item is named more than once in items. Name each line item once and add up its quantity.
refund_item_quantity_exceeds_remaining 400 More units of the line item were requested than are left (refund_summary.quantity_refundable); refunds in flight count. Refund at most refund_summary.quantity_refundable units.
refund_item_amount_exceeds_remaining 400 The item amount is larger than the price of the units or than what is left of the line item (refund_summary.amount_refundable). Lower the item amount to at most refund_summary.amount_refundable.
refund_item_nothing_left 400 Nothing is left of the line item to refund. Leave the line item out of items.
card_data_in_unexpected_field 400 A card number was found outside payment_method_data[card]; the request is refused before anything is stored. Send card details only in payment_method_data.card.
card_data_in_url 400 A card number was found in the URL or query string; never put card data in a URL. Remove the card number from the URL and send it in the JSON body.
card_details_required 400 The card object has no card number. Send the number, expiry and security code; BIN, brand and last four digits are never accepted from the request. Send number, exp_month, exp_year and cvc in the card object.
card_without_confirm 400 Card details were sent with a create call that does not confirm. Send confirm: true with the card, or create the payment without a card and send the card to the confirm call. The card was not stored. Add confirm: true, or create the payment without the card and send the card to the confirm call.
card_invalid_parameters 400 The expiry (exp_month 1-12, four-digit exp_year), the holder name or the type of a card field is invalid. Ask the customer to check the expiry date and the name on the card.
password_too_weak 400 The password does not meet the strength rules. Choose a longer password that is not a common one.
mfa_code_invalid 400 The one-time code is wrong or expired. It is 401 at the sign-in step. Type the current code from the authenticator app.
mfa_code_required 400 Two-factor authentication is on for this user: send the current code from the authenticator app. Send the current code from the authenticator app.
current_password_invalid 400 The current password is not correct. Type the current password again.
evidence_rejected 400 The dispute evidence was refused (closed dispute, too large or wrong type). Check that the dispute is open, and send a PDF, JPEG or PNG within the size limit.
amount_below_minimum 400 The amount is below the minimum allowed. Send a larger amount. The message names the minimum.
currency_not_supported 400 The currency is not enabled for your account. Use try, or ask your payment institution to enable the currency.
return_url_not_allowed 400 return_url is not on a registered website or callback URL (see the authentication guide). Use a return_url on a registered website, or register it as a callback URL.
webhook_url_not_allowed 400 The webhook url is not a registered callback URL. Register the URL as a website or callback URL first.
webhook_url_invalid 400 The webhook url is not an absolute https URL to a public address, or it holds credentials or a fragment. Send a public https URL without user name, password or fragment.
webhook_events_invalid 400 enabled_events is empty, too long or holds an unknown event type. Send one or more event types from the event list, or *.
webhook_endpoint_disabled 400 A test event goes to an enabled endpoint only. Enable the endpoint, then send the test event.
channel_entry_already_registered 400 The website, callback URL or IP is already registered, pending or approved. Nothing to do: the entry is on your list already.
website_url_invalid 400 The website url is not an absolute http(s) URL. Send the full address, for example https://shop.example.
website_url_is_ip_address 400 The website url names an IP address instead of a domain. Register the website by its domain name.
callback_url_invalid 400 The callback url is not an absolute http(s) URL. Send the full address, for example https://shop.example/result.
https_required 400 The url uses http in live mode. Use an https address.
website_verified_manually 400 The website is verified manually: there is no DNS record to check. Wait for your payment institution's review.
ip_address_invalid 400 ip is not an IPv4 or IPv6 address or CIDR block. Send an address such as 203.0.113.7 or a block such as 203.0.113.0/24.
ip_block_too_wide 400 The CIDR block is wider than /8 (IPv4) or /16 (IPv6). Register smaller blocks.
partner_already_listed 400 The person or company is already listed as a partner. Update the existing partner instead.
partner_has_user 400 A team member is linked to the partner. Link the member to an authorization, or remove the member, first.
partner_rejected 400 The partner entry was rejected by review. Link the member to another partner or to an authorization.
partner_email_mismatch 400 The partner entry carries another e-mail address than the team member's. Choose the partner registered with the member's e-mail address.
amount_above_maximum 400 The amount plus the installment surcharge is above the largest amount of a payment. Use a lower amount or fewer installments.
capture_amount_out_of_range 400 amount_to_capture is below 1 or above the authorized amount. Capture between 1 and the authorized amount.
evidence_too_many_files 400 More evidence files than one submission takes. Send fewer files.
evidence_file_too_large 400 An evidence file is larger than the limit. Make the file smaller and send it again.
billing_details_required 400 Billing details are required to confirm: name, address.line1, address.city, address.country. Send billing_details with name, address line, city and country. See Customers.
line_items_required 400 Line items are required for this account. Send line_items with the payment.
line_items_amount_mismatch 400 The sum of the line items is not equal to amount. Make the line items add up to amount.
export_too_large 400 The export would have more rows than can be exported at once; narrow the filters (for example a shorter date range). Narrow the filters, for example a shorter date range.
early_settlement_amount_too_small 400 The amount is below the smallest early settlement of your account, or no whole settlement item fits into it. Ask for a larger amount.
early_settlement_amount_too_large 400 The amount is more than can be brought forward right now (max_amount). Ask for at most max_amount.
idempotency_key_invalid 400 The Idempotency-Key is empty, longer than 255 characters or not valid UTF-8. Send a key of 1 to 255 characters, for example your order number.
invalid_json 400 The body is not valid JSON. Check the body with a JSON validator. A common cause is a trailing comma.
request_too_large 400 The request body is above the size limit. Send a smaller body. For files, use the upload endpoints.
payment_not_wallet 400 A refund code is for a payment made from a wallet; refund a card payment with POST /v1/refunds. Refund a card payment with POST /v1/refunds.
api_version_invalid 400 Argus-Version is not a version this installation knows. The message lists the versions it supports. Send one of the versions in the message, or leave the header out.
tax_id_invalid 400 tax_id is not a valid 11-digit national id number or 10-digit tax number. Check the number. A company has a 10-digit tax number; a person an 11-digit national id.
partial_capture_not_supported 400 The bank does not allow a partial capture, and amount_to_capture is below the authorized amount. Capture the full authorized amount, or cancel the payment.
charge_not_refundable 400 The payment has not been paid, or nothing on it can be refunded. Read the payment and check its status and amount_refundable.
partial_refund_not_supported 400 The payment's bank does not accept a partial refund. Refund the full remaining amount.
recipient_invalid 400 The number is not a Turkish mobile number, the address is not an address, or the provider cannot reach it. Check the recipient and send again.
iban_invalid 400 The IBAN is not a valid Turkish IBAN. Check the IBAN: TR followed by 24 digits.
settlement_account_invalid 400 The settlement account cannot be added: the holder name is empty, or another account is waiting for approval. Send the holder name, or wait until the pending account is decided.
product_inactive 400 A line item names a product that is archived. Make the product active again, or send the item with price_data.
currency_mismatch 400 A line item names a product whose price is in another currency than the payment. Use a product priced in the payment's currency, or send the item with price_data.
merchant_product_invalid 400 The product or one of the answers of the request is not valid. Check the product and the answers against GET /v1/merchant_products.
product_managed_elsewhere 400 Payment by link and open amount are requested at POST /v1/payment_link_settings/requests. Ask for it with POST /v1/payment_link_settings/requests.
401 Missing or invalid key
Code HTTP Meaning What to do
api_key_missing 401 (authentication_error) The request has no API key. Send Authorization: Bearer sk_…. Send Authorization: Bearer sk_… on every request.
api_key_invalid 401 (authentication_error) The API key is not valid. Copy the key again from the API keys page in the Developers menu. Check for spaces or a cut-off end.
api_key_revoked 401 (authentication_error) The API key was revoked. Create a new one in the merchant panel. Create a new key and deploy it.
api_key_mode_mismatch 401 (authentication_error) The key belongs to the other installation: a sandbox key on live, or a live key on the sandbox. Use a sandbox key on the sandbox and a live key on live.
dashboard_session_expired 401 (authentication_error) The merchant panel session has ended. Sign in again.
recovery_code_invalid 401 (authentication_error) The recovery code is not one of the user's unused codes. Use an unused recovery code.
mfa_challenge_invalid 401 (authentication_error) The sign-in step is unknown, expired, used or took too many answers. Sign in again.
invalid_credentials 401 (authentication_error) The e-mail address or the password is wrong. Check the e-mail address and the password, or reset the password.
merchant_inactive 401 (authentication_error) The merchant account was closed or rejected, so nobody can sign in to it. Contact your payment institution.
mfa_not_enrolled 401 (authentication_error) Two-factor authentication is required, and the user has not set it up. Ask an owner of the account to invite the user again, or contact your payment institution.
402 Could not be completed
Code HTTP Meaning What to do
no_eligible_terminal 402 (card_error) No terminal can take this card or payment; nothing was charged. Ask for another card. If it happens for every card, contact your payment institution.
installments_not_available 402 (card_error) No terminal runs the requested installment count for this card, or the count is above the installment limit the platform holds for what is sold (by merchant category or item category). Call the installment preview first. Offer a count from POST /v1/installment_plans/preview, or a single payment.
insufficient_available_balance 402 (balance_error) Available balance is too low (for a refund, payout or similar). Wait for pending money to become available, or top up your balance, then try again.
fraudulent 402 (fraud_error) Fraud screening rejected the payment. Do not retry. Ask the customer for another payment method.
card_declined 402 (card_error) The bank declined the payment, or definitively declined a capture or void; decline_code says why. A declined capture or void leaves the payment unchanged. Show a short decline message and ask for another card. decline_code tells you more; see the table above.
invalid_card 402 (card_error) The card number is invalid (length or check digit); no payment was created. decline_code has the same value. Ask the customer to check the card number.
expired_card 402 (card_error) The card has expired; no payment was created. decline_code has the same value. Ask the customer for another card.
incorrect_cvc 402 (card_error) The security code is malformed; no payment was created. decline_code has the same value. Ask the customer to type the security code again.
purpose_not_allowed 402 (invalid_request_error) Your business category may not take wallet payments. Take the payment by card. Contact your payment institution if you think this is wrong.
payment_method_not_available 402 (invalid_request_error) Your pricing has no price for wallet payments. Take the payment by card, and ask your payment institution to add a wallet price.
payment_declined 402 (risk_error) Risk controls declined the wallet payment. The payment is attached to the error. Do not retry the same payment. Offer the customer another way to pay.
wallet_load_card_not_accepted 402 (card_error) A wallet load takes only a credit card of another bank. Debit, prepaid and unknown cards, the installation's own wallet card and the wallet itself are refused. Ask the customer for a credit card of another bank.
403 Not allowed
Code HTTP Meaning What to do
payouts_frozen 403 Payouts of your account are stopped. Contact your payment institution.
manual_payouts_not_allowed 403 Your account pays out on a schedule; manual payout requests are not enabled. Wait for the next scheduled payout (GET /v1/payout_schedule).
card_data_not_allowed 403 (permission_error) Your account accepts card data only from the customer's browser or app (card entry policy client_only), and this request carried card fields with a secret or restricted key or from a panel session. Nothing was stored or charged. Tokenize with your publishable key and send payment_method. Collect the card in the browser with your publishable key and send the pm_… id. See Collect cards in the browser.
settlement_account_unavailable 403 No approved settlement account is available for this operation. Add an IBAN on the Bank account tab of Payout account and wait for its approval.
merchant_not_active 403 (permission_error) Your merchant account is not active (not yet approved, or suspended), or it is not accepting new payments at the moment; captures, cancellations, refunds and payouts still work in that case. Do not retry. Contact your payment institution.
merchant_setup_incomplete 403 (permission_error) Your account is not fully set up for payments yet: your payment institution has not set the terms your payments are settled with. Nothing was sent to the bank or charged. Do not retry. Contact your payment institution.
payouts_not_configured 403 Payouts are not configured for your account. Contact your payment institution.
ip_not_allowed 403 The request came from an IP address that is not on your allowlist (see the authentication guide). Add the server's public IP address on the Allowed IP addresses tab of API keys.
product_not_enabled 403 The product is not enabled for your account (for example online card payments need the virtual POS product). Request the product in the merchant panel on the My products tab of Business details.
website_not_registered 403 The website is not registered for your account. Register the website on the Websites & callbacks tab of Business details.
user_not_authorized 403 The user is not a company partner and holds no approved authorization for this role. Ask a signing partner to authorize the user for this role.
early_settlement_not_enabled 403 (permission_error) Early settlement is not enabled for your account. Request it in the merchant panel (the My products tab of Business details); the risk team of your payment institution approves it. Request early settlement in the merchant panel on the My products tab of Business details.
early_settlement_unavailable 403 (permission_error) Early settlement is not offered at the moment. Try again later.
early_settlement_payments_stopped 403 (permission_error) New payments of your account are stopped; early settlement is not available meanwhile. Contact your payment institution.
early_settlement_risk_review 403 (permission_error) Your account is under review; early settlement is not available until the review is closed. Wait for the review to close.
api_key_kind_not_allowed 403 (permission_error) This kind of key cannot make this call, for example a publishable key on a server endpoint. Call this endpoint from your server with a secret or restricted key.
insufficient_scope 403 (permission_error) The key does not have the scope this call needs; the message names it. Add the scope named in the message to the restricted key, or use another key.
permission_denied 403 (permission_error) The key is not allowed to do this. Use a secret key, or a restricted key that is allowed to do this.
merchant_not_found 403 (permission_error) Your account is not set up for payments yet. Contact your payment institution. Contact your payment institution.
insufficient_permission 403 (permission_error) The merchant panel role of the signed-in user does not allow this action. Ask an owner or admin of the account to do it, or to change the user's role.
dashboard_session_required 403 (permission_error) This call is made by the merchant panel only; API keys cannot make it. Do it in the merchant panel.
representative_not_allowed 403 (permission_error) The link is not valid for this, or the user is not a business user. Create a new link for a business user.
mfa_required 403 (permission_error) Two-factor authentication is mandatory on this installation and cannot be turned off. Keep two-factor authentication on. To change the app, replace it instead.
cross_site_request_refused 403 (permission_error) A request that uses the refresh cookie did not come from the merchant panel. Send the request from the merchant panel with X-Argus-Panel: 1.
404 Not found
Code HTTP Meaning What to do
resource_missing 404 The object does not exist (or belongs to another merchant). Check the id, and that you use a key of the same account and installation.
token_invalid 404 The token or link is invalid or expired. Ask for a new link or e-mail.
url_invalid 404 No such URL. Check the path. Check the path against the API reference. Every path starts with /v1.
405 Method not allowed
Code HTTP Meaning What to do
method_not_allowed 405 The URL exists but does not take this HTTP method. Use the method shown in the API reference.
409 Conflict
Code HTTP Meaning What to do
idempotency_conflict 409 Same Idempotency-Key with a different request body. Use a new Idempotency-Key for a different request. Reuse a key only to repeat the same request.
idempotency_in_progress 409 The first request with this Idempotency-Key has not finished; retry shortly. Wait for Retry-After, then send the same request with the same key.
resource_already_exists 409 An object with this reference already exists. The message names its id. Retrieve the existing object by the id in the message instead of creating another.
payment_method_in_use 409 A payment that uses this saved card is still in progress; try again when it has finished. Wait until the payment has finished, then try again.
invitation_not_accepted 409 The invitation has not been accepted yet. Wait until the person accepts the invitation, or send it again.
change_pending 409 An earlier change of the same kind still waits for approval. Wait for the earlier change to be approved or rejected.
early_settlement_not_business_day 409 Early settlement is made on business days only. Try again on the next business day.
early_settlement_negative_balance 409 Your available balance is below zero; early settlement is not available until it is covered. Top up your balance, then try again.
early_settlement_nothing_eligible 409 No pending balance can be brought forward right now. Try again when you have pending money.
early_settlement_limit_reached 409 The early settlement limit is used up for now: the share of your pending balance, the amount or number of the day, or the ceiling of the platform. Try again later or ask for a smaller amount.
early_settlement_fee_exceeds_amount 409 The minimum fee and its tax would take the whole amount; ask for a larger early settlement. Ask for a larger amount.
early_settlement_changed 409 What would be done now is not what was quoted (the day, your terms, a payment or a limit changed); nothing was done. Ask for a new quote. Ask for a new quote and accept that one.
early_settlement_already_enabled 409 Early settlement is already enabled for your account. Nothing to do; you can use it now.
early_settlement_already_requested 409 A request for early settlement is already waiting for approval. Wait for the decision on your request.
already_linked 409 This user already has a wallet representative. Nothing to do. Use the existing representative.
invitation_not_pending 409 The member is not invited any more. Read the member. Invite again if you need to.
mfa_not_enabled 409 The user has no two-factor authentication turned on. Nothing to do.
mfa_enrolment_not_started 409 Setting up the authenticator app was not started. Start setting up the authenticator app first, then send its code.
mfa_already_enabled 409 Two-factor authentication is already on, and no new authenticator app is being set up. Nothing to do. To move to a new authenticator app, start the replacement first.
qr_code_disabled 409 The QR code is disabled for good; create a new one. Create a new QR code.
product_already_active 409 The product is already active for your account. Nothing to do.
product_already_requested 409 A request for this product is already waiting for a decision. Wait for the decision, or withdraw the request first.
product_not_offered 409 The product cannot be requested here; contact your payment institution. Contact your payment institution.
product_request_cool_off 409 The last request for this product was rejected; a new one can be sent once the waiting period has passed (requestable_at). Send a new request after requestable_at.
product_request_not_open 409 The product request was already decided or withdrawn. Nothing to do. Read the request to see its decision.
415 Unsupported media type
Code HTTP Meaning What to do
unsupported_media_type 415 The request body is not JSON. Payment writes and every request with card data take Content-Type: application/json only; nothing was read or stored. Send a JSON body with Content-Type: application/json.
429 Too many requests
Code HTTP Meaning What to do
rate_limit 429 (rate_limit_error) Too many requests. Wait for the Retry-After seconds, then retry. Wait for Retry-After, then retry with the same key. Spread out batch jobs.
invitation_resend_limit 429 (rate_limit_error) 5 invitation e-mails were already sent to this member in 24 hours. Try again after 24 hours.
too_many_attempts 429 (rate_limit_error) Too many failed sign-ins: the e-mail address or the IP address is locked for a while. Wait a few minutes, then sign in again.
502 Bank or service failed
Code HTTP Meaning What to do
request_outcome_unknown 502 (api_error) The request started but did not finish, so we cannot tell whether it was carried out. The idempotency key keeps this answer for 24 hours: a retry with the same key gets the same 502 and never runs the request again. Read the object, or list by your reference in metadata. Send it again with a new key only when you know nothing was done.
capture_failed 502 (api_error) The bank could not capture the payment; the payment is unchanged. Try the capture again with a new Idempotency-Key.
void_failed 502 (api_error) The bank could not void the authorization; the payment is unchanged. Try the cancellation again with a new Idempotency-Key.
event_service_error 502 (api_error) The webhook event service returned an error. Retry shortly. Retry after a short pause.
event_service_unavailable 502 (api_error) The webhook event service could not be reached; nothing was done. Retry shortly. Retry after a short pause.
event_service_outcome_unknown 502 (api_error) The event service did not answer a change, so it may have been carried out. Read the object before you repeat it. Read the object, then repeat the change only if it was not made.
503 Unavailable
Code HTTP Meaning What to do
service_unavailable 503 (api_error) Something the request needs was busy or out of reach, or new payments or payouts are paused for a short time. Nothing was done. Wait for Retry-After, then send the same request with the same Idempotency-Key.
capture_outcome_unknown 503 (api_error) The bank's answer to the capture was unclear; we are asking the bank for the result. Send the same request later with the same Idempotency-Key, or wait for payment_intent.succeeded.
card_vault_unavailable 503 The card vault is temporarily unavailable; retry with the same Idempotency-Key. Retry after a short pause with the same Idempotency-Key.
card_tokenization_unavailable 503 (api_error) This installation cannot take raw card data; nothing was done. Retry with the same Idempotency-Key. Retry after a short pause with the same Idempotency-Key. If it persists, collect the card in the browser.
risk_check_unavailable 503 (api_error) The fraud check could not run; nothing was charged. Send the same request again with the same Idempotency-Key.
wallet_refund_code_unavailable 503 (api_error) Wallet refund codes are not available now: the installation makes no TR Karekod, or wallet payments are stopped. Refund the payment later, or contact your payment institution.
capture_booking_pending 503 (api_error) The bank confirmed the capture and booking it is still pending. Send the same request again, or wait: it completes by itself. Send the same request again with the same key, or wait for payment_intent.succeeded.
evidence_store_unavailable 503 (api_error) Evidence files cannot be stored right now. Retry shortly. Retry after a short pause.
channel_closed 503 (invalid_request_error) Wallet payments are not offered now, or they are paused. Offer another way to pay, and try again later.
qr_code_unavailable 503 (invalid_request_error) QR code stickers are not available now: the installation makes no TR Karekod, or wallet payments are stopped. Try again later, or contact your payment institution.

Card entry policy

Your account has a card entry policy. It decides who may send a card number to the API. The payment institution sets it.

Policy Who may send card fields
server_and_client (default) Your server with a secret or restricted key, in payment_method_data[card], and your checkout with the publishable key on POST /v1/payment_methods.
client_only Only the customer's browser or app, with the publishable key on POST /v1/payment_methods. Your server pays with the returned pm_… id.

With client_only, we refuse every request that carries card[number] or card[cvc] and comes with a secret key, a restricted key or a merchant panel session. This holds on every endpoint, for JSON and form bodies:

{
  "error": {
    "type": "permission_error",
    "code": "card_data_not_allowed",
    "decline_code": null,
    "param": null,
    "message": "This merchant account does not accept card data sent from a server. Collect the card in the customer's browser or app with your publishable key (POST /v1/payment_methods) and send the returned payment method id in payment_method.",
    "request_id": "req_01J9ZQ4V8K2M3N5P7R9T1W3Y5F"
  }
}

Retries and idempotency

After a network error or a timeout, you cannot tell whether a request ran. Send every POST with an Idempotency-Key header, and you can repeat it safely. We run the request at most once. Every repeat gets the original response, with the header Idempotent-Replayed: true.

A secret that is shown only once is not kept with the stored response. This covers the signing secret of a webhook endpoint, the return signing secret and a new API key. A repeat of such a request returns the object without the secret and with the header Idempotent-Replayed-Without-Secret: true. The object was still created only once. To get a new secret, roll it, or revoke the key and create another one.

curl -X POST https://api.pf.organizer.tr/v1/refunds \
  -H "Authorization: Bearer sk_sandbox_YOUR_KEY" \
  -H "Idempotency-Key: refund-SIP-2026-10427-1" \
  -H "Content-Type: application/json" \
  -d '{"payment_intent": "pi_01J9ZQ8C3D5F7H9K2M4P6R8T1V", "amount": 2500}'

A key keeps the response of every request that ran, whether it succeeded or failed. A retry with the same key gets that response again and runs nothing.

Some responses mean that nothing ran, or not yet. They free the key, so a retry with the same key runs the request:

The table says what to do after each kind of failure. Rows that keep the same key come first.

What happened What to do
Timeout or connection error Retry with the same key.
429 Wait for Retry-After, then retry with the same key.
500 An error on our side, before anything changed. It is never kept under the key. A change that had already started gets 502 request_outcome_unknown instead. Retry with the same key after a short pause.
503 service_unavailable Nothing was done. Something the request needs was busy, or new payments or payouts are paused for a short time. The answer is not stored: wait for Retry-After, then retry with the same key. A pause does not stop payments in progress, captures, cancellations or refunds.
503 card_vault_unavailable, 503 risk_check_unavailable, 503 card_tokenization_unavailable A service the request needs was not available, and nothing was done. The answer is not stored: retry with the same key after a short pause.
503 capture_outcome_unknown, 503 capture_booking_pending We are still confirming the capture with the bank, or still recording it. Retry later with the same key.
409 idempotency_in_progress The first request with this key may still be running. Retry with the same key after Retry-After. If that request ended without an answer, the repeat gets 502 request_outcome_unknown within a few minutes instead.
402 card decline with incorrect_cvc, expired_card or invalid_card The customer mistyped the card. The answer is not stored. Let the customer enter the card again and send the corrected request. You may use the same key.
415 unsupported_media_type, 400 card_without_confirm The request was refused before anything was read or stored. Send it as JSON, with confirm: true when it carries a card. You may use the same key.
502 request_outcome_unknown The request started but could not be completed, so we cannot tell whether it was carried out. The key keeps this answer for the rest of its 24 hours. A retry with the same key gets the same 502 and never runs the request again. Read the object, or list by your own reference in metadata. Send the request with a new key only when you know nothing was done.
502 capture_failed, 502 void_failed A technical failure at the bank. The payment is unchanged. The answer is stored under the key, so retry with a new key.
Any other 402 card decline Do not retry with the same card. Ask for another card and use a new key.
Any other 400, 403 or 404 Fix the request, then send it with a new key.
403 merchant_not_active on a new payment Your account is not active, or it does not accept new payments at the moment. The message says which. Retrying does not help: contact your payment institution. If only new payments are stopped, captures, cancellations, refunds and payouts keep working.
403 merchant_setup_incomplete on a new payment Your account is not fully set up for payments yet: your payment institution has not set the terms your payments are settled with. Nothing was sent to the bank or charged. Retrying does not help: contact your payment institution.

If you are not sure whether a payment was created, look it up by your reference before you create a new one: GET /v1/payment_intents?metadata[order_id]=SIP-2026-10423.

Next: Stay under the Rate limits, and read long lists with Lists, filters and search.