Getting Started

CoreSettle API

The CoreSettle API lets you programmatically access your payment data. List and retrieve payments and their underlying transactions, inspect gateway configuration, and receive webhook events in your own systems.

Base URL

https://api.coresettle.com/v1

All API endpoints are relative to this base URL. All requests must be made over HTTPS.

Quick Start

1

Get your API key

Generate an API key from your merchant dashboard. Keep it secret and never expose it in client-side code.

2

Add the authentication header

Include your API key in the X-API-KEY header with every request.

3

Make your first API call

cURL
curl https://api.coresettle.com/v1/payments \
  -H "X-API-KEY: api_live_your_key_here"

Documentation

Payments

Resources2 endpoints

Create a hosted payment and retrieve it. Inspect status, amounts, and under/overpayment across the payment lifecycle.

View Docs

Payment Transactions

Resources2 endpoints

List and retrieve the individual attempts behind a payment, including card, crypto, open banking, refunds, and dispute detail.

View Docs

Merchant Gateways

Resources1 endpoint

Retrieve the payment gateways assigned to your account. View supported currencies, payment methods, transaction limits, and fees.

View Docs

Webhooks

Events3 events

Verify signatures and handle the payment.succeeded, payment.underpaid, and payment.expired events delivered to your endpoint.

View Docs

Authentication

SecurityAPI Key

Secure your requests with API key authentication. Generate keys from your merchant dashboard and include them in every request.

View Docs

Error Reference

ReferenceEnvelope + codes

Understand error codes and handle failures. All errors follow a consistent envelope format with machine-readable codes.

View Docs

Response Format

All responses are returned as JSON. Successful responses include a success flag and a data object. Error responses include an error object with a machine-readable code and human-readable message.

Success Response
{
  "success": true,
  "data": {
    "id": "507f1f77bcf86cd799439011",
    "externalId": "pay_3Qx8Zk2eZvKYlo2C",
    "amountMinor": 9999,
    "currency": "USD",
    "status": "succeeded"
  }
}
Error Response
{
  "success": false,
  "error": {
    "code": "INVOICE_NOT_FOUND",
    "message": "Payment not found"
  }
}