Developers Guides Settlements & Reporting

Settlements & Reporting

Retrieve settlement reports, view adjustments, manage merchant charges, and register customer profiles for reconciliation and billing.

OnlineAPISettlementsReportingChargesAdjustments

Add this to your codebase

Paste it into Claude Code, Codex, Cursor or any coding agent. It points the agent at this guide in machine-readable form, so it writes against the real API instead of a guess. Wire up the MCP server once and it can read the rest of the platform too.

Overview

Once transactions are processed, you need visibility into what was settled, what fees were applied, and how to bill merchants for additional services. The Settlements and Reporting APIs give you that visibility.

This guide covers four related capabilities:

  1. Settlement reports — retrieve payout summaries for a merchant over a given period.
  2. Adjustments — view tips, surcharges, insurance, and other amounts applied to orders.
  3. Merchant charges — create, update, and list one-time or recurring charges billed to a merchant.
  4. Customer details — register customer profiles with addresses, contact information, and linked payment cards.

It also covers reading a settlement report: why a monthly total and the payouts inside that month rarely match, and which figure answers which merchant question.

Prerequisites

  • A valid partnerId and merchantId
  • API credentials (API key, API secret)

Settlement Reports

Settlement reports summarize a merchant’s settled transactions for a selected time period. Reports can be configured as DAILY or MONTHLY depending on the merchant’s setup.

Fetch settlement reports

GET /partners/:partnerId/merchants/:merchantId/reports

Response:

{
  "status": "SUCCESS",
  "data": [
    {
      "payoutId": "po_83a1f...",
      "merchantId": "m_91b2c...",
      "transactionStartDate": "2026-01-01",
      "transactionEndDate": "2026-01-31",
      "settlementDate": "2026-02-03",
      "reportType": "MONTHLY",
      "url": "https://reports.surfboardpayments.com/settlements/po_83a1f...",
      "totalSale": 1250000,
      "totalRefund": 35000,
      "fee": 18750,
      "payout": 1196250
    }
  ],
  "message": "Settlement reports fetched successfully"
}

Response fields

FieldTypeDescription
payoutIdstringIdentifies this specific payout
transactionStartDatestringFirst transaction date covered (YYYY-MM-DD)
transactionEndDatestringLast transaction date covered (YYYY-MM-DD)
settlementDatestringDate the payout was issued (YYYY-MM-DD)
reportTypestringMONTHLY or DAILY
urlstringDirect link to view the full report
totalSalenumberTotal sales amount in smallest currency unit
totalRefundnumberTotal refunded amount
feenumberTotal fees deducted
payoutnumberNet payout to the merchant

Use the url field to download or redirect merchants to a detailed breakdown of every transaction in the settlement period.

Reading a Settlement Report

This is the part support gets asked about most, so it is worth understanding before a merchant asks you.

A monthly report carries two fee totals, and they are usually different numbers:

  • The header figure is the fee on transactions that happened in that calendar month. It is on a transaction-date basis.
  • The fee column in the payouts breakdown sums the fees of the payouts issued during that month. It is on a payout-date basis.

Both are correct. They measure different things, and at a month boundary they cannot agree.

Why the two totals differ

Payouts lag transactions by two to three days. A payout issued on 1 May settles transactions from the end of April, and the transactions from the last days of May are paid out in June. So the payout-date total borrows from the previous month at one end and loses to the next month at the other.

Take a merchant on daily payouts in May:

TransactionsPaid outFee
29—30 April1—2 May43.50
1—28 Mayduring May1,196.50
29—31 May1—3 June87.20

The monthly report header reads 1,283.70, the fee on May’s transactions: 1,196.50 + 87.20. The fee column of the payouts breakdown reads 1,240.00, the fee on May’s payouts: 43.50 + 1,196.50. Nothing has been charged twice, and neither figure is wrong.

The same shift applies to the sales and payout columns, not just fees. It is simply most visible on fees, because that is the number merchants ask about.

Mapping a transaction to its report

One rule covers every case:

The monthly report follows the transaction date. The payouts breakdown follows the payout date.

Every transaction is therefore counted in two places, and at a month boundary those two places are different months:

Transaction happenedPaid outCounted in the monthly report forAppears in the payouts breakdown for
30 April2 MayAprilMay
15 May17 MayMayMay
31 May2 JuneMayJune

The middle row is what people expect. The first and last rows are what the questions are about.

Drawn on a calendar, the two views are the same trading, shifted by the settlement lag:

transactions  │ 29 Apr  30 Apr │ 01 May  ...  30 May  31 May │
paid out      │ 01 May  02 May │ 03 May  ...  01 Jun  02 Jun │
                └──────┬───────┘              └──────┬──────┘
                 April's trading,              May's trading,
                 inside May's payouts          inside June's payouts

To show a merchant where a specific transaction went, take its date, add the settlement lag, and read off both columns. That is the whole mapping.

The fee is not taken out of the payout

A payout settles transactions. The Surfboard fee for the period is collected separately, once the month has closed, rather than being netted off each payout as it goes.

That matters when a merchant reconciles a bank statement. They see payouts arriving through the month, then one fee deduction afterwards. The deduction that lands in early June is May’s fees, and it matches the May monthly report header, not the sum of the May payout rows. A merchant who compares the June deduction against the May payout breakdown is comparing two different periods and will always find a gap.

If you do see a fee deducted from an individual payout, that is not the normal arrangement — check the merchant’s billing setup before explaining it as expected behaviour.

Which figure answers which question

The merchant asksUse
”What were my fees for May?”The monthly report header fee. Transaction basis, the month they actually traded.
”What was deducted from my account in June?”The May monthly report fee total. Fees are collected after the month closes.
”Why was this payout this amount?”The payout row, or the daily report for that settlement date.
”What did I sell in May?”The monthly report header sales figure, not the sum of May’s payouts.

The short version to give a merchant: your monthly report tells you what you traded and what it cost you that month; your payouts tell you what arrived in the bank and when. The two are offset by a couple of days at each end of the month.

Refunds land in the period they were processed

A refund processed in June against a May sale reduces June’s payouts. It does not reopen May. A merchant looking for a refund in the month of the original sale will not find it, and the monthly totals are not wrong for lacking it.

Before escalating a mismatch

Work through this first — it resolves most reports of a mismatch:

  1. Take the two figures and subtract. Does the difference equal the fees or sales of the days either side of the month boundary? If so, the report is right and this is the transaction-date versus payout-date offset.
  2. Is a refund or an adjustment sitting in a different period from its original sale?
  3. Is the merchant comparing a fee deduction against the payouts of the same month rather than the month before?

If none of those explain it, raise it with support with the payoutId values and the two figures you are comparing. Both come from the same settlement reports endpoint, so quoting the IDs is faster than describing the rows.

Getting the numbers over the API

The report list gives you both bases without downloading a file. transactionStartDate and transactionEndDate are the transaction basis; settlementDate is the payout basis. Filter on the pair you mean:

GET /partners/:partnerId/merchants/:merchantId/reports
  • Fees a merchant incurred in May: the MONTHLY report whose transactionStartDate falls in May.
  • Fees inside payouts issued in May: sum fee across the reports whose settlementDate falls in May.

Reading those two into a support tool, side by side and labelled, answers the question before it gets asked.

Adjustments

Adjustments represent additional amounts applied to orders during a transaction — tips, surcharges, insurance payments, and similar line items. The Adjustments API lets you retrieve all adjustments at the merchant level for tracking and reconciliation.

Fetch adjustments

GET /partners/:partnerId/merchants/:merchantId/adjustments?startDate=2026-01-01&endDate=2026-01-31

Both startDate and endDate are required query parameters in YYYY-MM-DD format.

Response:

{
  "status": "SUCCESS",
  "data": [
    {
      "adjustmentId": "adj_44c2e...",
      "adjustmentType": "TIP",
      "amount": "2500"
    },
    {
      "adjustmentId": "adj_55d3f...",
      "adjustmentType": "SURCHARGE",
      "amount": "1500"
    }
  ],
  "message": "Adjustments fetched successfully"
}

Response fields

FieldTypeDescription
adjustmentIdstringUnique identifier for the adjustment
adjustmentTypestringType of adjustment (e.g. TIP, SURCHARGE, INSURANCE)
amountstringAdjustment amount in smallest currency unit

Merchant Charges

Merchant charges let partners bill merchants for services, fees, or subscriptions. A charge can be one-time or recurring, and supports VAT.

Create a charge

POST /partners/:partnerId/merchants/:merchantId/charges
{
  "description": "Monthly platform fee",
  "currency": "752",
  "amount": 5000000,
  "vat": 35,
  "billingDate": "2026-03-01",
  "recurring": {
    "frequency": "monthly",
    "billingEndDate": "2027-03-01"
  }
}

Response:

{
  "status": "SUCCESS",
  "data": {
    "chargeId": "chg_72a4d..."
  },
  "message": "Charge created successfully"
}

Create charge request fields

FieldTypeRequiredDescription
descriptionstringYesBrief description of the charge
currencystringYesThree-digit ISO currency code
amountnumberYesCharge amount in smallest currency unit
vatnumberNoVAT amount
billingDatestringNoEffective date (YYYY-MM-DD)
recurring.frequencystringNoBilling frequency (see table below)
recurring.billingEndDatestringNoWhen to stop recurring charges (YYYY-MM-DD)

Frequency options

ValueCycle
dailyEvery day
twiceWeeklyTwice per week
weeklyEvery week
tenDaysEvery 10 days
fortNightlyEvery 2 weeks
monthlyEvery month
everyTwoMonthsEvery 2 months
trimesterEvery 4 months
quarterlyEvery 3 months
twiceYearlyEvery 6 months
annuallyEvery year
unscheduledNo fixed schedule

Fetch a charge by ID

GET /partners/:partnerId/merchants/:merchantId/charges/:chargeId

The response includes subscription details, VAT, frequency, billing dates, and any associated subCharges. Sub-charges are individual billing instances generated from a recurring charge.

Key response fields:

FieldTypeDescription
isSubscriptionChargebooleanWhether this is a recurring charge
descriptionstringCharge description
amountnumberCharge amount in smallest currency unit
vatnumberVAT applied
frequencystringBilling frequency
billingStartDatestringStart date (ISO 8601)
billingEndDatestringEnd date (ISO 8601)
subChargesarrayIndividual billing instances with their own chargeId, amount, status, and billingDate

Update a charge

Modify an existing charge’s amount, VAT, or recurring configuration:

PUT /partners/:partnerId/merchants/:merchantId/charges/:chargeId
{
  "amount": 650000,
  "vat": 15,
  "recurring": {
    "updateType": "onlyNext",
    "billingEndDate": "2027-10-23"
  }
}

The recurring.updateType field controls the scope of the update:

ValueBehaviour
onlyNextApply the change only to the next billing cycle
allFutureApply the change to all future billing cycles

List all merchant charges

GET /partners/:partnerId/merchants/:merchantId/charges

Returns a paginated list of all charges (one-time and recurring) for the merchant, including chargeId, description, amount, vat, status, billingDate, and whether the charge is subscription-based.

Billing Plans

A merchant charge is what a merchant is billed. A billing plan is the pricing behind it: the rates that apply to a card brand, a payment method and a terminal type, broken down by where the card comes from and what kind of card it is. Plans are defined once at partner level and then assigned to merchants.

Create billing plans

POST /partners/:partnerId/billing-plans
{
  "plans": [
    {
      "id": "SP_STANDARD_CARD",
      "paymentMethod": "CARD",
      "cardBrand": "VISA",
      "terminalType": "STANDARD",
      "planType": "FIXED",
      "description": "Standard card pricing 2026",
      "domesticDebitNonCommercial": 0.6,
      "domesticCreditNonCommercial": 0.9,
      "eeaDebitNonCommercial": 0.8,
      "eeaCreditNonCommercial": 1.1,
      "internationalDebitNonCommercial": 1.9,
      "internationalCreditNonCommercial": 2.3,
      "fixedCost": 30,
      "vatPercentage": 25
    }
  ]
}

plans is an array, so a full price list goes up in one call.

FieldDescription
idYour identifier for the plan.
paymentMethod, cardBrand, terminalTypeWhat the plan applies to. One plan per combination.
planTypeFIXED for a flat percentage or amount, VARIABLE for pricing that depends on transaction type.
domestic*, eea*, international*Percentage rates, split by debit or credit and commercial or non-commercial.
minimumCeilingMinimum amount for the rate to apply.
fixedCostFixed cost per transaction, in minor units.
fixedPercentageFlat percentage across the board.
vatPercentageVAT applied to the plan.

The twelve rate fields are not padding. Interchange differs by card origin and card type, so a single blended rate either loses money on international commercial cards or overcharges on domestic debit. Price the grid.

Manage plans

GET    /partners/:partnerId/billing-plans
GET    /partners/:partnerId/billing-plans/:id
DELETE /partners/:partnerId/billing-plans/:id
GET    /partners/:partnerId/merchants/:merchantId/plans

The last one is the useful one in support: it returns the plans actually assigned to a merchant, which is the answer to “why was I charged this”. Plans are attached to a merchant during onboarding through the transactionPricingPlan and displayProducts control fields — see Merchant Onboarding and Order and Return Terminals.

Customer Details

The Customer API lets you create and retrieve customer profiles. Profiles store personal information, addresses, contact details, and linked payment cards, enabling richer order data and streamlined checkout experiences.

Create a customer

POST /customers
{
  "firstName": "John",
  "middleName": "Doe",
  "birthDate": "1990/03/04",
  "countryCode": "SE",
  "address": [
    {
      "addressLine1": "Storgatan 12",
      "city": "Stockholm",
      "countryCode": "SE",
      "postalCode": "111 23",
      "role": "shipping"
    }
  ],
  "phoneNumbers": [
    {
      "phoneNumber": {
        "code": "46",
        "number": "701234567"
      },
      "role": "own"
    }
  ],
  "emails": [
    {
      "email": "john.doe@example.com",
      "role": "personal"
    }
  ],
  "cardIds": [
    "824c514bfe001805f0"
  ]
}

Response:

{
  "status": "SUCCESS",
  "data": {
    "customerId": "cust_61e3b..."
  },
  "message": "Customer created successfully"
}

Customer fields

FieldTypeRequiredDescription
firstNamestringNoCustomer’s first name
lastNamestringNoCustomer’s last name
birthDatestringNoDate of birth (YYYY/MM/DD)
countryCodestringNoTwo-letter ISO country code
addressarrayNoArray of address objects (shipping, billing, etc.)
address.addressLine1stringYesPrimary address line
address.citystringYesCity
address.countryCodestringYesTwo-letter ISO country code
address.postalCodestringYesPostal code
address.rolestringNoAddress purpose (shipping, billing)
emailsarrayNoArray of email objects with email and role
phoneNumbersarrayNoArray of phone objects with nested phoneNumber (code, number) and role
cardIdsarrayNoPayment card identifiers to associate with the customer

Fetch a customer

GET /customers/:customerId

Returns the full customer profile including all addresses, emails, phone numbers, and linked card IDs.

API Quick Reference

OperationMethodEndpoint
Fetch settlement reportsGET/partners/:partnerId/merchants/:merchantId/reports
Fetch adjustmentsGET/partners/:partnerId/merchants/:merchantId/adjustments
Create merchant chargePOST/partners/:partnerId/merchants/:merchantId/charges
Fetch charge by IDGET/partners/:partnerId/merchants/:merchantId/charges/:chargeId
Update merchant chargePUT/partners/:partnerId/merchants/:merchantId/charges/:chargeId
List all merchant chargesGET/partners/:partnerId/merchants/:merchantId/charges
Create billing plansPOST/partners/:partnerId/billing-plans
Fetch billing plansGET/partners/:partnerId/billing-plans
Fetch billing plan by IDGET/partners/:partnerId/billing-plans/:id
Remove billing planDELETE/partners/:partnerId/billing-plans/:id
Fetch a merchant’s plansGET/partners/:partnerId/merchants/:merchantId/plans
Create customerPOST/customers
Fetch customer by IDGET/customers/:customerId

Ready to get started?

Create a sandbox account and start building your integration today.