Get settlement transactions

curl -X GET 
	-H 'authorization: Bearer v4.public.eyJpc3MiOiJs...' 
	https://api.sandbox.ledyer.com/v1/settlements/:settlementId/tx

Path parameters

settlementId string
The settlement ID

Query parameters

fromId string Optional
The lastId value from the previous response.
size number Optional
Number of transactions to fetch. Defaults to 100.
{
	"lastId": "sl_1G0NyDkjZAAJBWlcC3mdE9vFxyZ",
	"settlementId": "sl_2J0NyDkjZIIJBWlcC3mdE9vH3gA",
	"tx": [
		{
			"accountId": "ac_1xWqkkS5aIbxCJsoseRhSd0OJyD",
			"amount": {
				"amount": "10.00",
				"currency": "SEK",
				"formatted": "10.00",
				"formattedWithCurrency": "SEK 10.00",
				"minorUnits": 1000
			},
			"capturedAt": "2023-02-24T00:00:00Z",
			"feeVatAmount": {
				"amount": "-0.50",
				"currency": "SEK",
				"formatted": "-0.50",
				"formattedWithCurrency": "-SEK 0.50",
				"minorUnits": -50
			},
			"fixedFeeAmount": {
				"amount": "-1.00",
				"currency": "SEK",
				"formatted": "-1.00",
				"formattedWithCurrency": "-SEK 1.00",
				"minorUnits": -100
			},
			"invoiceCreatedAt": "2023-02-24T00:00:00Z",
			"invoiceNumber": "INV-1001",
			"merchantReference": "order-123",
			"payoutAmount": {
				"amount": "8.00",
				"currency": "SEK",
				"formatted": "8.00",
				"formattedWithCurrency": "SEK 8.00",
				"minorUnits": 800
			},
			"storeId": "681575494",
			"txType": "sale",
			"variableFeeAmount": {
				"amount": "-1.00",
				"currency": "SEK",
				"formatted": "-1.00",
				"formattedWithCurrency": "-SEK 1.00",
				"minorUnits": -100
			},
			"vatAmount": {
				"amount": "2.00",
				"currency": "SEK",
				"formatted": "2.00",
				"formattedWithCurrency": "SEK 2.00",
				"minorUnits": 200
			},
			"vatBreakdown": [
				{
					"amount": {
						"amount": "2.00",
						"currency": "SEK",
						"formatted": "2.00",
						"formattedWithCurrency": "SEK 2.00",
						"minorUnits": 200
					},
					"vat": 25
				}
			]
		}
	]
}
lastId string
Use this ID to fetch the next page.
settlementId string
Settlement ID.
tx array of settlement transactions
Returned settlement transactions.
Show child attributes
accountId string
Merchant account ID.
amount object
Transaction amount.
capturedAt string
Capture timestamp.
feeVatAmount object
Fee VAT amount.
fixedFeeAmount object
Fixed fee amount.
invoiceCreatedAt string
Invoice creation timestamp.
invoiceNumber string
Invoice number.
merchantReference string
Merchant reference.
payoutAmount object
Payout amount after fees.
storeId string
Store ID.
txType string
One of sale, credit, reversal, invoiceServicePayout, otherCharge, yearlyFee, monthlyFee, or other.
variableFeeAmount object
Variable fee amount.
vatAmount object
VAT amount.
vatBreakdown array
VAT grouped by rate.
Show child attributes
amount object
VAT amount for this rate.
vat integer
VAT rate percentage.