# Errors

> Every error code the TapPay API returns, with its cause and how to fix it.

Source: https://docs.tappay.mn/errors/

## Error format {#error-format}

When a request fails, TapPay returns a non-2xx HTTP status and a JSON body. The body has `success` set to `false` and an `error` object.

```json
{
  "success": false,
  "error": {
    "code": "VAL-001",
    "message": "The request failed validation.",
    "messageKey": "validation.failed",
    "details": { "field": "amount", "rule": "number" },
    "traceId": "trace-id",
    "docUrl": "https://docs.tappay.mn/errors#VAL-001"
  }
}
```

Branch your code on the `code` field, not on `message`. Quote the `traceId` when you contact TapPay support. `docUrl` links to the code's entry on this page. It is present only for codes in the catalog.

For validation errors, `details.field` names the field that failed and `details.rule` names the rule it broke (`number`, `required`, `min`, `max`, `length`, `enum`, `format`, or `invalid`).

## Find an error {#find-an-error}

A code has the form `XXX-NNN`. The first two digits name the area, and each area below lists its codes. Every code shows its HTTP status, a cause and a fix.

## Validation {#validation}

### VAL-001 {#VAL-001}

HTTP status: `400` · The request failed validation.

**Cause** The request body or query failed validation. A field has the wrong type, format or value.

**Fix** Read the error details to find the field. Correct its value and send the request again.

**See** [/concepts/versioning](https://docs.tappay.mn/concepts/versioning.md)

Returned by: [`integration.billingPlans.list`](https://docs.tappay.mn/reference/billing-plans/list.md), [`integration.checkout.createSession`](https://docs.tappay.mn/reference/checkout-sessions/create.md), [`integration.checkout.listSessions`](https://docs.tappay.mn/reference/checkout-sessions/list.md), [`integration.connect.token`](https://docs.tappay.mn/reference/connect/token.md), [`integration.cpm.create`](https://docs.tappay.mn/reference/cpm/create.md), [`integration.customers.list`](https://docs.tappay.mn/reference/customers/list.md), [`integration.customers.listPaymentMethods`](https://docs.tappay.mn/reference/customers/list-payment-methods.md), [`integration.disputes.list`](https://docs.tappay.mn/reference/disputes/list.md), [`integration.oauth.token`](https://docs.tappay.mn/reference/oauth/token.md), [`integration.payerLinks.listByCustomer`](https://docs.tappay.mn/reference/payer-links/list-by-customer.md) +33 more

### VAL-002 {#VAL-002}

HTTP status: `400` · A required field or header is missing.

**Cause** A field or header that the operation requires was not sent.

**Fix** Add the missing field or header named in the error details. Send the request again.

**See** [/get-started](https://docs.tappay.mn/get-started.md)

Returned by: [`integration.apps.exchangeInstallCode`](https://docs.tappay.mn/reference/apps/exchange-install-code.md), [`integration.billingPlans.archive`](https://docs.tappay.mn/reference/billing-plans/archive.md), [`integration.billingPlans.create`](https://docs.tappay.mn/reference/billing-plans/create.md), [`integration.catalog.optOut`](https://docs.tappay.mn/reference/catalog/opt-out.md), [`integration.catalog.pause`](https://docs.tappay.mn/reference/catalog/pause.md), [`integration.catalog.resume`](https://docs.tappay.mn/reference/catalog/resume.md), [`integration.checkout.createSession`](https://docs.tappay.mn/reference/checkout-sessions/create.md), [`integration.commerce.accept`](https://docs.tappay.mn/reference/orders/accept.md), [`integration.commerce.cancel`](https://docs.tappay.mn/reference/orders/cancel.md), [`integration.commerce.complete`](https://docs.tappay.mn/reference/orders/complete.md) +62 more

### VAL-005 {#VAL-005}

HTTP status: `400` · A date value is not valid.

**Cause** A date value is not a valid date, or a date range is longer than the operation allows.

**Fix** Send dates in ISO 8601 format. Make sure the end date is not before the start date and the range is within the limit.

Returned by: [`integration.checkout.createSession`](https://docs.tappay.mn/reference/checkout-sessions/create.md), [`integration.cpm.create`](https://docs.tappay.mn/reference/cpm/create.md), [`integration.v1.createPayment`](https://docs.tappay.mn/reference/payments/create.md), [`integration.v1.listEvents`](https://docs.tappay.mn/reference/events/list.md)

### VAL-009 {#VAL-009}

HTTP status: `400` · A string value is longer than the allowed maximum.

**Cause** A text value is longer than the maximum length for that field.

**Fix** Shorten the value to the limit shown in the reference. Send the request again.

Returned by: [`integration.cpm.create`](https://docs.tappay.mn/reference/cpm/create.md), [`integration.v1.createPayment`](https://docs.tappay.mn/reference/payments/create.md), [`integration.v1.createWebhookEndpoint`](https://docs.tappay.mn/reference/webhook-endpoints/create.md), [`integration.v1.updateWebhookEndpoint`](https://docs.tappay.mn/reference/webhook-endpoints/update.md)

### VAL-010 {#VAL-010}

HTTP status: `409` · This Idempotency-Key was already used with a different request body.

**Cause** You reused an Idempotency-Key with a request body that differs from the first request.

**Fix** Send the same body when you retry a request. Use a new Idempotency-Key for a different request.

**See** [/concepts/idempotency](https://docs.tappay.mn/concepts/idempotency.md)

Returned by: [`integration.apps.exchangeInstallCode`](https://docs.tappay.mn/reference/apps/exchange-install-code.md), [`integration.billingPlans.archive`](https://docs.tappay.mn/reference/billing-plans/archive.md), [`integration.billingPlans.create`](https://docs.tappay.mn/reference/billing-plans/create.md), [`integration.catalog.optOut`](https://docs.tappay.mn/reference/catalog/opt-out.md), [`integration.catalog.pause`](https://docs.tappay.mn/reference/catalog/pause.md), [`integration.catalog.resume`](https://docs.tappay.mn/reference/catalog/resume.md), [`integration.checkout.createSession`](https://docs.tappay.mn/reference/checkout-sessions/create.md), [`integration.commerce.accept`](https://docs.tappay.mn/reference/orders/accept.md), [`integration.commerce.cancel`](https://docs.tappay.mn/reference/orders/cancel.md), [`integration.commerce.complete`](https://docs.tappay.mn/reference/orders/complete.md) +62 more

### VAL-013 {#VAL-013}

HTTP status: `409` · A request with this Idempotency-Key is still being processed.

**Cause** The first request with this Idempotency-Key is still being processed.

**Fix** Wait a few seconds. Retry with the same Idempotency-Key and read the result of the first request.

**See** [/concepts/idempotency](https://docs.tappay.mn/concepts/idempotency.md)

Returned by: [`integration.apps.exchangeInstallCode`](https://docs.tappay.mn/reference/apps/exchange-install-code.md), [`integration.billingPlans.archive`](https://docs.tappay.mn/reference/billing-plans/archive.md), [`integration.billingPlans.create`](https://docs.tappay.mn/reference/billing-plans/create.md), [`integration.catalog.optOut`](https://docs.tappay.mn/reference/catalog/opt-out.md), [`integration.catalog.pause`](https://docs.tappay.mn/reference/catalog/pause.md), [`integration.catalog.resume`](https://docs.tappay.mn/reference/catalog/resume.md), [`integration.checkout.createSession`](https://docs.tappay.mn/reference/checkout-sessions/create.md), [`integration.commerce.accept`](https://docs.tappay.mn/reference/orders/accept.md), [`integration.commerce.cancel`](https://docs.tappay.mn/reference/orders/cancel.md), [`integration.commerce.complete`](https://docs.tappay.mn/reference/orders/complete.md) +62 more

### VAL-014 {#VAL-014}

HTTP status: `400` · The TapPay-Version header is not a known API version.

**Cause** The TapPay-Version header names a version that TapPay does not know.

**Fix** Send a version listed on the versioning page. Omit the header to use the first version, 2026-09-27.

**See** [/concepts/versioning](https://docs.tappay.mn/concepts/versioning.md)

Returned by: [`integration.apps.exchangeInstallCode`](https://docs.tappay.mn/reference/apps/exchange-install-code.md), [`integration.apps.revokeGrant`](https://docs.tappay.mn/reference/apps/revoke-grant.md), [`integration.billingPlans.archive`](https://docs.tappay.mn/reference/billing-plans/archive.md), [`integration.billingPlans.create`](https://docs.tappay.mn/reference/billing-plans/create.md), [`integration.billingPlans.get`](https://docs.tappay.mn/reference/billing-plans/get.md), [`integration.billingPlans.list`](https://docs.tappay.mn/reference/billing-plans/list.md), [`integration.billingPlans.update`](https://docs.tappay.mn/reference/billing-plans/update.md), [`integration.catalog.get`](https://docs.tappay.mn/reference/catalog/get.md), [`integration.catalog.optIn`](https://docs.tappay.mn/reference/catalog/opt-in.md), [`integration.catalog.optOut`](https://docs.tappay.mn/reference/catalog/opt-out.md) +122 more

## Authentication {#auth}

### AUTH-001 {#AUTH-001}

HTTP status: `401` · The API key is missing, invalid or revoked.

**Cause** The request carries no API key, or the key is unknown to this environment.

**Fix** Send the secret key in the Authorization header as a Bearer token. Use a sandbox key against the sandbox and a production key against production.

**See** [/get-started](https://docs.tappay.mn/get-started.md)

Returned by: [`integration.apps.exchangeInstallCode`](https://docs.tappay.mn/reference/apps/exchange-install-code.md), [`integration.apps.revokeGrant`](https://docs.tappay.mn/reference/apps/revoke-grant.md), [`integration.billingPlans.archive`](https://docs.tappay.mn/reference/billing-plans/archive.md), [`integration.billingPlans.create`](https://docs.tappay.mn/reference/billing-plans/create.md), [`integration.billingPlans.get`](https://docs.tappay.mn/reference/billing-plans/get.md), [`integration.billingPlans.list`](https://docs.tappay.mn/reference/billing-plans/list.md), [`integration.billingPlans.update`](https://docs.tappay.mn/reference/billing-plans/update.md), [`integration.catalog.get`](https://docs.tappay.mn/reference/catalog/get.md), [`integration.catalog.optIn`](https://docs.tappay.mn/reference/catalog/opt-in.md), [`integration.catalog.optOut`](https://docs.tappay.mn/reference/catalog/opt-out.md) +122 more

### AUTH-018 {#AUTH-018}

HTTP status: `403` · The request came from an IP address that is not on the key's allowlist.

**Cause** The request came from an IP address that is not on the allowlist of the key.

**Fix** Send the request from an allowed server. Or add the server IP address to the key allowlist in the portal.

Returned by: [`integration.apps.exchangeInstallCode`](https://docs.tappay.mn/reference/apps/exchange-install-code.md), [`integration.apps.revokeGrant`](https://docs.tappay.mn/reference/apps/revoke-grant.md), [`integration.billingPlans.archive`](https://docs.tappay.mn/reference/billing-plans/archive.md), [`integration.billingPlans.create`](https://docs.tappay.mn/reference/billing-plans/create.md), [`integration.billingPlans.get`](https://docs.tappay.mn/reference/billing-plans/get.md), [`integration.billingPlans.list`](https://docs.tappay.mn/reference/billing-plans/list.md), [`integration.billingPlans.update`](https://docs.tappay.mn/reference/billing-plans/update.md), [`integration.catalog.get`](https://docs.tappay.mn/reference/catalog/get.md), [`integration.catalog.optIn`](https://docs.tappay.mn/reference/catalog/opt-in.md), [`integration.catalog.optOut`](https://docs.tappay.mn/reference/catalog/opt-out.md) +118 more

### AUTH-055 {#AUTH-055}

HTTP status: `403` · The caller's scope does not allow this operation.

**Cause** The POS client is not allowed to call this operation.

**Fix** Use the POS client that was issued for this operation. Ask TapPay support to check the scope of the client.

**See** [/guides/pos-terminal](https://docs.tappay.mn/guides/pos-terminal.md)

Returned by: [`pos.bankTerminals.list`](https://docs.tappay.mn/reference/pos/bank-terminals/list.md), [`pos.bankTerminals.sync`](https://docs.tappay.mn/reference/pos/bank-terminals/sync.md), [`pos.payments.cpm`](https://docs.tappay.mn/reference/pos/payments/cpm.md), [`pos.payments.get`](https://docs.tappay.mn/reference/pos/payments/get.md), [`pos.payments.qr`](https://docs.tappay.mn/reference/pos/payments/qr.md), [`pos.payments.refund`](https://docs.tappay.mn/reference/pos/payments/refund.md), [`pos.payments.updateAmount`](https://docs.tappay.mn/reference/pos/payments/update-amount.md), [`pos.sandbox.createTerminalRequest`](https://docs.tappay.mn/reference/pos/sandbox/create-terminal-request.md), [`pos.sandbox.simulate`](https://docs.tappay.mn/reference/pos/sandbox/simulate.md), [`pos.sandbox.simulateTerminalRequest`](https://docs.tappay.mn/reference/pos/sandbox/simulate-terminal-request.md) +8 more

### AUTH-058 {#AUTH-058}

HTTP status: `403` · The API key does not have the scope this operation requires.

**Cause** The API key does not have the scope that this operation requires.

**Fix** Check the scope listed on the operation page. Create a key with that scope and use it for the request.

**See** [/get-started](https://docs.tappay.mn/get-started.md)

Returned by: [`integration.apps.exchangeInstallCode`](https://docs.tappay.mn/reference/apps/exchange-install-code.md), [`integration.apps.revokeGrant`](https://docs.tappay.mn/reference/apps/revoke-grant.md), [`integration.billingPlans.archive`](https://docs.tappay.mn/reference/billing-plans/archive.md), [`integration.billingPlans.create`](https://docs.tappay.mn/reference/billing-plans/create.md), [`integration.billingPlans.get`](https://docs.tappay.mn/reference/billing-plans/get.md), [`integration.billingPlans.list`](https://docs.tappay.mn/reference/billing-plans/list.md), [`integration.billingPlans.update`](https://docs.tappay.mn/reference/billing-plans/update.md), [`integration.catalog.get`](https://docs.tappay.mn/reference/catalog/get.md), [`integration.catalog.optIn`](https://docs.tappay.mn/reference/catalog/opt-in.md), [`integration.catalog.optOut`](https://docs.tappay.mn/reference/catalog/opt-out.md) +122 more

### AUTH-075 {#AUTH-075}

HTTP status: `400` · The connection code is invalid, expired or already used.

**Cause** The connection code is invalid, has expired or was already used.

**Fix** Start the connection again from the plugin to get a new code. Exchange the code only once, right after you receive it.

Returned by: [`integration.apps.exchangeInstallCode`](https://docs.tappay.mn/reference/apps/exchange-install-code.md), [`integration.connect.token`](https://docs.tappay.mn/reference/connect/token.md)

### AUTH-076 {#AUTH-076}

HTTP status: `404` · The connection was not found.

**Cause** No connection with this id exists for your merchant.

**Fix** Check the connection id. The connection may already be disconnected.

Returned by: [`integration.apps.revokeGrant`](https://docs.tappay.mn/reference/apps/revoke-grant.md), [`integration.connect.disconnect`](https://docs.tappay.mn/reference/connect/disconnect.md)

### AUTH-077 {#AUTH-077}

HTTP status: `409` · The maximum number of active connections has been reached.

**Cause** Your merchant has reached the maximum number of active plugin connections.

**Fix** Disconnect a plugin that you no longer use. Then connect again.

Returned by: [`integration.connect.token`](https://docs.tappay.mn/reference/connect/token.md)

## Payments {#payment}

### PAY-001 {#PAY-001}

HTTP status: `404` · The invoice was not found.

**Cause** No invoice with this id exists for your merchant and environment.

**Fix** Check the invoice id. Make sure the key belongs to the same merchant and environment that created the invoice.

**See** [/concepts/invoice-intent-payment](https://docs.tappay.mn/concepts/invoice-intent-payment.md)

Returned by: [`integration.checkout.createSession`](https://docs.tappay.mn/reference/checkout-sessions/create.md), [`integration.v1.cancelIntent`](https://docs.tappay.mn/reference/intents/cancel.md), [`integration.v1.cancelInvoice`](https://docs.tappay.mn/reference/invoices/cancel.md), [`integration.v1.createPayment`](https://docs.tappay.mn/reference/payments/create.md), [`integration.v1.getIntent`](https://docs.tappay.mn/reference/intents/get.md), [`integration.v1.getInvoice`](https://docs.tappay.mn/reference/invoices/get.md), [`integration.v1.presentIntent`](https://docs.tappay.mn/reference/intents/present.md), [`integration.v1.updateIntent`](https://docs.tappay.mn/reference/intents/update.md), [`integration.v1.updateInvoice`](https://docs.tappay.mn/reference/invoices/update.md), [`public.checkout.presentEmbeddedSession`](https://docs.tappay.mn/reference/embedded-sessions/present.md)

### PAY-002 {#PAY-002}

HTTP status: `409` · The invoice has already been paid.

**Cause** The invoice has already been paid, so it cannot be changed or paid again.

**Fix** Read the invoice to confirm its status. Create a new invoice if you need another payment.

**See** [/concepts/statuses](https://docs.tappay.mn/concepts/statuses.md)

Returned by: [`integration.v1.cancelInvoice`](https://docs.tappay.mn/reference/invoices/cancel.md), [`integration.v1.updateIntent`](https://docs.tappay.mn/reference/intents/update.md), [`integration.v1.updateInvoice`](https://docs.tappay.mn/reference/invoices/update.md)

### PAY-003 {#PAY-003}

HTTP status: `410` · The invoice has expired.

**Cause** The invoice has passed its expiry time.

**Fix** Create a new invoice for the customer. Set a longer expiry if customers need more time to pay.

**See** [/concepts/statuses](https://docs.tappay.mn/concepts/statuses.md)

Returned by: [`integration.v1.cancelInvoice`](https://docs.tappay.mn/reference/invoices/cancel.md), [`integration.v1.updateIntent`](https://docs.tappay.mn/reference/intents/update.md), [`integration.v1.updateInvoice`](https://docs.tappay.mn/reference/invoices/update.md)

### PAY-004 {#PAY-004}

HTTP status: `410` · The invoice was cancelled.

**Cause** The invoice was cancelled, so it cannot be paid.

**Fix** Create a new invoice if the customer still needs to pay.

**See** [/concepts/statuses](https://docs.tappay.mn/concepts/statuses.md)

Returned by: [`integration.v1.cancelInvoice`](https://docs.tappay.mn/reference/invoices/cancel.md), [`integration.v1.updateIntent`](https://docs.tappay.mn/reference/intents/update.md), [`integration.v1.updateInvoice`](https://docs.tappay.mn/reference/invoices/update.md)

### PAY-007 {#PAY-007}

HTTP status: `404` · The payment was not found.

**Cause** No payment with this id exists for your merchant and environment.

**Fix** Check the payment id. Use a key from the same merchant and environment that took the payment.

**See** [/concepts/invoice-intent-payment](https://docs.tappay.mn/concepts/invoice-intent-payment.md)

Returned by: [`integration.refunds.get`](https://docs.tappay.mn/reference/refunds/get.md), [`integration.refunds.listByPayment`](https://docs.tappay.mn/reference/refunds/list-by-payment.md), [`integration.v1.getPayment`](https://docs.tappay.mn/reference/payments/get.md), [`integration.v1.getPaymentReceipt`](https://docs.tappay.mn/reference/receipts/get.md), [`integration.v1.simulateEbarimt`](https://docs.tappay.mn/reference/sandbox/simulate-ebarimt.md)

### PAY-010 {#PAY-010}

HTTP status: `422` · The requested payment channel is not available for this payment.

**Cause** The payment channel you asked for is not enabled or not supported for this payment.

**Fix** Choose a channel that is enabled for your merchant. Omit the channel to let the customer choose.

**See** [/guides/checkout](https://docs.tappay.mn/guides/checkout.md)

Returned by: [`integration.checkout.createSession`](https://docs.tappay.mn/reference/checkout-sessions/create.md), [`integration.v1.presentIntent`](https://docs.tappay.mn/reference/intents/present.md), [`public.checkout.presentEmbeddedSession`](https://docs.tappay.mn/reference/embedded-sessions/present.md), [`public.checkout.simulateEmbeddedSession`](https://docs.tappay.mn/reference/embedded-sessions/simulate.md)

### PAY-012 {#PAY-012}

HTTP status: `409` · The payment intent is no longer open.

**Cause** The payment intent is no longer open. It was paid, cancelled or expired.

**Fix** Read the intent to see its status. Create a new intent if the customer still needs to pay.

**See** [/concepts/statuses](https://docs.tappay.mn/concepts/statuses.md)

Returned by: [`integration.v1.cancelIntent`](https://docs.tappay.mn/reference/intents/cancel.md), [`integration.v1.createPayment`](https://docs.tappay.mn/reference/payments/create.md), [`integration.v1.presentIntent`](https://docs.tappay.mn/reference/intents/present.md), [`integration.v1.updateIntent`](https://docs.tappay.mn/reference/intents/update.md), [`pos.payments.updateAmount`](https://docs.tappay.mn/reference/pos/payments/update-amount.md), [`public.checkout.presentEmbeddedSession`](https://docs.tappay.mn/reference/embedded-sessions/present.md)

### PAY-013 {#PAY-013}

HTTP status: `409` · This order id already has an open invoice created with a different request body.

**Cause** An open invoice already exists for this terminal and order id, and it was created with a different request body (amount, description, lines or other fields).

**Fix** Repeat exactly the same request body to get the existing invoice back. Use a new order id for a different order.

**See** [/concepts/idempotency](https://docs.tappay.mn/concepts/idempotency.md)

Returned by: [`integration.checkout.createSession`](https://docs.tappay.mn/reference/checkout-sessions/create.md), [`integration.v1.createInvoice`](https://docs.tappay.mn/reference/invoices/create.md)

### PAY-017 {#PAY-017}

HTTP status: `422` · The amount is greater than the remaining amount to pay.

**Cause** The amount is greater than the amount that is still left to pay on the invoice.

**Fix** Send an amount that is not above the remaining amount. Read the invoice to see what is left.

**See** [/concepts/invoice-intent-payment](https://docs.tappay.mn/concepts/invoice-intent-payment.md)

Returned by: [`integration.v1.createPayment`](https://docs.tappay.mn/reference/payments/create.md)

### PAY-018 {#PAY-018}

HTTP status: `422` · The invoice lines are invalid or their total does not match the amount.

**Cause** The invoice lines are not valid, or their total does not equal the amount.

**Fix** Check every line. Make the sum of the line amounts equal to the invoice amount.

Returned by: [`integration.v1.updateInvoice`](https://docs.tappay.mn/reference/invoices/update.md)

### PAY-027 {#PAY-027}

HTTP status: `409` · The invoice cannot be paid in its current state.

**Cause** The invoice is paid or cancelled, so no new payment can start on it.

**Fix** Read the invoice to check its status. Create a new invoice for a new payment.

**See** [/concepts/statuses](https://docs.tappay.mn/concepts/statuses.md)

Returned by: [`integration.v1.createPayment`](https://docs.tappay.mn/reference/payments/create.md)

### PAY-030 {#PAY-030}

HTTP status: `422` · The checkout session request does not match the session mode.

**Cause** The checkout session request does not fit the mode of the session. For example, a setup session cannot carry an invoice.

**Fix** Check the mode of the session. Remove the fields that the mode does not allow and send the request again.

**See** [/guides/checkout](https://docs.tappay.mn/guides/checkout.md)

Returned by: [`integration.checkout.createSession`](https://docs.tappay.mn/reference/checkout-sessions/create.md)

### PAY-031 {#PAY-031}

HTTP status: `422` · The customer was not found.

**Cause** The customer id in the request does not exist in this environment.

**Fix** Create the customer first, or send an id of an existing customer. Use the same environment for both calls.

**See** [/guides/checkout](https://docs.tappay.mn/guides/checkout.md)

Returned by: [`integration.checkout.createSession`](https://docs.tappay.mn/reference/checkout-sessions/create.md), [`integration.customers.get`](https://docs.tappay.mn/reference/customers/get.md), [`integration.customers.listPaymentMethods`](https://docs.tappay.mn/reference/customers/list-payment-methods.md), [`integration.customers.update`](https://docs.tappay.mn/reference/customers/update.md), [`integration.payerLinks.listByCustomer`](https://docs.tappay.mn/reference/payer-links/list-by-customer.md), [`integration.subscriptions.create`](https://docs.tappay.mn/reference/subscriptions/create.md), [`integration.v1.createPayment`](https://docs.tappay.mn/reference/payments/create.md)

### PAY-032 {#PAY-032}

HTTP status: `422` · The checkout mode is not available.

**Cause** The checkout mode you asked for is not enabled for your merchant.

**Fix** Use the payment mode. Ask TapPay support to enable other modes for your merchant.

**See** [/guides/checkout](https://docs.tappay.mn/guides/checkout.md)

Returned by: [`integration.checkout.createSession`](https://docs.tappay.mn/reference/checkout-sessions/create.md)

### PAY-033 {#PAY-033}

HTTP status: `409` · The checkout session is not open.

**Cause** The checkout session is no longer open. It was completed, expired or cancelled.

**Fix** Read the session to see its status. Create a new session for a new payment.

**See** [/guides/checkout](https://docs.tappay.mn/guides/checkout.md)

Returned by: [`integration.checkout.createSession`](https://docs.tappay.mn/reference/checkout-sessions/create.md), [`public.checkout.presentEmbeddedSession`](https://docs.tappay.mn/reference/embedded-sessions/present.md), [`public.checkout.simulateEmbeddedSession`](https://docs.tappay.mn/reference/embedded-sessions/simulate.md)

### PAY-034 {#PAY-034}

HTTP status: `404` · The checkout session was not found, or the client secret does not match.

**Cause** No checkout session matches this id for your key, or the client secret is wrong.

**Fix** Check the session id and the client secret. Use a key from the merchant and environment that created the session.

**See** [/guides/checkout](https://docs.tappay.mn/guides/checkout.md)

Returned by: [`integration.checkout.getSession`](https://docs.tappay.mn/reference/checkout-sessions/get.md), [`public.checkout.getEmbeddedSession`](https://docs.tappay.mn/reference/embedded-sessions/get.md), [`public.checkout.getEmbeddedSessionReceipt`](https://docs.tappay.mn/reference/embedded-sessions/get-receipt.md), [`public.checkout.presentEmbeddedSession`](https://docs.tappay.mn/reference/embedded-sessions/present.md), [`public.checkout.simulateEmbeddedSession`](https://docs.tappay.mn/reference/embedded-sessions/simulate.md)

### PAY-035 {#PAY-035}

HTTP status: `422` · The payer's consent is required for this payment.

**Cause** The payment saves the payment method for later use, so the payer must give consent.

**Fix** Show the consent text to the payer. Send consent as true only after the payer agrees.

**See** [/guides/checkout](https://docs.tappay.mn/guides/checkout.md)

Returned by: [`public.checkout.presentEmbeddedSession`](https://docs.tappay.mn/reference/embedded-sessions/present.md), [`public.checkout.simulateEmbeddedSession`](https://docs.tappay.mn/reference/embedded-sessions/simulate.md)

### PAY-037 {#PAY-037}

HTTP status: `422` · Editing this field is not allowed by your settings.

**Cause** The settings of your merchant do not allow editing this field.

**Fix** Edit only the fields that your settings allow. The error details name the field.

Returned by: [`integration.v1.updateIntent`](https://docs.tappay.mn/reference/intents/update.md), [`integration.v1.updateInvoice`](https://docs.tappay.mn/reference/invoices/update.md)

### PAY-038 {#PAY-038}

HTTP status: `409` · A payment for this invoice is in progress, so it cannot be edited.

**Cause** A payment for this invoice is in progress, so it cannot be edited.

**Fix** Wait until the payment finishes. Read the invoice and edit it only if it is still open.

**See** [/concepts/statuses](https://docs.tappay.mn/concepts/statuses.md)

Returned by: [`integration.v1.updateIntent`](https://docs.tappay.mn/reference/intents/update.md), [`integration.v1.updateInvoice`](https://docs.tappay.mn/reference/invoices/update.md), [`pos.payments.updateAmount`](https://docs.tappay.mn/reference/pos/payments/update-amount.md)

### PAY-039 {#PAY-039}

HTTP status: `422` · Subscription invoices and payer-created intents cannot be edited.

**Cause** Subscription invoices and intents created by the payer cannot be edited.

**Fix** Create a new invoice instead. Change a subscription amount on the subscription itself.

Returned by: [`integration.v1.updateIntent`](https://docs.tappay.mn/reference/intents/update.md), [`integration.v1.updateInvoice`](https://docs.tappay.mn/reference/invoices/update.md), [`pos.payments.updateAmount`](https://docs.tappay.mn/reference/pos/payments/update-amount.md)

### PAY-040 {#PAY-040}

HTTP status: `422` · Send either amount or lines, not both; with lines, the amount is their total.

**Cause** The request sends both amount and lines. With lines, the amount is their total.

**Fix** Send either amount or lines. Leave out amount when you send lines.

Returned by: [`integration.v1.updateInvoice`](https://docs.tappay.mn/reference/invoices/update.md)

## Merchant and terminal {#business}

### BIZ-002 {#BIZ-002}

HTTP status: `400` · The merchant's daily limit would be exceeded.

**Cause** This payment would take the merchant over its daily limit.

**Fix** Wait until the limit resets on the next day. Contact TapPay support to raise the daily limit.

Returned by: [`integration.cpm.create`](https://docs.tappay.mn/reference/cpm/create.md), [`integration.v1.createPayment`](https://docs.tappay.mn/reference/payments/create.md)

### BIZ-004 {#BIZ-004}

HTTP status: `403` · The terminal is not active.

**Cause** The terminal that the request refers to is not active.

**Fix** Activate the terminal in the portal. Or use a key for an active terminal.

Returned by: [`integration.apps.exchangeInstallCode`](https://docs.tappay.mn/reference/apps/exchange-install-code.md), [`integration.apps.revokeGrant`](https://docs.tappay.mn/reference/apps/revoke-grant.md), [`integration.billingPlans.archive`](https://docs.tappay.mn/reference/billing-plans/archive.md), [`integration.billingPlans.create`](https://docs.tappay.mn/reference/billing-plans/create.md), [`integration.billingPlans.get`](https://docs.tappay.mn/reference/billing-plans/get.md), [`integration.billingPlans.list`](https://docs.tappay.mn/reference/billing-plans/list.md), [`integration.billingPlans.update`](https://docs.tappay.mn/reference/billing-plans/update.md), [`integration.catalog.get`](https://docs.tappay.mn/reference/catalog/get.md), [`integration.catalog.optIn`](https://docs.tappay.mn/reference/catalog/opt-in.md), [`integration.catalog.optOut`](https://docs.tappay.mn/reference/catalog/opt-out.md) +122 more

### BIZ-005 {#BIZ-005}

HTTP status: `403` · The merchant account is not in a state that allows this request.

**Cause** The merchant account is not in a status that allows this request. For example, it is suspended or not yet approved.

**Fix** Check the merchant status in the portal. Contact TapPay support if the status looks wrong.

Returned by: [`integration.apps.exchangeInstallCode`](https://docs.tappay.mn/reference/apps/exchange-install-code.md), [`integration.apps.revokeGrant`](https://docs.tappay.mn/reference/apps/revoke-grant.md), [`integration.billingPlans.archive`](https://docs.tappay.mn/reference/billing-plans/archive.md), [`integration.billingPlans.create`](https://docs.tappay.mn/reference/billing-plans/create.md), [`integration.billingPlans.get`](https://docs.tappay.mn/reference/billing-plans/get.md), [`integration.billingPlans.list`](https://docs.tappay.mn/reference/billing-plans/list.md), [`integration.billingPlans.update`](https://docs.tappay.mn/reference/billing-plans/update.md), [`integration.catalog.get`](https://docs.tappay.mn/reference/catalog/get.md), [`integration.catalog.optIn`](https://docs.tappay.mn/reference/catalog/opt-in.md), [`integration.catalog.optOut`](https://docs.tappay.mn/reference/catalog/opt-out.md) +123 more

### BIZ-013 {#BIZ-013}

HTTP status: `404` · The terminal was not found.

**Cause** No terminal with this id exists for your merchant.

**Fix** Check the terminal id. Use a key from the merchant that owns the terminal.

Returned by: [`integration.checkout.createSession`](https://docs.tappay.mn/reference/checkout-sessions/create.md), [`integration.connect.token`](https://docs.tappay.mn/reference/connect/token.md), [`integration.cpm.create`](https://docs.tappay.mn/reference/cpm/create.md), [`integration.subscriptions.create`](https://docs.tappay.mn/reference/subscriptions/create.md), [`integration.terminals.createPaymentPoint`](https://docs.tappay.mn/reference/terminals/create-payment-point.md), [`integration.terminals.get`](https://docs.tappay.mn/reference/terminals/get.md), [`integration.v1.createInvoice`](https://docs.tappay.mn/reference/invoices/create.md), [`integration.v1.createPayment`](https://docs.tappay.mn/reference/payments/create.md), [`integration.v1.createReport`](https://docs.tappay.mn/reference/reports/create.md), [`integration.v1.createWebhookEndpoint`](https://docs.tappay.mn/reference/webhook-endpoints/create.md) +2 more

## Refunds {#refund}

### RFD-020 {#RFD-020}

HTTP status: `422` · The refund cannot be created because the available refund limit is negative.

**Cause** The refund limit available for this payment is below zero, so a refund cannot start.

**Fix** Wait until the balance recovers. Contact TapPay support if the balance should be positive.

Returned by: [`integration.refunds.create`](https://docs.tappay.mn/reference/refunds/create.md)

### RFD-021 {#RFD-021}

HTTP status: `409` · The refund cannot be created because the original payment's destination cannot be resolved.

**Cause** TapPay cannot tell where the original payment money went, so it cannot send the refund back.

**Fix** Contact TapPay support with the payment id. Do not retry the request until the destination is fixed.

Returned by: [`integration.refunds.create`](https://docs.tappay.mn/reference/refunds/create.md)

### RFD-022 {#RFD-022}

HTTP status: `409` · The payment is not eligible for a refund.

**Cause** The payment is not in a state that can be refunded. For example, it is not yet paid.

**Fix** Read the payment and check its status. Refund only a paid payment.

**See** [/concepts/statuses](https://docs.tappay.mn/concepts/statuses.md)

Returned by: [`integration.refunds.create`](https://docs.tappay.mn/reference/refunds/create.md), [`integration.v1.finalizePayment`](https://docs.tappay.mn/reference/pre-auth/finalize.md)

### RFD-030 {#RFD-030}

HTTP status: `422` · The refund amount is greater than the amount that can still be refunded.

**Cause** The refund amount is above what can still be refunded for this payment.

**Fix** Read the payment to see the refundable amount. Send an amount that is not above it.

Returned by: [`integration.refunds.create`](https://docs.tappay.mn/reference/refunds/create.md), [`integration.v1.finalizePayment`](https://docs.tappay.mn/reference/pre-auth/finalize.md)

### RFD-031 {#RFD-031}

HTTP status: `409` · No refund route is available for this payment.

**Cause** No refund route exists for the way this payment was made.

**Fix** Contact TapPay support with the payment id. Ask for a manual refund.

Returned by: [`integration.refunds.create`](https://docs.tappay.mn/reference/refunds/create.md), [`integration.v1.finalizePayment`](https://docs.tappay.mn/reference/pre-auth/finalize.md)

### RFD-032 {#RFD-032}

HTTP status: `422` · This payment does not support partial refunds.

**Cause** The payment method used does not allow a refund of part of the amount.

**Fix** Refund the full amount of the payment instead.

Returned by: [`integration.refunds.create`](https://docs.tappay.mn/reference/refunds/create.md), [`integration.v1.finalizePayment`](https://docs.tappay.mn/reference/pre-auth/finalize.md)

### RFD-033 {#RFD-033}

HTTP status: `422` · Refunds are not supported for this payment.

**Cause** The payment method used does not allow refunds at all.

**Fix** Return the money to the customer by another agreed method. Contact TapPay support if you need help.

Returned by: [`integration.refunds.create`](https://docs.tappay.mn/reference/refunds/create.md), [`integration.v1.finalizePayment`](https://docs.tappay.mn/reference/pre-auth/finalize.md)

### RFD-034 {#RFD-034}

HTTP status: `422` · The refund window for this payment has expired.

**Cause** The refund window for this payment has closed.

**Fix** Do not retry the refund. Return the money by another agreed method or contact TapPay support.

Returned by: [`integration.refunds.create`](https://docs.tappay.mn/reference/refunds/create.md), [`integration.v1.finalizePayment`](https://docs.tappay.mn/reference/pre-auth/finalize.md)

### RFD-035 {#RFD-035}

HTTP status: `409` · This actor is not allowed to request the refund.

**Cause** The user or key that sent the request is not allowed to ask for this refund.

**Fix** Use a key or user with refund permission. Ask the merchant owner to grant it.

Returned by: [`integration.refunds.create`](https://docs.tappay.mn/reference/refunds/create.md), [`integration.v1.finalizePayment`](https://docs.tappay.mn/reference/pre-auth/finalize.md)

### RFD-036 {#RFD-036}

HTTP status: `409` · A refund with this idempotency key already exists with different parameters.

**Cause** A refund with this idempotency key already exists, but its parameters are different.

**Fix** Send the same parameters when you retry. Use a new idempotency key for a different refund.

**See** [/concepts/idempotency](https://docs.tappay.mn/concepts/idempotency.md)

Returned by: [`integration.refunds.create`](https://docs.tappay.mn/reference/refunds/create.md), [`integration.v1.finalizePayment`](https://docs.tappay.mn/reference/pre-auth/finalize.md)

### RFD-038 {#RFD-038}

HTTP status: `422` · The refund lines are not valid for this invoice.

**Cause** The refund lines do not match the lines of the invoice.

**Fix** Read the invoice to get its line ids and amounts. Send refund lines that match them.

Returned by: [`integration.refunds.create`](https://docs.tappay.mn/reference/refunds/create.md), [`integration.v1.finalizePayment`](https://docs.tappay.mn/reference/pre-auth/finalize.md)

### RFD-039 {#RFD-039}

HTTP status: `404` · The refund was not found.

**Cause** No refund with this id exists for your merchant.

**Fix** Check the refund id. Use a key from the merchant that created the refund.

Returned by: [`integration.refunds.get`](https://docs.tappay.mn/reference/refunds/get.md)

### RFD-040 {#RFD-040}

HTTP status: `422` · This refund reason is not in your list.

**Cause** The reasonType is not in the refund reason list of your merchant.

**Fix** List the refund reasons and send one of their codes. Or leave out reasonType.

**See** [/guides/refunds](https://docs.tappay.mn/guides/refunds.md)

Returned by: [`integration.refunds.create`](https://docs.tappay.mn/reference/refunds/create.md)

## URL checks {#banking}

### BNK-101 {#BNK-101}

HTTP status: `400` · The URL is not valid.

**Cause** The URL you sent is not a valid URL.

**Fix** Send a full URL that starts with https. Fix any typo and send the request again.

Returned by: [`integration.v1.createWebhookEndpoint`](https://docs.tappay.mn/reference/webhook-endpoints/create.md), [`integration.v1.updateWebhookEndpoint`](https://docs.tappay.mn/reference/webhook-endpoints/update.md)

### BNK-103 {#BNK-103}

HTTP status: `400` · The URL points to a private or internal host, which is not allowed.

**Cause** The URL points to a private or internal host. TapPay does not call such hosts.

**Fix** Use a public URL that TapPay can reach from the internet. Do not use localhost or private addresses.

Returned by: [`integration.v1.createWebhookEndpoint`](https://docs.tappay.mn/reference/webhook-endpoints/create.md), [`integration.v1.updateWebhookEndpoint`](https://docs.tappay.mn/reference/webhook-endpoints/update.md)

### BNK-104 {#BNK-104}

HTTP status: `400` · The URL host could not be resolved.

**Cause** TapPay could not find the host of the URL in DNS.

**Fix** Check the host name for typos. Make sure its DNS record is public, then send the request again.

Returned by: [`integration.v1.createWebhookEndpoint`](https://docs.tappay.mn/reference/webhook-endpoints/create.md), [`integration.v1.updateWebhookEndpoint`](https://docs.tappay.mn/reference/webhook-endpoints/update.md)

## Platform settings {#settings}

### SET-002 {#SET-002}

HTTP status: `400` · A required platform setting is missing or unknown.

**Cause** A platform setting that the operation needs is missing or unknown.

**Fix** Contact TapPay support with the request id. Do not retry until the setting is fixed.

Returned by: [`integration.payouts.create`](https://docs.tappay.mn/reference/payouts/create.md), [`integration.refunds.create`](https://docs.tappay.mn/reference/refunds/create.md), [`integration.split.getRules`](https://docs.tappay.mn/reference/rules/get.md), [`integration.v1.createPayment`](https://docs.tappay.mn/reference/payments/create.md), [`public.checkout.getEmbeddedSession`](https://docs.tappay.mn/reference/embedded-sessions/get.md), [`public.checkout.simulateEmbeddedSession`](https://docs.tappay.mn/reference/embedded-sessions/simulate.md)

### SET-007 {#SET-007}

HTTP status: `422` · The value violates a platform limit.

**Cause** The value breaks a limit set by the platform.

**Fix** Read the error details to see which limit applies. Send a value inside the limit.

Returned by: [`integration.checkout.createSession`](https://docs.tappay.mn/reference/checkout-sessions/create.md), [`integration.commerce.create`](https://docs.tappay.mn/reference/orders/create.md), [`integration.cpm.create`](https://docs.tappay.mn/reference/cpm/create.md), [`integration.v1.createPayment`](https://docs.tappay.mn/reference/payments/create.md), [`integration.v1.updateIntent`](https://docs.tappay.mn/reference/intents/update.md), [`integration.v1.updateInvoice`](https://docs.tappay.mn/reference/invoices/update.md), [`pos.payments.updateAmount`](https://docs.tappay.mn/reference/pos/payments/update-amount.md)

## Request signing {#signature}

### SIG-002 {#SIG-002}

HTTP status: `401` · The request timestamp is outside the allowed time window.

**Cause** The timestamp of the request is outside the allowed time window.

**Fix** Sync the clock of your server. Send the current time in the TapPay-Timestamp header.

Returned by: [`integration.apps.exchangeInstallCode`](https://docs.tappay.mn/reference/apps/exchange-install-code.md), [`integration.apps.revokeGrant`](https://docs.tappay.mn/reference/apps/revoke-grant.md), [`integration.billingPlans.archive`](https://docs.tappay.mn/reference/billing-plans/archive.md), [`integration.billingPlans.create`](https://docs.tappay.mn/reference/billing-plans/create.md), [`integration.billingPlans.get`](https://docs.tappay.mn/reference/billing-plans/get.md), [`integration.billingPlans.list`](https://docs.tappay.mn/reference/billing-plans/list.md), [`integration.billingPlans.update`](https://docs.tappay.mn/reference/billing-plans/update.md), [`integration.catalog.get`](https://docs.tappay.mn/reference/catalog/get.md), [`integration.catalog.optIn`](https://docs.tappay.mn/reference/catalog/opt-in.md), [`integration.catalog.optOut`](https://docs.tappay.mn/reference/catalog/opt-out.md) +118 more

### SIG-003 {#SIG-003}

HTTP status: `401` · The request signature is missing or does not match.

**Cause** The signature is missing, or it does not match the request.

**Fix** Sign the exact request body with your secret. Send the signature in the header and check that the secret is correct.

Returned by: [`integration.apps.exchangeInstallCode`](https://docs.tappay.mn/reference/apps/exchange-install-code.md), [`integration.apps.revokeGrant`](https://docs.tappay.mn/reference/apps/revoke-grant.md), [`integration.billingPlans.archive`](https://docs.tappay.mn/reference/billing-plans/archive.md), [`integration.billingPlans.create`](https://docs.tappay.mn/reference/billing-plans/create.md), [`integration.billingPlans.get`](https://docs.tappay.mn/reference/billing-plans/get.md), [`integration.billingPlans.list`](https://docs.tappay.mn/reference/billing-plans/list.md), [`integration.billingPlans.update`](https://docs.tappay.mn/reference/billing-plans/update.md), [`integration.catalog.get`](https://docs.tappay.mn/reference/catalog/get.md), [`integration.catalog.optIn`](https://docs.tappay.mn/reference/catalog/opt-in.md), [`integration.catalog.optOut`](https://docs.tappay.mn/reference/catalog/opt-out.md) +118 more

### SIG-005 {#SIG-005}

HTTP status: `409` · This request nonce was already used.

**Cause** This nonce was already used in an earlier request.

**Fix** Generate a new random nonce for every request.

Returned by: [`integration.apps.exchangeInstallCode`](https://docs.tappay.mn/reference/apps/exchange-install-code.md), [`integration.apps.revokeGrant`](https://docs.tappay.mn/reference/apps/revoke-grant.md), [`integration.billingPlans.archive`](https://docs.tappay.mn/reference/billing-plans/archive.md), [`integration.billingPlans.create`](https://docs.tappay.mn/reference/billing-plans/create.md), [`integration.billingPlans.get`](https://docs.tappay.mn/reference/billing-plans/get.md), [`integration.billingPlans.list`](https://docs.tappay.mn/reference/billing-plans/list.md), [`integration.billingPlans.update`](https://docs.tappay.mn/reference/billing-plans/update.md), [`integration.catalog.get`](https://docs.tappay.mn/reference/catalog/get.md), [`integration.catalog.optIn`](https://docs.tappay.mn/reference/catalog/opt-in.md), [`integration.catalog.optOut`](https://docs.tappay.mn/reference/catalog/opt-out.md) +118 more

## Fees {#fee}

### FSC-013 {#FSC-013}

HTTP status: `500` · The fee could not be calculated because the destination cannot be resolved.

**Cause** TapPay could not work out the fee because it cannot tell where the money goes.

**Fix** Contact TapPay support with the request id. Do not retry until the destination is fixed.

Returned by: [`integration.v1.createPayment`](https://docs.tappay.mn/reference/payments/create.md), [`integration.v1.simulateIntent`](https://docs.tappay.mn/reference/sandbox/simulate-intent.md), [`integration.v1.simulatePayment`](https://docs.tappay.mn/reference/sandbox/simulate-payment.md), [`public.checkout.simulateEmbeddedSession`](https://docs.tappay.mn/reference/embedded-sessions/simulate.md)

## Payouts and splits {#payout}

### PYO-101 {#PYO-101}

HTTP status: `422` · The available balance is not enough for this payout.

**Cause** The available balance is lower than the payout amount.

**Fix** Lower the payout amount. Or wait until more payments settle and the balance grows.

Returned by: [`integration.payouts.create`](https://docs.tappay.mn/reference/payouts/create.md)

### PYO-108 {#PYO-108}

HTTP status: `409` · Manual payouts are not enabled for this merchant.

**Cause** Manual payouts are not enabled for this merchant, or you are in the sandbox.

**Fix** Use production keys for manual payouts. Ask TapPay support to enable manual payouts for your merchant.

Returned by: [`integration.payouts.create`](https://docs.tappay.mn/reference/payouts/create.md)

### PYO-109 {#PYO-109}

HTTP status: `422` · The settlement account is not valid for this payout.

**Cause** The settlement account is missing, or it does not suit this payout.

**Fix** Check the settlement account in the portal. Choose an account in the payout currency.

Returned by: [`integration.payouts.create`](https://docs.tappay.mn/reference/payouts/create.md)

### PYO-110 {#PYO-110}

HTTP status: `422` · The payout account is not valid.

**Cause** The payout account is not valid, or its currency differs from the payout.

**Fix** Check the account number and currency. Send an account that matches the payout currency.

Returned by: [`integration.payouts.create`](https://docs.tappay.mn/reference/payouts/create.md)

### PYO-115 {#PYO-115}

HTTP status: `409` · The merchant is not active, so a payout cannot be requested.

**Cause** The merchant is not active, so it cannot request a payout.

**Fix** Check the merchant status in the portal. Contact TapPay support to reactivate the merchant.

Returned by: [`integration.payouts.create`](https://docs.tappay.mn/reference/payouts/create.md)

### PYO-201 {#PYO-201}

HTTP status: `404` · The split beneficiary was not found.

**Cause** The merchant code of a split beneficiary does not match any merchant.

**Fix** Check the merchant code. Send the code of an existing merchant.

Returned by: [`integration.split.acceptBeneficiary`](https://docs.tappay.mn/reference/beneficiaries/accept.md), [`integration.split.createBeneficiary`](https://docs.tappay.mn/reference/beneficiaries/create.md), [`integration.split.putRules`](https://docs.tappay.mn/reference/rules/put.md), [`integration.split.rejectBeneficiary`](https://docs.tappay.mn/reference/beneficiaries/reject.md), [`integration.split.revokeBeneficiary`](https://docs.tappay.mn/reference/beneficiaries/revoke.md)

### PYO-202 {#PYO-202}

HTTP status: `422` · A merchant cannot be its own split beneficiary.

**Cause** A merchant cannot be a beneficiary of its own split.

**Fix** Remove the merchant from the beneficiary list. Add another merchant as beneficiary.

Returned by: [`integration.split.createBeneficiary`](https://docs.tappay.mn/reference/beneficiaries/create.md)

### PYO-203 {#PYO-203}

HTTP status: `422` · The split beneficiary has not completed identity verification.

**Cause** The beneficiary has not completed identity verification.

**Fix** Ask the beneficiary to finish verification. Add the beneficiary again after it is approved.

Returned by: [`integration.split.acceptBeneficiary`](https://docs.tappay.mn/reference/beneficiaries/accept.md), [`integration.split.createBeneficiary`](https://docs.tappay.mn/reference/beneficiaries/create.md), [`integration.split.rejectBeneficiary`](https://docs.tappay.mn/reference/beneficiaries/reject.md), [`integration.split.revokeBeneficiary`](https://docs.tappay.mn/reference/beneficiaries/revoke.md)

### PYO-204 {#PYO-204}

HTTP status: `409` · This split beneficiary already exists.

**Cause** This beneficiary is already registered.

**Fix** Use the existing beneficiary. Do not create it again.

Returned by: [`integration.split.createBeneficiary`](https://docs.tappay.mn/reference/beneficiaries/create.md)

### PYO-205 {#PYO-205}

HTTP status: `422` · The split rule percentages add up to more than the allowed total.

**Cause** The percentages of the split rules add up to more than the allowed total.

**Fix** Lower the percentages. Make the total not exceed the allowed maximum.

Returned by: [`integration.split.putRules`](https://docs.tappay.mn/reference/rules/put.md)

### PYO-206 {#PYO-206}

HTTP status: `422` · A split rule refers to a beneficiary that is not active.

**Cause** A split rule points to a beneficiary that is not active.

**Fix** Activate the beneficiary, or remove it from the rule. Send the rule again.

Returned by: [`integration.split.putRules`](https://docs.tappay.mn/reference/rules/put.md)

### PYO-207 {#PYO-207}

HTTP status: `422` · The split beneficiary is not active.

**Cause** The split beneficiary is not active.

**Fix** Activate the beneficiary in the portal. Or choose another beneficiary.

Returned by: [`integration.cpm.create`](https://docs.tappay.mn/reference/cpm/create.md), [`integration.v1.createPayment`](https://docs.tappay.mn/reference/payments/create.md)

### PYO-208 {#PYO-208}

HTTP status: `409` · The beneficiary is not in a state that allows this action.

**Cause** The beneficiary is not in a status that allows this action.

**Fix** Check the beneficiary status in the portal. Wait until the status allows the action.

Returned by: [`integration.split.acceptBeneficiary`](https://docs.tappay.mn/reference/beneficiaries/accept.md), [`integration.split.putRules`](https://docs.tappay.mn/reference/rules/put.md), [`integration.split.rejectBeneficiary`](https://docs.tappay.mn/reference/beneficiaries/reject.md), [`integration.split.revokeBeneficiary`](https://docs.tappay.mn/reference/beneficiaries/revoke.md)

### PYO-209 {#PYO-209}

HTTP status: `422` · A split rule refers to a terminal that is not valid for this merchant.

**Cause** A split rule points to a terminal that does not belong to this merchant.

**Fix** Use a terminal id from this merchant. Remove the terminal from the rule if it is not needed.

Returned by: [`integration.split.getRules`](https://docs.tappay.mn/reference/rules/get.md), [`integration.split.putRules`](https://docs.tappay.mn/reference/rules/put.md)

### PYO-210 {#PYO-210}

HTTP status: `422` · The split rule start date is in the past.

**Cause** The start date of the split rule is in the past.

**Fix** Set a start date that is today or later. Send the rule again.

Returned by: [`integration.split.putRules`](https://docs.tappay.mn/reference/rules/put.md)

### PYO-306 {#PYO-306}

HTTP status: `409` · A payout cannot be made because the final payout is blocked.

**Cause** The final payout is on hold, so no payout can run.

**Fix** Wait until the hold is released. Contact TapPay support to ask why it was placed.

Returned by: [`integration.payouts.create`](https://docs.tappay.mn/reference/payouts/create.md)

### PYO-308 {#PYO-308}

HTTP status: `409` · A payout cannot be made because a reserve is pending.

**Cause** A reserve is waiting to be taken, so no payout can run.

**Fix** Wait until the reserve is settled. Contact TapPay support for the reserve status.

Returned by: [`integration.payouts.create`](https://docs.tappay.mn/reference/payouts/create.md)

## Webhooks, sandbox and reports {#events}

### EVT-001 {#EVT-001}

HTTP status: `404` · The event was not found.

**Cause** No event with this id exists for your merchant and environment.

**Fix** Check the event id. List events to find the right one.

**See** [/concepts/events](https://docs.tappay.mn/concepts/events.md)

Returned by: [`integration.v1.getEvent`](https://docs.tappay.mn/reference/events/get.md), [`integration.v1.resendEvent`](https://docs.tappay.mn/reference/events/resend.md)

### EVT-002 {#EVT-002}

HTTP status: `422` · The webhook endpoint limit has been reached.

**Cause** You reached the maximum number of webhook endpoints.

**Fix** Delete an endpoint you no longer use. Or reuse an existing endpoint for more event types.

**See** [/guides/webhooks](https://docs.tappay.mn/guides/webhooks.md)

Returned by: [`integration.connect.token`](https://docs.tappay.mn/reference/connect/token.md), [`integration.v1.createWebhookEndpoint`](https://docs.tappay.mn/reference/webhook-endpoints/create.md), [`integration.v1.updateWebhookEndpoint`](https://docs.tappay.mn/reference/webhook-endpoints/update.md)

### EVT-003 {#EVT-003}

HTTP status: `422` · The webhook endpoint subscribes to an event type that does not exist.

**Cause** The endpoint subscribes to an event type that does not exist.

**Fix** Check the event type names in the events list. Send only names that exist.

**See** [/concepts/events](https://docs.tappay.mn/concepts/events.md)

Returned by: [`integration.v1.createWebhookEndpoint`](https://docs.tappay.mn/reference/webhook-endpoints/create.md), [`integration.v1.updateWebhookEndpoint`](https://docs.tappay.mn/reference/webhook-endpoints/update.md)

### EVT-004 {#EVT-004}

HTTP status: `422` · The webhook endpoint URL must use HTTPS.

**Cause** The endpoint URL does not use HTTPS.

**Fix** Serve your endpoint over HTTPS. Send the URL that starts with https.

**See** [/guides/webhooks](https://docs.tappay.mn/guides/webhooks.md)

Returned by: [`integration.connect.token`](https://docs.tappay.mn/reference/connect/token.md), [`integration.v1.createWebhookEndpoint`](https://docs.tappay.mn/reference/webhook-endpoints/create.md), [`integration.v1.updateWebhookEndpoint`](https://docs.tappay.mn/reference/webhook-endpoints/update.md)

### EVT-005 {#EVT-005}

HTTP status: `409` · The webhook endpoint is disabled.

**Cause** The webhook endpoint is disabled.

**Fix** Enable the endpoint in the portal or through the API. Send the request again.

**See** [/guides/webhooks](https://docs.tappay.mn/guides/webhooks.md)

Returned by: [`integration.v1.resendEvent`](https://docs.tappay.mn/reference/events/resend.md), [`integration.v1.rotateWebhookEndpointSecret`](https://docs.tappay.mn/reference/webhook-endpoints/rotate-secret.md)

### EVT-006 {#EVT-006}

HTTP status: `404` · The webhook endpoint was not found.

**Cause** No webhook endpoint with this id exists for your merchant.

**Fix** Check the endpoint id. List endpoints to find the right one.

**See** [/guides/webhooks](https://docs.tappay.mn/guides/webhooks.md)

Returned by: [`integration.v1.deleteWebhookEndpoint`](https://docs.tappay.mn/reference/webhook-endpoints/delete.md), [`integration.v1.getWebhookEndpoint`](https://docs.tappay.mn/reference/webhook-endpoints/get.md), [`integration.v1.resendEvent`](https://docs.tappay.mn/reference/events/resend.md), [`integration.v1.rotateWebhookEndpointSecret`](https://docs.tappay.mn/reference/webhook-endpoints/rotate-secret.md), [`integration.v1.updateWebhookEndpoint`](https://docs.tappay.mn/reference/webhook-endpoints/update.md)

### EVT-007 {#EVT-007}

HTTP status: `400` · The secret rotation overlap period is not valid.

**Cause** The overlap period for the old secret is not valid.

**Fix** Send a period inside the allowed range. Use a shorter period if the value was too long.

**See** [/guides/webhooks](https://docs.tappay.mn/guides/webhooks.md)

Returned by: [`integration.v1.rotateWebhookEndpointSecret`](https://docs.tappay.mn/reference/webhook-endpoints/rotate-secret.md)

### EVT-009 {#EVT-009}

HTTP status: `409` · A webhook endpoint with this URL already exists.

**Cause** A webhook endpoint with this URL already exists.

**Fix** Update the existing endpoint instead. Or use a different URL.

**See** [/guides/webhooks](https://docs.tappay.mn/guides/webhooks.md)

Returned by: [`integration.v1.createWebhookEndpoint`](https://docs.tappay.mn/reference/webhook-endpoints/create.md), [`integration.v1.updateWebhookEndpoint`](https://docs.tappay.mn/reference/webhook-endpoints/update.md)

### EVT-201 {#EVT-201}

HTTP status: `403` · This operation is not available for the key environment: sandbox-only operations need a sandbox key, and the others need a production key.

**Cause** This operation does not match the environment of the key. Sandbox-only operations need a sandbox key, and the others need a production key.

**Fix** Use a sandbox key for sandbox-only operations. Use a production key for all other operations.

**See** [/testing](https://docs.tappay.mn/testing.md)

Returned by: [`integration.payouts.create`](https://docs.tappay.mn/reference/payouts/create.md), [`integration.payouts.get`](https://docs.tappay.mn/reference/payouts/get.md), [`integration.payouts.list`](https://docs.tappay.mn/reference/payouts/list.md), [`integration.split.acceptBeneficiary`](https://docs.tappay.mn/reference/beneficiaries/accept.md), [`integration.split.createBeneficiary`](https://docs.tappay.mn/reference/beneficiaries/create.md), [`integration.split.getRules`](https://docs.tappay.mn/reference/rules/get.md), [`integration.split.listBeneficiaries`](https://docs.tappay.mn/reference/beneficiaries/list.md), [`integration.split.putRules`](https://docs.tappay.mn/reference/rules/put.md), [`integration.split.rejectBeneficiary`](https://docs.tappay.mn/reference/beneficiaries/reject.md), [`integration.split.revokeBeneficiary`](https://docs.tappay.mn/reference/beneficiaries/revoke.md) +4 more

### EVT-202 {#EVT-202}

HTTP status: `422` · The test card number is not a known sandbox test card.

**Cause** The card number is not one of the known sandbox test cards.

**Fix** Use a test card from the testing page.

**See** [/testing](https://docs.tappay.mn/testing.md)

Returned by: [`integration.v1.createPayment`](https://docs.tappay.mn/reference/payments/create.md), [`integration.v1.simulateIntent`](https://docs.tappay.mn/reference/sandbox/simulate-intent.md), [`public.checkout.simulateEmbeddedSession`](https://docs.tappay.mn/reference/embedded-sessions/simulate.md)

### EVT-203 {#EVT-203}

HTTP status: `409` · The payment intent is not open, so it cannot be simulated.

**Cause** The payment intent is not open, so the simulator cannot act on it.

**Fix** Create a new intent and simulate it while it is open.

**See** [/testing](https://docs.tappay.mn/testing.md)

Returned by: [`integration.v1.simulateIntent`](https://docs.tappay.mn/reference/sandbox/simulate-intent.md), [`public.checkout.simulateEmbeddedSession`](https://docs.tappay.mn/reference/embedded-sessions/simulate.md)

### EVT-204 {#EVT-204}

HTTP status: `409` · The payment is not processing, so it cannot be simulated.

**Cause** The payment is not processing, so the simulator cannot act on it.

**Fix** Start the payment first. Simulate it while it is processing.

**See** [/testing](https://docs.tappay.mn/testing.md)

Returned by: [`integration.v1.simulatePayment`](https://docs.tappay.mn/reference/sandbox/simulate-payment.md)

### EVT-205 {#EVT-205}

HTTP status: `422` · The channel is not available in the sandbox.

**Cause** The channel is not available in the sandbox.

**Fix** Choose a channel that the sandbox supports. See the sandbox limits on the Testing page.

**See** [/testing](https://docs.tappay.mn/testing.md)

Returned by: [`integration.v1.simulateIntent`](https://docs.tappay.mn/reference/sandbox/simulate-intent.md), [`public.checkout.simulateEmbeddedSession`](https://docs.tappay.mn/reference/embedded-sessions/simulate.md)

### EVT-206 {#EVT-206}

HTTP status: `401` · Production keys are not accepted in the sandbox. Use a sandbox key (sk_test\_/pk_test\_).

**Cause** A production key was sent to the sandbox.

**Fix** Use a sandbox key that starts with sk_test\_ or pk_test\_.

**See** [/testing](https://docs.tappay.mn/testing.md)

Returned by: [`integration.apps.exchangeInstallCode`](https://docs.tappay.mn/reference/apps/exchange-install-code.md), [`integration.apps.revokeGrant`](https://docs.tappay.mn/reference/apps/revoke-grant.md), [`integration.billingPlans.archive`](https://docs.tappay.mn/reference/billing-plans/archive.md), [`integration.billingPlans.create`](https://docs.tappay.mn/reference/billing-plans/create.md), [`integration.billingPlans.get`](https://docs.tappay.mn/reference/billing-plans/get.md), [`integration.billingPlans.list`](https://docs.tappay.mn/reference/billing-plans/list.md), [`integration.billingPlans.update`](https://docs.tappay.mn/reference/billing-plans/update.md), [`integration.catalog.get`](https://docs.tappay.mn/reference/catalog/get.md), [`integration.catalog.optIn`](https://docs.tappay.mn/reference/catalog/opt-in.md), [`integration.catalog.optOut`](https://docs.tappay.mn/reference/catalog/opt-out.md) +118 more

### EVT-207 {#EVT-207}

HTTP status: `401` · Sandbox keys are not accepted in production. Use a production key (sk_live\_/pk_live\_).

**Cause** A sandbox key was sent to production.

**Fix** Use a production key that starts with sk_live\_ or pk_live\_.

**See** [/testing](https://docs.tappay.mn/testing.md)

Returned by: [`integration.apps.exchangeInstallCode`](https://docs.tappay.mn/reference/apps/exchange-install-code.md), [`integration.apps.revokeGrant`](https://docs.tappay.mn/reference/apps/revoke-grant.md), [`integration.billingPlans.archive`](https://docs.tappay.mn/reference/billing-plans/archive.md), [`integration.billingPlans.create`](https://docs.tappay.mn/reference/billing-plans/create.md), [`integration.billingPlans.get`](https://docs.tappay.mn/reference/billing-plans/get.md), [`integration.billingPlans.list`](https://docs.tappay.mn/reference/billing-plans/list.md), [`integration.billingPlans.update`](https://docs.tappay.mn/reference/billing-plans/update.md), [`integration.catalog.get`](https://docs.tappay.mn/reference/catalog/get.md), [`integration.catalog.optIn`](https://docs.tappay.mn/reference/catalog/opt-in.md), [`integration.catalog.optOut`](https://docs.tappay.mn/reference/catalog/opt-out.md) +118 more

### EVT-301 {#EVT-301}

HTTP status: `404` · The report was not found.

**Cause** No report with this id exists for your merchant.

**Fix** Check the report id. List reports to find the right one.

Returned by: [`integration.v1.getReport`](https://docs.tappay.mn/reference/reports/get.md)

### EVT-302 {#EVT-302}

HTTP status: `422` · The report date range is not valid.

**Cause** The date range of the report is not valid.

**Fix** Make the start date earlier than the end date. Keep the range inside the allowed limit.

Returned by: [`integration.v1.createReport`](https://docs.tappay.mn/reference/reports/create.md)

### EVT-305 {#EVT-305}

HTTP status: `422` · The settlement account does not belong to this merchant.

**Cause** The settlement account does not belong to this merchant.

**Fix** Use a settlement account of this merchant. Check the account id in the portal.

Returned by: [`integration.v1.createReport`](https://docs.tappay.mn/reference/reports/create.md)

### EVT-306 {#EVT-306}

HTTP status: `403` · This report type requires a key that is not limited to a terminal.

**Cause** This report type needs a key that is not limited to one terminal.

**Fix** Use a merchant-level key. Create one in the portal if you only have a terminal key.

Returned by: [`integration.v1.createReport`](https://docs.tappay.mn/reference/reports/create.md)

## After payment {#after-payment}

### AFP-001 {#AFP-001}

HTTP status: `409` · The payment intent is locked by another operation.

**Cause** Another operation is working on the payment intent right now.

**Fix** Wait a few seconds. Retry the request with the same Idempotency-Key.

**See** [/concepts/idempotency](https://docs.tappay.mn/concepts/idempotency.md)

Returned by: [`integration.v1.createPayment`](https://docs.tappay.mn/reference/payments/create.md), [`integration.v1.simulateIntent`](https://docs.tappay.mn/reference/sandbox/simulate-intent.md), [`integration.v1.simulatePayment`](https://docs.tappay.mn/reference/sandbox/simulate-payment.md), [`integration.v1.updateIntent`](https://docs.tappay.mn/reference/intents/update.md), [`integration.v1.updateInvoice`](https://docs.tappay.mn/reference/invoices/update.md), [`pos.payments.updateAmount`](https://docs.tappay.mn/reference/pos/payments/update-amount.md), [`public.checkout.simulateEmbeddedSession`](https://docs.tappay.mn/reference/embedded-sessions/simulate.md)

### AFP-002 {#AFP-002}

HTTP status: `409` · The payment intent has already been paid.

**Cause** The payment intent has already been paid.

**Fix** Read the intent to confirm its status. Create a new intent for a new payment.

**See** [/concepts/statuses](https://docs.tappay.mn/concepts/statuses.md)

Returned by: [`integration.cpm.create`](https://docs.tappay.mn/reference/cpm/create.md)

### AFP-003 {#AFP-003}

HTTP status: `410` · The payment intent has expired.

**Cause** The payment intent has expired.

**Fix** Create a new intent for the customer.

**See** [/concepts/statuses](https://docs.tappay.mn/concepts/statuses.md)

Returned by: [`integration.cpm.create`](https://docs.tappay.mn/reference/cpm/create.md), [`integration.v1.presentIntent`](https://docs.tappay.mn/reference/intents/present.md), [`public.checkout.presentEmbeddedSession`](https://docs.tappay.mn/reference/embedded-sessions/present.md)

### AFP-012 {#AFP-012}

HTTP status: `422` · The fulfillment of a payment that belongs to an invoice is updated on the invoice.

**Cause** A payment that belongs to an invoice has no fulfillment of its own.

**Fix** Update the fulfillment on the invoice instead. Use the invoice fulfillment operation.

Returned by: [`integration.v1.putPaymentFulfillment`](https://docs.tappay.mn/reference/fulfillment/put-payment.md)

### AFP-151 {#AFP-151}

HTTP status: `422` · The sandbox cannot set this receipt result for the receipt in its current state.

**Cause** The sandbox cannot set this result for the receipt in its current state. MERCHANT_TIMEOUT needs a PENDING receipt from the MERCHANT issuer, and REGISTERED needs a PENDING or FAILED receipt from the NODE issuer.

**Fix** Read the receipt and check its status and issuer. Send an outcome that fits them.

Returned by: [`integration.v1.simulateEbarimt`](https://docs.tappay.mn/reference/sandbox/simulate-ebarimt.md)

### AFP-170 {#AFP-170}

HTTP status: `422` · The split configuration is not valid for the e-barimt seller.

**Cause** The split setup does not fit the e-barimt seller of this payment.

**Fix** Check the e-barimt seller and the split rules in the portal. Make them consistent and try again.

Returned by: [`integration.split.putRules`](https://docs.tappay.mn/reference/rules/put.md)

## QR payments {#qr}

### QR-002 {#QR-002}

HTTP status: `422` · The QR value is not valid.

**Cause** The QR value is not a valid TapPay QR code.

**Fix** Scan the QR code again. Send the value exactly as it was read.

Returned by: [`integration.cpm.create`](https://docs.tappay.mn/reference/cpm/create.md)

### QR-003 {#QR-003}

HTTP status: `404` · The payment intent for this QR was not found.

**Cause** No payment intent exists for this QR code.

**Fix** Check that the QR code was made by your merchant. Create a new QR code if needed.

Returned by: [`integration.cpm.create`](https://docs.tappay.mn/reference/cpm/create.md)

### QR-006 {#QR-006}

HTTP status: `409` · This customer-presented QR code was already used.

**Cause** This customer QR code was already used for a payment.

**Fix** Ask the customer to show a new QR code. Do not reuse a scanned code.

Returned by: [`integration.cpm.create`](https://docs.tappay.mn/reference/cpm/create.md)

### QR-008 {#QR-008}

HTTP status: `422` · The payment point does not belong to this terminal or is not active.

**Cause** The payment point does not belong to this terminal, or it is not active.

**Fix** Use an active payment point of the same terminal. List the payment points of the terminal to find one.

**See** [/guides/qr-payments](https://docs.tappay.mn/guides/qr-payments.md)

Returned by: [`integration.v1.createInvoice`](https://docs.tappay.mn/reference/invoices/create.md), [`integration.v1.createInvoiceIntent`](https://docs.tappay.mn/reference/intents/create.md), [`pos.payments.qr`](https://docs.tappay.mn/reference/pos/payments/qr.md)

### QR-016 {#QR-016}

HTTP status: `404` · The sticker serial number is not valid for this merchant.

**Cause** The sticker serial number is not valid for your merchant.

**Fix** Check the serial number on the sticker. Use a sticker that is assigned to your merchant.

**See** [/guides/qr-payments](https://docs.tappay.mn/guides/qr-payments.md)

Returned by: [`integration.v1.createInvoice`](https://docs.tappay.mn/reference/invoices/create.md), [`integration.v1.createInvoiceIntent`](https://docs.tappay.mn/reference/intents/create.md)

### QR-021 {#QR-021}

HTTP status: `403` · The sticker is assigned to another system.

**Cause** The sticker is assigned to another system.

**Fix** Send the request from the system that owns the sticker. Or use a sticker assigned to your system.

**See** [/guides/qr-payments](https://docs.tappay.mn/guides/qr-payments.md)

Returned by: [`integration.v1.createInvoice`](https://docs.tappay.mn/reference/invoices/create.md), [`integration.v1.createInvoiceIntent`](https://docs.tappay.mn/reference/intents/create.md)

## Customers and recurring payments {#recurring}

### RCR-001 {#RCR-001}

HTTP status: `409` · A customer with this identifier already exists.

**Cause** A customer with this identifier already exists.

**Fix** Read the existing customer by its identifier. Use it instead of creating a new one.

Returned by: [`integration.customers.create`](https://docs.tappay.mn/reference/customers/create.md)

### RCR-002 {#RCR-002}

HTTP status: `422` · The customer request body is not valid.

**Cause** The customer request body is not valid.

**Fix** Read the error details to find the field. Correct it and send the request again.

Returned by: [`integration.checkout.createSession`](https://docs.tappay.mn/reference/checkout-sessions/create.md), [`integration.cpm.create`](https://docs.tappay.mn/reference/cpm/create.md), [`integration.customers.create`](https://docs.tappay.mn/reference/customers/create.md), [`integration.customers.update`](https://docs.tappay.mn/reference/customers/update.md), [`integration.v1.createPayment`](https://docs.tappay.mn/reference/payments/create.md)

### RCR-003 {#RCR-003}

HTTP status: `404` · The payment method was not found.

**Cause** No payment method with this id exists for your merchant.

**Fix** Check the payment method id. List the methods of the customer to find it.

Returned by: [`integration.customers.deletePaymentMethod`](https://docs.tappay.mn/reference/payment-methods/delete.md), [`integration.customers.getPaymentMethod`](https://docs.tappay.mn/reference/payment-methods/get.md), [`integration.subscriptions.create`](https://docs.tappay.mn/reference/subscriptions/create.md), [`integration.subscriptions.get`](https://docs.tappay.mn/reference/subscriptions/get.md), [`integration.subscriptions.update`](https://docs.tappay.mn/reference/subscriptions/update.md), [`integration.v1.createPayment`](https://docs.tappay.mn/reference/payments/create.md)

### RCR-004 {#RCR-004}

HTTP status: `422` · This kind of payment method is not available.

**Cause** This kind of payment method is not available for your merchant.

**Fix** Use a kind that is enabled for you. Ask TapPay support to enable other kinds.

Returned by: [`integration.customers.deletePaymentMethod`](https://docs.tappay.mn/reference/payment-methods/delete.md), [`integration.v1.createPayment`](https://docs.tappay.mn/reference/payments/create.md)

### RCR-012 {#RCR-012}

HTTP status: `422` · The provider credentials required for this payment are not configured.

**Cause** The provider credentials that this payment needs are not set up.

**Fix** Contact TapPay support to finish the provider setup. Retry after it is done.

Returned by: [`integration.v1.createPayment`](https://docs.tappay.mn/reference/payments/create.md)

### RCR-051 {#RCR-051}

HTTP status: `422` · Merchant-initiated payments are not enabled for this merchant.

**Cause** Merchant-initiated payments are not enabled for this merchant.

**Fix** Ask TapPay support to enable merchant-initiated payments. Retry after it is enabled.

Returned by: [`integration.subscriptions.create`](https://docs.tappay.mn/reference/subscriptions/create.md), [`integration.subscriptions.update`](https://docs.tappay.mn/reference/subscriptions/update.md), [`integration.v1.createPayment`](https://docs.tappay.mn/reference/payments/create.md)

### RCR-052 {#RCR-052}

HTTP status: `422` · The payment method requires action from the customer before it can be charged.

**Cause** The customer must take an action before this payment method can be charged.

**Fix** Ask the customer to finish the setup step. Charge the method after it is ready.

Returned by: [`integration.v1.createPayment`](https://docs.tappay.mn/reference/payments/create.md)

### RCR-053 {#RCR-053}

HTTP status: `422` · The payment method is not active.

**Cause** The payment method is not active.

**Fix** Ask the customer to add a new payment method. Charge only active methods.

Returned by: [`integration.v1.createPayment`](https://docs.tappay.mn/reference/payments/create.md)

### RCR-054 {#RCR-054}

HTTP status: `422` · The payment rail does not support merchant-initiated payments.

**Cause** The payment rail of this method does not support merchant-initiated payments.

**Fix** Use a method on a rail that supports them. Ask the customer to add one.

Returned by: [`integration.v1.createPayment`](https://docs.tappay.mn/reference/payments/create.md)

### RCR-055 {#RCR-055}

HTTP status: `422` · The mandate limit does not allow this charge.

**Cause** The mandate limit does not allow this charge.

**Fix** Lower the amount to fit the mandate. Or ask the customer to approve a higher limit.

Returned by: [`integration.v1.createPayment`](https://docs.tappay.mn/reference/payments/create.md)

### RCR-056 {#RCR-056}

HTTP status: `422` · The retry limit for this merchant-initiated payment has been reached.

**Cause** The retry limit for this payment was reached.

**Fix** Stop retrying this payment. Ask the customer to use another payment method.

Returned by: [`integration.v1.createPayment`](https://docs.tappay.mn/reference/payments/create.md)

### RCR-057 {#RCR-057}

HTTP status: `422` · The payment method's usage does not match this payment.

**Cause** The usage set for the payment method does not match this payment.

**Fix** Use a method saved for this kind of payment. Ask the customer to save a new one if needed.

Returned by: [`integration.v1.createPayment`](https://docs.tappay.mn/reference/payments/create.md)

### RCR-059 {#RCR-059}

HTTP status: `422` · The card token's scope does not allow this payment.

**Cause** The scope of the card token does not allow this payment.

**Fix** Use a token saved for this kind of payment. Ask the customer to save a new one.

Returned by: [`integration.v1.createPayment`](https://docs.tappay.mn/reference/payments/create.md)

### RCR-101 {#RCR-101}

HTTP status: `404` · The billing plan was not found.

**Cause** No billing plan with this id exists for your merchant.

**Fix** Check the plan id. List plans to find the right one.

Returned by: [`integration.billingPlans.archive`](https://docs.tappay.mn/reference/billing-plans/archive.md), [`integration.billingPlans.get`](https://docs.tappay.mn/reference/billing-plans/get.md), [`integration.billingPlans.update`](https://docs.tappay.mn/reference/billing-plans/update.md), [`integration.subscriptions.create`](https://docs.tappay.mn/reference/subscriptions/create.md), [`integration.subscriptions.get`](https://docs.tappay.mn/reference/subscriptions/get.md), [`integration.subscriptions.update`](https://docs.tappay.mn/reference/subscriptions/update.md)

### RCR-102 {#RCR-102}

HTTP status: `422` · The billing plan request body is not valid.

**Cause** The billing plan request body is not valid.

**Fix** Read the error details to find the field. Correct it and send the request again.

Returned by: [`integration.billingPlans.create`](https://docs.tappay.mn/reference/billing-plans/create.md), [`integration.billingPlans.update`](https://docs.tappay.mn/reference/billing-plans/update.md)

### RCR-103 {#RCR-103}

HTTP status: `422` · The billing plan is archived and cannot be used.

**Cause** The billing plan is archived and cannot be used for new subscriptions.

**Fix** Choose an active plan. Create a new plan if you need the same terms.

Returned by: [`integration.subscriptions.create`](https://docs.tappay.mn/reference/subscriptions/create.md), [`integration.subscriptions.update`](https://docs.tappay.mn/reference/subscriptions/update.md)

### RCR-110 {#RCR-110}

HTTP status: `404` · The subscription was not found.

**Cause** No subscription with this id exists for your merchant.

**Fix** Check the subscription id. List subscriptions to find the right one.

Returned by: [`integration.subscriptions.cancel`](https://docs.tappay.mn/reference/subscriptions/cancel.md), [`integration.subscriptions.create`](https://docs.tappay.mn/reference/subscriptions/create.md), [`integration.subscriptions.get`](https://docs.tappay.mn/reference/subscriptions/get.md), [`integration.subscriptions.listCycles`](https://docs.tappay.mn/reference/subscriptions/list-cycles.md), [`integration.subscriptions.pause`](https://docs.tappay.mn/reference/subscriptions/pause.md), [`integration.subscriptions.resume`](https://docs.tappay.mn/reference/subscriptions/resume.md), [`integration.subscriptions.update`](https://docs.tappay.mn/reference/subscriptions/update.md)

### RCR-111 {#RCR-111}

HTTP status: `422` · The subscription request is not valid.

**Cause** The subscription request is not valid.

**Fix** Read the error details to find the field. Correct it and send the request again.

Returned by: [`integration.subscriptions.cancel`](https://docs.tappay.mn/reference/subscriptions/cancel.md), [`integration.subscriptions.create`](https://docs.tappay.mn/reference/subscriptions/create.md), [`integration.subscriptions.update`](https://docs.tappay.mn/reference/subscriptions/update.md)

### RCR-112 {#RCR-112}

HTTP status: `422` · The payment method cannot be used for recurring payments.

**Cause** The payment method cannot be used for recurring payments.

**Fix** Choose a method that supports recurring payments. Ask the customer to add one.

Returned by: [`integration.subscriptions.create`](https://docs.tappay.mn/reference/subscriptions/create.md), [`integration.subscriptions.update`](https://docs.tappay.mn/reference/subscriptions/update.md)

### RCR-113 {#RCR-113}

HTTP status: `422` · The payment method's mandate is not compatible with this subscription.

**Cause** The mandate of the payment method does not fit this subscription.

**Fix** Ask the customer to approve a mandate that covers the plan amount and period.

Returned by: [`integration.subscriptions.create`](https://docs.tappay.mn/reference/subscriptions/create.md), [`integration.subscriptions.update`](https://docs.tappay.mn/reference/subscriptions/update.md)

### RCR-118 {#RCR-118}

HTTP status: `422` · A subscription without a payment method needs a customer email or an active payer link.

**Cause** The subscription has no payment method, and the customer has no email or active payer link.

**Fix** Add an email to the customer or create a payer link first. Or create the subscription with a payment method.

**See** [/guides/customers-recurring](https://docs.tappay.mn/guides/customers-recurring.md)

Returned by: [`integration.subscriptions.create`](https://docs.tappay.mn/reference/subscriptions/create.md)

## Customer-presented codes and terminals {#pos}

### POS-001 {#POS-001}

HTTP status: `401` · The POS client id or client secret is invalid.

**Cause** The POS client id or client secret is wrong.

**Fix** Check the client id and client secret that TapPay issued for your POS. Request a new token with the correct values.

**See** [/reference/pos/auth/token](https://docs.tappay.mn/reference/pos/auth/token.md)

Returned by: [`pos.auth.token`](https://docs.tappay.mn/reference/pos/auth/token.md)

### POS-002 {#POS-002}

HTTP status: `401` · The POS access token is missing, invalid or expired.

**Cause** The POS access token is missing, wrong or expired.

**Fix** Request a new token and send it in the Authorization header as a Bearer token. The SDK PosClient renews the token for you.

**See** [/reference/pos/auth/token](https://docs.tappay.mn/reference/pos/auth/token.md)

Returned by: [`pos.bankTerminals.list`](https://docs.tappay.mn/reference/pos/bank-terminals/list.md), [`pos.bankTerminals.sync`](https://docs.tappay.mn/reference/pos/bank-terminals/sync.md), [`pos.payments.cpm`](https://docs.tappay.mn/reference/pos/payments/cpm.md), [`pos.payments.get`](https://docs.tappay.mn/reference/pos/payments/get.md), [`pos.payments.qr`](https://docs.tappay.mn/reference/pos/payments/qr.md), [`pos.payments.refund`](https://docs.tappay.mn/reference/pos/payments/refund.md), [`pos.payments.updateAmount`](https://docs.tappay.mn/reference/pos/payments/update-amount.md), [`pos.sandbox.createTerminalRequest`](https://docs.tappay.mn/reference/pos/sandbox/create-terminal-request.md), [`pos.sandbox.simulate`](https://docs.tappay.mn/reference/pos/sandbox/simulate.md), [`pos.sandbox.simulateTerminalRequest`](https://docs.tappay.mn/reference/pos/sandbox/simulate-terminal-request.md) +8 more

### POS-003 {#POS-003}

HTTP status: `401` · The POS API key is invalid or revoked.

**Cause** The POS API key is wrong or was revoked.

**Fix** Send the active POS API key in the X-API-Key header. Ask TapPay support for a new key if it was revoked.

**See** [/reference/pos/auth/token](https://docs.tappay.mn/reference/pos/auth/token.md)

Returned by: [`pos.bankTerminals.list`](https://docs.tappay.mn/reference/pos/bank-terminals/list.md), [`pos.bankTerminals.sync`](https://docs.tappay.mn/reference/pos/bank-terminals/sync.md), [`pos.payments.cpm`](https://docs.tappay.mn/reference/pos/payments/cpm.md), [`pos.payments.get`](https://docs.tappay.mn/reference/pos/payments/get.md), [`pos.payments.qr`](https://docs.tappay.mn/reference/pos/payments/qr.md), [`pos.payments.refund`](https://docs.tappay.mn/reference/pos/payments/refund.md), [`pos.payments.updateAmount`](https://docs.tappay.mn/reference/pos/payments/update-amount.md), [`pos.sandbox.createTerminalRequest`](https://docs.tappay.mn/reference/pos/sandbox/create-terminal-request.md), [`pos.sandbox.simulate`](https://docs.tappay.mn/reference/pos/sandbox/simulate.md), [`pos.sandbox.simulateTerminalRequest`](https://docs.tappay.mn/reference/pos/sandbox/simulate-terminal-request.md) +8 more

### POS-004 {#POS-004}

HTTP status: `401` · The request timestamp is outside the allowed time window.

**Cause** The request timestamp is too far from the server time.

**Fix** Sync the clock of your POS server. Sign each request with the current time just before you send it.

**See** [/reference/pos/auth/token](https://docs.tappay.mn/reference/pos/auth/token.md)

Returned by: [`pos.bankTerminals.list`](https://docs.tappay.mn/reference/pos/bank-terminals/list.md), [`pos.bankTerminals.sync`](https://docs.tappay.mn/reference/pos/bank-terminals/sync.md), [`pos.payments.cpm`](https://docs.tappay.mn/reference/pos/payments/cpm.md), [`pos.payments.get`](https://docs.tappay.mn/reference/pos/payments/get.md), [`pos.payments.qr`](https://docs.tappay.mn/reference/pos/payments/qr.md), [`pos.payments.refund`](https://docs.tappay.mn/reference/pos/payments/refund.md), [`pos.payments.updateAmount`](https://docs.tappay.mn/reference/pos/payments/update-amount.md), [`pos.sandbox.createTerminalRequest`](https://docs.tappay.mn/reference/pos/sandbox/create-terminal-request.md), [`pos.sandbox.simulate`](https://docs.tappay.mn/reference/pos/sandbox/simulate.md), [`pos.sandbox.simulateTerminalRequest`](https://docs.tappay.mn/reference/pos/sandbox/simulate-terminal-request.md) +8 more

### POS-005 {#POS-005}

HTTP status: `401` · The request signature is invalid.

**Cause** The request signature does not match the request.

**Fix** Sign the method, path, timestamp and raw body with your POS signing secret. The SDK PosClient signs each request for you.

**See** [/reference/pos/auth/token](https://docs.tappay.mn/reference/pos/auth/token.md)

Returned by: [`pos.bankTerminals.list`](https://docs.tappay.mn/reference/pos/bank-terminals/list.md), [`pos.bankTerminals.sync`](https://docs.tappay.mn/reference/pos/bank-terminals/sync.md), [`pos.payments.cpm`](https://docs.tappay.mn/reference/pos/payments/cpm.md), [`pos.payments.get`](https://docs.tappay.mn/reference/pos/payments/get.md), [`pos.payments.qr`](https://docs.tappay.mn/reference/pos/payments/qr.md), [`pos.payments.refund`](https://docs.tappay.mn/reference/pos/payments/refund.md), [`pos.payments.updateAmount`](https://docs.tappay.mn/reference/pos/payments/update-amount.md), [`pos.sandbox.createTerminalRequest`](https://docs.tappay.mn/reference/pos/sandbox/create-terminal-request.md), [`pos.sandbox.simulate`](https://docs.tappay.mn/reference/pos/sandbox/simulate.md), [`pos.sandbox.simulateTerminalRequest`](https://docs.tappay.mn/reference/pos/sandbox/simulate-terminal-request.md) +8 more

### POS-006 {#POS-006}

HTTP status: `401` · This request signature was already used.

**Cause** This request signature was already used once.

**Fix** Sign every request again with a new timestamp. Do not resend a signed request without signing it again.

**See** [/reference/pos/auth/token](https://docs.tappay.mn/reference/pos/auth/token.md)

Returned by: [`pos.bankTerminals.list`](https://docs.tappay.mn/reference/pos/bank-terminals/list.md), [`pos.bankTerminals.sync`](https://docs.tappay.mn/reference/pos/bank-terminals/sync.md), [`pos.payments.cpm`](https://docs.tappay.mn/reference/pos/payments/cpm.md), [`pos.payments.get`](https://docs.tappay.mn/reference/pos/payments/get.md), [`pos.payments.qr`](https://docs.tappay.mn/reference/pos/payments/qr.md), [`pos.payments.refund`](https://docs.tappay.mn/reference/pos/payments/refund.md), [`pos.payments.updateAmount`](https://docs.tappay.mn/reference/pos/payments/update-amount.md), [`pos.sandbox.createTerminalRequest`](https://docs.tappay.mn/reference/pos/sandbox/create-terminal-request.md), [`pos.sandbox.simulate`](https://docs.tappay.mn/reference/pos/sandbox/simulate.md), [`pos.sandbox.simulateTerminalRequest`](https://docs.tappay.mn/reference/pos/sandbox/simulate-terminal-request.md) +8 more

### POS-007 {#POS-007}

HTTP status: `401` · A client certificate is required for this request.

**Cause** This POS client must send a client certificate, and none was sent.

**Fix** Send the request over TLS with the client certificate issued for your POS. Ask TapPay support if you have no certificate.

**See** [/guides/pos-terminal](https://docs.tappay.mn/guides/pos-terminal.md)

Returned by: [`pos.bankTerminals.list`](https://docs.tappay.mn/reference/pos/bank-terminals/list.md), [`pos.bankTerminals.sync`](https://docs.tappay.mn/reference/pos/bank-terminals/sync.md), [`pos.payments.cpm`](https://docs.tappay.mn/reference/pos/payments/cpm.md), [`pos.payments.get`](https://docs.tappay.mn/reference/pos/payments/get.md), [`pos.payments.qr`](https://docs.tappay.mn/reference/pos/payments/qr.md), [`pos.payments.refund`](https://docs.tappay.mn/reference/pos/payments/refund.md), [`pos.payments.updateAmount`](https://docs.tappay.mn/reference/pos/payments/update-amount.md), [`pos.sandbox.createTerminalRequest`](https://docs.tappay.mn/reference/pos/sandbox/create-terminal-request.md), [`pos.sandbox.simulate`](https://docs.tappay.mn/reference/pos/sandbox/simulate.md), [`pos.sandbox.simulateTerminalRequest`](https://docs.tappay.mn/reference/pos/sandbox/simulate-terminal-request.md) +8 more

### POS-016 {#POS-016}

HTTP status: `404` · The POS payment was not found.

**Cause** No POS payment with this id exists for your POS client.

**Fix** Check the payment id. Use the POS client that created the payment.

**See** [/reference/pos/payments/get](https://docs.tappay.mn/reference/pos/payments/get.md)

Returned by: [`pos.payments.get`](https://docs.tappay.mn/reference/pos/payments/get.md), [`pos.payments.refund`](https://docs.tappay.mn/reference/pos/payments/refund.md), [`pos.payments.updateAmount`](https://docs.tappay.mn/reference/pos/payments/update-amount.md), [`pos.sandbox.simulate`](https://docs.tappay.mn/reference/pos/sandbox/simulate.md)

### POS-017 {#POS-017}

HTTP status: `409` · The POS payment cannot be refunded in its current state.

**Cause** The POS payment is not paid, or it was already refunded, so it cannot be refunded now.

**Fix** Read the payment to check its status. Refund only a paid payment, and only once.

**See** [/reference/pos/payments/refund](https://docs.tappay.mn/reference/pos/payments/refund.md)

Returned by: [`pos.payments.refund`](https://docs.tappay.mn/reference/pos/payments/refund.md)

### POS-031 {#POS-031}

HTTP status: `422` · The payment kind in the customer-presented code is not available.

**Cause** The payment kind in the customer code is not available for your merchant.

**Fix** Accept only the kinds that are enabled for you. Ask the customer to use another method.

Returned by: [`integration.cpm.create`](https://docs.tappay.mn/reference/cpm/create.md)

### POS-032 {#POS-032}

HTTP status: `422` · Alipay customer-presented codes are not supported.

**Cause** Alipay customer codes are not supported.

**Fix** Ask the customer to pay with another method.

Returned by: [`integration.cpm.create`](https://docs.tappay.mn/reference/cpm/create.md)

### POS-033 {#POS-033}

HTTP status: `422` · The customer-presented code format is not recognized.

**Cause** TapPay does not recognize the format of the customer code.

**Fix** Scan the code again. Send the value exactly as it was read.

Returned by: [`integration.cpm.create`](https://docs.tappay.mn/reference/cpm/create.md)

### POS-058 {#POS-058}

HTTP status: `422` · This terminal setting is read-only.

**Cause** This terminal setting is read-only.

**Fix** Do not send this setting. Contact TapPay support if it must change.

Returned by: [`integration.split.createBeneficiary`](https://docs.tappay.mn/reference/beneficiaries/create.md), [`integration.split.putRules`](https://docs.tappay.mn/reference/rules/put.md)

### POS-080 {#POS-080}

HTTP status: `404` · The bank terminal was not found.

**Cause** No bank terminal with this id exists for your merchant.

**Fix** List the bank terminals. Use an id from the list.

**See** [/guides/terminal-payments](https://docs.tappay.mn/guides/terminal-payments.md)

Returned by: [`integration.terminalPayments.create`](https://docs.tappay.mn/reference/terminal-payments/create.md), [`pos.sandbox.createTerminalRequest`](https://docs.tappay.mn/reference/pos/sandbox/create-terminal-request.md)

### POS-081 {#POS-081}

HTTP status: `422` · The bank terminal link is not active.

**Cause** The link of the bank terminal is not active.

**Fix** Use a bank terminal with an active link. Check the link status in the bank terminal list.

**See** [/guides/terminal-payments](https://docs.tappay.mn/guides/terminal-payments.md)

Returned by: [`integration.terminalPayments.create`](https://docs.tappay.mn/reference/terminal-payments/create.md), [`pos.sandbox.createTerminalRequest`](https://docs.tappay.mn/reference/pos/sandbox/create-terminal-request.md)

### POS-082 {#POS-082}

HTTP status: `409` · The terminal already has an open payment request.

**Cause** The terminal already has an open payment request.

**Fix** Wait for the open request to finish, or cancel it. Then send the new request.

**See** [/guides/terminal-payments](https://docs.tappay.mn/guides/terminal-payments.md)

Returned by: [`integration.terminalPayments.create`](https://docs.tappay.mn/reference/terminal-payments/create.md), [`pos.sandbox.createTerminalRequest`](https://docs.tappay.mn/reference/pos/sandbox/create-terminal-request.md)

### POS-083 {#POS-083}

HTTP status: `404` · The terminal payment request was not found.

**Cause** No terminal payment request with this id exists.

**Fix** Check the request id. Use the credential that created the request.

**See** [/guides/terminal-payments](https://docs.tappay.mn/guides/terminal-payments.md)

Returned by: [`integration.terminalPayments.cancel`](https://docs.tappay.mn/reference/terminal-payments/cancel.md), [`integration.terminalPayments.get`](https://docs.tappay.mn/reference/terminal-payments/get.md), [`pos.sandbox.simulateTerminalRequest`](https://docs.tappay.mn/reference/pos/sandbox/simulate-terminal-request.md), [`pos.terminalRequests.cancel`](https://docs.tappay.mn/reference/pos/terminal-requests/cancel.md), [`pos.terminalRequests.cardResult`](https://docs.tappay.mn/reference/pos/terminal-requests/card-result.md), [`pos.terminalRequests.cardStarted`](https://docs.tappay.mn/reference/pos/terminal-requests/card-started.md), [`pos.terminalRequests.cardVoided`](https://docs.tappay.mn/reference/pos/terminal-requests/card-voided.md), [`pos.terminalRequests.delivered`](https://docs.tappay.mn/reference/pos/terminal-requests/delivered.md), [`pos.terminalRequests.get`](https://docs.tappay.mn/reference/pos/terminal-requests/get.md), [`pos.terminalRequests.undeliverable`](https://docs.tappay.mn/reference/pos/terminal-requests/undeliverable.md)

### POS-084 {#POS-084}

HTTP status: `409` · The terminal payment request cannot change in its current state.

**Cause** The terminal payment request cannot change in its current status.

**Fix** Read the request to see its status. Send only the actions that the status allows.

**See** [/guides/terminal-payments](https://docs.tappay.mn/guides/terminal-payments.md)

Returned by: [`integration.terminalPayments.cancel`](https://docs.tappay.mn/reference/terminal-payments/cancel.md), [`pos.sandbox.simulateTerminalRequest`](https://docs.tappay.mn/reference/pos/sandbox/simulate-terminal-request.md), [`pos.terminalRequests.cancel`](https://docs.tappay.mn/reference/pos/terminal-requests/cancel.md), [`pos.terminalRequests.cardResult`](https://docs.tappay.mn/reference/pos/terminal-requests/card-result.md), [`pos.terminalRequests.cardStarted`](https://docs.tappay.mn/reference/pos/terminal-requests/card-started.md), [`pos.terminalRequests.cardVoided`](https://docs.tappay.mn/reference/pos/terminal-requests/card-voided.md), [`pos.terminalRequests.delivered`](https://docs.tappay.mn/reference/pos/terminal-requests/delivered.md), [`pos.terminalRequests.undeliverable`](https://docs.tappay.mn/reference/pos/terminal-requests/undeliverable.md)

### POS-085 {#POS-085}

HTTP status: `409` · The QR is locked by a wallet payment in progress; do not start the card payment.

**Cause** The customer is paying the QR with a wallet, so the QR is locked.

**Fix** Do not start the card payment. Wait for the result of the wallet payment.

**See** [/guides/terminal-payments](https://docs.tappay.mn/guides/terminal-payments.md)

Returned by: [`pos.sandbox.simulateTerminalRequest`](https://docs.tappay.mn/reference/pos/sandbox/simulate-terminal-request.md), [`pos.terminalRequests.cardStarted`](https://docs.tappay.mn/reference/pos/terminal-requests/card-started.md)

### POS-086 {#POS-086}

HTTP status: `409` · A card payment is in progress on the terminal; the request cannot be cancelled now.

**Cause** A card payment is in progress on the terminal, so the request cannot be cancelled now.

**Fix** Wait for the result of the card payment. Read the request before you try again.

**See** [/guides/terminal-payments](https://docs.tappay.mn/guides/terminal-payments.md)

Returned by: [`integration.terminalPayments.cancel`](https://docs.tappay.mn/reference/terminal-payments/cancel.md)

### POS-087 {#POS-087}

HTTP status: `409` · The terminal payment request is already paid.

**Cause** The terminal payment request is already paid.

**Fix** Do not charge the card again. Read the request to get the payment.

**See** [/guides/terminal-payments](https://docs.tappay.mn/guides/terminal-payments.md)

Returned by: [`pos.sandbox.simulateTerminalRequest`](https://docs.tappay.mn/reference/pos/sandbox/simulate-terminal-request.md), [`pos.terminalRequests.cardResult`](https://docs.tappay.mn/reference/pos/terminal-requests/card-result.md), [`pos.terminalRequests.cardStarted`](https://docs.tappay.mn/reference/pos/terminal-requests/card-started.md)

### POS-088 {#POS-088}

HTTP status: `409` · The terminal payment request is already closed.

**Cause** The terminal payment request is already closed.

**Fix** Do not start a card payment for this request. The merchant creates a new request if the customer still needs to pay.

**See** [/guides/terminal-payments](https://docs.tappay.mn/guides/terminal-payments.md)

Returned by: [`pos.sandbox.simulateTerminalRequest`](https://docs.tappay.mn/reference/pos/sandbox/simulate-terminal-request.md), [`pos.terminalRequests.cardResult`](https://docs.tappay.mn/reference/pos/terminal-requests/card-result.md), [`pos.terminalRequests.cardStarted`](https://docs.tappay.mn/reference/pos/terminal-requests/card-started.md)

### POS-089 {#POS-089}

HTTP status: `422` · The amount does not match the terminal payment request.

**Cause** The card amount does not match the amount of the terminal payment request.

**Fix** Charge exactly the requested amount. Send the result with that amount.

**See** [/guides/terminal-payments](https://docs.tappay.mn/guides/terminal-payments.md)

Returned by: [`pos.terminalRequests.cardResult`](https://docs.tappay.mn/reference/pos/terminal-requests/card-result.md)

### POS-090 {#POS-090}

HTTP status: `422` · Too many terminals in one sync request (at most 1,000).

**Cause** The sync request has more than 1,000 terminals.

**Fix** Split the terminals into batches of at most 1,000. Send one sync request per batch.

**See** [/guides/terminal-payments](https://docs.tappay.mn/guides/terminal-payments.md)

Returned by: [`pos.bankTerminals.sync`](https://docs.tappay.mn/reference/pos/bank-terminals/sync.md)

### POS-091 {#POS-091}

HTTP status: `403` · The terminal push flow is not enabled for this POS client.

**Cause** The terminal push flow is not enabled for this POS client.

**Fix** Contact TapPay support to enable the terminal push flow.

**See** [/guides/terminal-payments](https://docs.tappay.mn/guides/terminal-payments.md)

Returned by: [`integration.terminalPayments.create`](https://docs.tappay.mn/reference/terminal-payments/create.md), [`pos.bankTerminals.list`](https://docs.tappay.mn/reference/pos/bank-terminals/list.md), [`pos.bankTerminals.sync`](https://docs.tappay.mn/reference/pos/bank-terminals/sync.md), [`pos.payments.cpm`](https://docs.tappay.mn/reference/pos/payments/cpm.md), [`pos.payments.get`](https://docs.tappay.mn/reference/pos/payments/get.md), [`pos.payments.qr`](https://docs.tappay.mn/reference/pos/payments/qr.md), [`pos.payments.refund`](https://docs.tappay.mn/reference/pos/payments/refund.md), [`pos.payments.updateAmount`](https://docs.tappay.mn/reference/pos/payments/update-amount.md), [`pos.sandbox.createTerminalRequest`](https://docs.tappay.mn/reference/pos/sandbox/create-terminal-request.md), [`pos.sandbox.simulate`](https://docs.tappay.mn/reference/pos/sandbox/simulate.md) +9 more

### POS-093 {#POS-093}

HTTP status: `422` · The terminal or payment point for this POS machine was not found or is inactive. Choose an active terminal.

**Cause** The bank terminal link needs an active payment point.

**Fix** Assign an active payment point to the bank terminal. Then send the request again.

**See** [/guides/terminal-payments](https://docs.tappay.mn/guides/terminal-payments.md)

Returned by: [`integration.terminalPayments.create`](https://docs.tappay.mn/reference/terminal-payments/create.md), [`pos.sandbox.createTerminalRequest`](https://docs.tappay.mn/reference/pos/sandbox/create-terminal-request.md)

## Wallet and disputes {#wallet}

### WAL-051 {#WAL-051}

HTTP status: `422` · The card token is temporarily blocked after repeated declines.

**Cause** This card was declined too many times in a short period and is blocked for now.

**Fix** Ask the customer to use another card or payment method. They can try again after 24 hours.

Returned by: [`integration.cpm.create`](https://docs.tappay.mn/reference/cpm/create.md)

### WAL-093 {#WAL-093}

HTTP status: `404` · The dispute was not found.

**Cause** No dispute with this id exists for your merchant or for the terminals your key can see.

**Fix** Check the dispute id. Use the objectId of the dispute event.

Returned by: [`integration.disputes.retrieve`](https://docs.tappay.mn/reference/disputes/retrieve.md)

## Foreign switch {#foreign-switch}

### FSW-023 {#FSW-023}

HTTP status: `409` · The operation cannot proceed because the funding account is missing.

**Cause** The operation needs a funding account, but none is set up.

**Fix** Contact TapPay support to set up the funding account. Retry after it is set up.

Returned by: [`integration.refunds.create`](https://docs.tappay.mn/reference/refunds/create.md), [`integration.v1.finalizePayment`](https://docs.tappay.mn/reference/pre-auth/finalize.md)

## Provider setup {#psp}

### PSP-003 {#PSP-003}

HTTP status: `422` · The provider terminal required for this payment is not configured.

**Cause** The provider terminal that this payment needs is not set up.

**Fix** Contact TapPay support to finish the terminal setup. Retry after it is done.

Returned by: [`public.checkout.getEmbeddedSession`](https://docs.tappay.mn/reference/embedded-sessions/get.md), [`public.checkout.presentEmbeddedSession`](https://docs.tappay.mn/reference/embedded-sessions/present.md), [`public.checkout.simulateEmbeddedSession`](https://docs.tappay.mn/reference/embedded-sessions/simulate.md)

## Payer links and service setup {#merchant-service}

### LNK-001 {#LNK-001}

HTTP status: `404` · The payer link was not found.

**Cause** No payer link with this id exists for your merchant.

**Fix** Check the payer link id. Create a new link if needed.

Returned by: [`integration.payerLinks.get`](https://docs.tappay.mn/reference/payer-links/get.md), [`integration.payerLinks.revoke`](https://docs.tappay.mn/reference/payer-links/revoke.md)

### LNK-021 {#LNK-021}

HTTP status: `404` · The request-to-pay was not found.

**Cause** No request-to-pay with this id exists for your merchant.

**Fix** Check the request id. Create a new request if needed.

Returned by: [`integration.r2pRequests.get`](https://docs.tappay.mn/reference/r2p-requests/get.md), [`integration.r2pRequests.listByIntent`](https://docs.tappay.mn/reference/r2p-requests/list-by-intent.md)

### SVC-044 {#SVC-044}

HTTP status: `422` · The merchant service configuration is not valid.

**Cause** The service setup of the merchant is not valid.

**Fix** Contact TapPay support to correct the service setup. Retry after it is fixed.

Returned by: [`integration.cpm.create`](https://docs.tappay.mn/reference/cpm/create.md), [`integration.v1.createPayment`](https://docs.tappay.mn/reference/payments/create.md)

## Pre-authorization {#preauth}

### PRE-002 {#PRE-002}

HTTP status: `422` · A field in the request is not allowed for pre-authorization payments.

**Cause** A field in the request is not allowed for pre-authorization payments.

**Fix** Remove the field named in the error details. Send the request again.

Returned by: [`integration.checkout.createSession`](https://docs.tappay.mn/reference/checkout-sessions/create.md), [`integration.cpm.create`](https://docs.tappay.mn/reference/cpm/create.md), [`integration.v1.createPayment`](https://docs.tappay.mn/reference/payments/create.md)

### PRE-005 {#PRE-005}

HTTP status: `409` · The payment is not a pre-authorization.

**Cause** The payment is not a pre-authorization, so it cannot be finalized.

**Fix** Finalize only payments created as pre-authorizations.

Returned by: [`integration.v1.autoFinalizePayment`](https://docs.tappay.mn/reference/sandbox/auto-finalize-payment.md), [`integration.v1.finalizePayment`](https://docs.tappay.mn/reference/pre-auth/finalize.md), [`integration.v1.simulateIntent`](https://docs.tappay.mn/reference/sandbox/simulate-intent.md), [`public.checkout.simulateEmbeddedSession`](https://docs.tappay.mn/reference/embedded-sessions/simulate.md)

### PRE-006 {#PRE-006}

HTTP status: `409` · The pre-authorization was already finalized.

**Cause** The pre-authorization was already finalized.

**Fix** Read the payment to confirm its status. Do not finalize it again.

**See** [/concepts/statuses](https://docs.tappay.mn/concepts/statuses.md)

Returned by: [`integration.v1.autoFinalizePayment`](https://docs.tappay.mn/reference/sandbox/auto-finalize-payment.md), [`integration.v1.finalizePayment`](https://docs.tappay.mn/reference/pre-auth/finalize.md)

### PRE-007 {#PRE-007}

HTTP status: `409` · The pre-authorization has expired and can no longer be finalized.

**Cause** The pre-authorization has expired, so it can no longer be finalized.

**Fix** Create a new pre-authorization. Finalize it before it expires.

Returned by: [`integration.v1.autoFinalizePayment`](https://docs.tappay.mn/reference/sandbox/auto-finalize-payment.md), [`integration.v1.finalizePayment`](https://docs.tappay.mn/reference/pre-auth/finalize.md)

### PRE-008 {#PRE-008}

HTTP status: `422` · The finalize amount is not valid.

**Cause** The finalize amount is not valid. It may be zero or above the authorized amount.

**Fix** Send an amount above zero and not above the authorized amount.

Returned by: [`integration.v1.autoFinalizePayment`](https://docs.tappay.mn/reference/sandbox/auto-finalize-payment.md), [`integration.v1.finalizePayment`](https://docs.tappay.mn/reference/pre-auth/finalize.md)

### PRE-009 {#PRE-009}

HTTP status: `409` · A finalize for this pre-authorization is already in progress.

**Cause** A finalize for this pre-authorization is already running.

**Fix** Wait a few seconds. Read the payment to see the result.

**See** [/concepts/idempotency](https://docs.tappay.mn/concepts/idempotency.md)

Returned by: [`integration.v1.autoFinalizePayment`](https://docs.tappay.mn/reference/sandbox/auto-finalize-payment.md), [`integration.v1.finalizePayment`](https://docs.tappay.mn/reference/pre-auth/finalize.md)

### PRE-010 {#PRE-010}

HTTP status: `409` · The pre-authorization capture failed.

**Cause** The capture of the pre-authorization failed.

**Fix** Read the payment for the failure reason. Retry the finalize if the reason allows it.

Returned by: [`integration.v1.autoFinalizePayment`](https://docs.tappay.mn/reference/sandbox/auto-finalize-payment.md), [`integration.v1.finalizePayment`](https://docs.tappay.mn/reference/pre-auth/finalize.md)

### PRE-011 {#PRE-011}

HTTP status: `409` · The pre-authorization has not been finalized yet.

**Cause** The pre-authorization has not been finalized yet.

**Fix** Finalize the pre-authorization first. Then repeat the request.

Returned by: [`integration.refunds.create`](https://docs.tappay.mn/reference/refunds/create.md), [`integration.v1.finalizePayment`](https://docs.tappay.mn/reference/pre-auth/finalize.md)

### PRE-014 {#PRE-014}

HTTP status: `422` · The authorization type is not allowed for this payment.

**Cause** The authorization type is not allowed for this payment.

**Fix** Use a authorization type that the payment allows. Check the reference for the allowed values.

Returned by: [`integration.checkout.createSession`](https://docs.tappay.mn/reference/checkout-sessions/create.md), [`integration.cpm.create`](https://docs.tappay.mn/reference/cpm/create.md), [`integration.v1.createPayment`](https://docs.tappay.mn/reference/payments/create.md)

### PRE-015 {#PRE-015}

HTTP status: `409` · The payment is authorized and waiting for capture, so it cannot be cancelled.

**Cause** The payment is authorized and waits for capture, so it cannot be cancelled.

**Fix** Finalize the payment, then refund it. Or let the authorization expire.

Returned by: [`integration.v1.cancelIntent`](https://docs.tappay.mn/reference/intents/cancel.md), [`integration.v1.cancelInvoice`](https://docs.tappay.mn/reference/invoices/cancel.md)

## Saved cards {#token-switch}
