Skip to main content
This section details the API response formats, HTTP status codes, and a comprehensive reference of all transaction status and error codes used by the Localpayment API. Mastering these response patterns and codes is essential for building robust integrations, accurately tracking transaction lifecycles, handling various scenarios, and providing clear user feedback. Localpayment API responses provide clear indicators of request outcomes through HTTP status codes and structured status objects. While response structures may vary by endpoint, they consistently include key information for proper handling.

HTTP Status Codes

Standard HTTP status codes indicating request success or failure

Status Objects

Detailed status information for transaction outcomes

Clear Error Handling

Structured error information for debugging and resolution

HTTP Status Codes

The API uses standard HTTP status codes to indicate request outcomes at the protocol level. These codes provide the first indication of whether your request was successful.

Success Codes (2xx)

Client Errors (4xx)

Server Errors (5xx)


Status Object

The status object provides detailed, Localpayment-specific information about transaction outcomes and is included in most API responses involving financial operations.

Status Object Structure

Status Object Fields


Common Response Patterns

Successful Payment Response

Error Response Pattern


Transaction Status and Error Guide

Select a specific transaction type below for a detailed list of its statuses and error codes.

Payin

Status and error codes for receiving funds via virtual accounts, cards, and APMs.

Payout

Status and error codes for sending funds to beneficiaries.

Refund

Status and error codes for returning funds to a customer.

Chargeback

Status and error codes for disputed transactions and forced reversals.

Return

Status and error codes for returned payments and failed settlements.

Recall

Status and error codes for payment recalls and reversals.

Credit

Status and error codes for credit transactions and adjustments.

Debit

Status and error codes for debit transactions and fund deductions.

Subscriptions

Status and error codes for recurring billing and subscription lifecycles.

Currency Exchange

Status and error codes for foreign exchange transactions.

Wire In

Status and error codes for incoming wire transfers.

Wire Out

Status and error codes for outgoing wire transfers.

Expenses

Status and error codes for fee deductions and expense transactions.

Recurring Fee

Status and error codes for periodic fee charges.

Webhooks Guide

Learn how to receive real-time status updates

Error Handling

Guide to handling failed transactions

Support

Get help with specific status issues
Pro TipImplement comprehensive logging that captures both status codes and error codes with timestamps. This creates clear audit trails for compliance requirements and makes debugging issues significantly faster. Include the full error response in logs, not just the error code.

Last modified on November 23, 2026