Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. By signing up you are subscribing to the APIs.io and API Evangelist
newsletters — you can unsubscribe from any issue. See our
Privacy Policy and Terms.
openapi: 3.2.0
info:
title: SJ Exchange Offers API
version: '2026-10-15'
description: 'GENERATED FROM DOCUMENTATION by API Evangelist on 2026-10-15: 17 operation(s) read from 3 public documentation page(s) (each operation names its page in x-source). This is not the provider''s published contract; SJ has published no machine-readable contract that the pipeline could find. Engine: local.'
x-evidence-tiers:
code-example: 1
documentation: 16
pages-with-code: 1
pages-read: 3
x-generated-from: documentation
x-provenance: generated
x-authored-by: API Evangelist
x-generated: '2026-10-15'
x-generator: generate-contract-from-docs.py
x-engine: local
x-sources:
- https://developer.sj.se/apis/reseller-api/get-started
- https://developer.sj.se/apis/reseller-api/reference-documentation
- https://developer.sj.se/apis/customer-api/reference-documentation
servers:
- url: https://login.microsoftonline.com
tags:
- name: Exchange Offers
paths:
/exchange-offers:
post:
operationId: post_exchange_offers
tags:
- Exchange Offers
summary: POST /exchange-offers creates an exchange offer for a booking
x-source: https://developer.sj.se/apis/reseller-api/reference-documentation
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/PostExchangeOffersRequest'
responses:
'201':
description: Success (status as documented)
x-evidence:
kind: documentation
components:
schemas:
PostExchangeOffersRequest:
type: object
properties:
exchangeOffer:
type: string
description: Details of the exchange request, including fulfillments to exchange.
required:
- exchangeOffer