Download OpenAPI specification:Download
Safepay API - API spec. is not final, changes may be introduced
Connect flow.
Generates a ConnectUrl where the user can be validated and connected to Safepay.
Missing user information, such as phone number or KYC/KYB this will trigger addtional steps in the flow, based on 'Skip' properties.
After the flow the user will be redirected to the ReturnUrl if supplied, otherwise the flow will end on a exit page.
The user should be redirected to the ConnectUrl to start the flow.
| X-Correlation-Id | string [ 20 .. 64 ] characters Correlation ID used for logging. |
| referenceId | null or string |
| bankAccountOnboarding | null or boolean Obsolete - Use 'SkipBankAccount' instead |
| returnUrl | null or string |
| allowPrivate | null or boolean |
| allowBusiness | null or boolean |
| skipUI | null or boolean Skips Safepay UI - if set to true, then all UI/UX must be handled by the caller. All other Skip properties is ignored |
| skipPhoneNumber | null or boolean |
| skipEmail | null or boolean |
| skipBankAccount | null or boolean |
| skipKYC | null or boolean |
| skipKYB | null or boolean |
{- "referenceId": null,
- "bankAccountOnboarding": null,
- "returnUrl": null,
- "allowPrivate": null,
- "allowBusiness": null,
- "skipUI": null,
- "skipPhoneNumber": null,
- "skipEmail": null,
- "skipBankAccount": null,
- "skipKYC": null,
- "skipKYB": null
}{- "connectUrl": "string"
}Gets information from the connect flow based on 'ReferenceId'.
This should be used to translate a 'ReferenceId' into a 'SafepayAccountId'.
| referenceId required | string |
| X-Correlation-Id | string [ 20 .. 64 ] characters Correlation ID used for logging. |
{- "id": null,
- "safepayAccountId": "string",
- "connections": [
- {
- "referenceId": "string",
- "connected": "2019-08-24T14:15:22Z"
}
]
}Creates a new guest user and a connection to Safepay.
NOTICE: This feature is not available for all customers.
| referenceId required | string |
| X-Correlation-Id | string [ 20 .. 64 ] characters Correlation ID used for logging. |
| name | null or string |
| phoneNumber | null or string |
null or string | |
| cvr | null or string |
null or CreateGuestUser.Request.RequestAddress (object) |
{- "name": null,
- "phoneNumber": null,
- "email": null,
- "cvr": null,
- "address": { }
}{- "safepayAccountId": "string"
}Deletes the connection to Safepay.
NOTICE: If there is no connection to Safepay, then the user won't be able to part of a transaction.
This endpoint should not be used unless there is a very specifc purpose.
| referenceId required | string |
| X-Correlation-Id | string [ 20 .. 64 ] characters Correlation ID used for logging. |
Create document for signing
| X-Correlation-Id | string [ 20 .. 64 ] characters Correlation ID used for logging. |
| title required | string |
| document required | string <binary> (IFormFile) |
| transactionId | null or string |
{- "documentId": "string"
}Get document
| documentId required | string |
| X-Correlation-Id | string [ 20 .. 64 ] characters Correlation ID used for logging. |
{- "documentId": "string",
- "title": null,
- "signed": null,
- "signers": [
- {
- "safepayAccountId": "string",
- "referenceId": null,
- "name": null,
- "title": null,
- "signed": null
}
]
}Sign document.
Generates a unique URL where the user can sign the document. If supplied the user will be redirect to ReturnUrl after signature flow.
| documentId required | string |
| X-Correlation-Id | string [ 20 .. 64 ] characters Correlation ID used for logging. |
| safepayAccountId required | string |
| title | null or string |
| referenceId | null or string |
| returnUrl | null or string |
| allowPrivate | null or boolean |
| allowBusiness | null or boolean |
{- "safepayAccountId": "string",
- "title": null,
- "referenceId": null,
- "returnUrl": null,
- "allowPrivate": null,
- "allowBusiness": null
}{- "url": "string"
}Download document.
Returns a URL where the document can be downloaded.
If the document is signed, the URL links to the signed document, otherwise it links to the original uploaded document.
| documentId required | string |
| X-Correlation-Id | string [ 20 .. 64 ] characters Correlation ID used for logging. |
{- "url": "string"
}List users
| Skip | integer or string <int32> ^-?(?:0|[1-9]\d*)$ |
| Take | integer or string <int32> ^-?(?:0|[1-9]\d*)$ |
| Public | boolean |
| X-Correlation-Id | string [ 20 .. 64 ] characters Correlation ID used for logging. |
{- "items": [
- {
- "safepayAccountId": "string",
- "name": "string",
- "phoneNumber": null,
- "phoneNumberVerified": true,
- "created": "2019-08-24T14:15:22Z",
- "type": "string"
}
]
}Get user
| safepayAccountId required | string |
| X-Correlation-Id | string [ 20 .. 64 ] characters Correlation ID used for logging. |
{- "id": "string",
- "safepayAccountId": "string",
- "connections": [
- {
- "referenceId": "string",
- "connected": "2019-08-24T14:15:22Z"
}
], - "name": "string",
- "kyc": {
- "level": null
}, - "email": null,
- "phoneNumber": null,
- "phoneNumberVerified": true,
- "dateOfBirth": null,
- "cpr": null,
- "cvr": null,
- "address": null,
- "type": "string"
}List banks.
Lists the banks available for bank account onboarding
| X-Correlation-Id | string [ 20 .. 64 ] characters Correlation ID used for logging. |
{- "banks": [
- {
- "bankId": "string",
- "name": "string",
- "bankCentral": "string"
}
]
}List bank accounts connected to user
| safepayAccountId required | string |
| X-Correlation-Id | string [ 20 .. 64 ] characters Correlation ID used for logging. |
{- "items": [
- {
- "bank": "string",
- "bankId": "string",
- "bankAccountId": "string",
- "accountNumber": null,
- "bban": "string",
- "iban": "string",
- "accountName": "string",
- "isDefault": true
}
]
}Initialize bank account onboarding.
This will generate a URL where the user will be validated and able to select bank accounts for the supplied BankId. If ReturnUrl is supplied, the user will be returned after bank account validation.
The user should be redirected to the returned URL.
| safepayAccountId required | string |
| X-Correlation-Id | string [ 20 .. 64 ] characters Correlation ID used for logging. |
| bankId required | string |
| returnUrl required | string |
null or ValueType<Psd2Type> (any) |
{- "bankId": "string",
- "returnUrl": "string",
- "psd2Type": { }
}{- "url": "string"
}Results for bank account onboarding.
This should be called this after the user has returned from bank account initialize. The result will include the bank accounts selected by the user.
Use the BankAccountId to add given bank account to the user via /add endpoint.
Notice: This is tempoary data, the results will only be available for a short time period.
| safepayAccountId required | string |
| X-Correlation-Id | string [ 20 .. 64 ] characters Correlation ID used for logging. |
{- "bankId": "string",
- "bankName": "string",
- "bankCentral": "string",
- "bankAccounts": [
- {
- "bankAccountId": "string",
- "name": null,
- "ownerName": null,
- "bban": null,
- "iban": null,
- "currency": null
}
]
}Add bank account.
Use the 'BankAccountId' from GET /users/{safepayAccountId}/bank-accounts/initialize to add the specific bank account.
Notice: First bank account added to Safepay Account will be marked as default.
| safepayAccountId required | string |
| X-Correlation-Id | string [ 20 .. 64 ] characters Correlation ID used for logging. |
| bankId required | string |
| bankAccountId required | string |
{- "bankId": "string",
- "bankAccountId": "string"
}Set bank account as default.
Default bank account will be used for payout.
| safepayAccountId required | string |
| X-Correlation-Id | string [ 20 .. 64 ] characters Correlation ID used for logging. |
| bankId required | string |
| bankAccountId required | string |
{- "bankId": "string",
- "bankAccountId": "string"
}Delete bank account.
This will remove the bank account from the user.
Notice: There must be at least one bank account connected.
| safepayAccountId required | string |
| X-Correlation-Id | string [ 20 .. 64 ] characters Correlation ID used for logging. |
| bankId required | string |
| bankAccountId required | string |
{- "bankId": "string",
- "bankAccountId": "string"
}Returns a paginated list of the authenticated tenant's transactions, ordered by creation date (newest first).
Use 'skip' and 'take' to page through results and 'search'/'referenceId' to filter. The 'count' field reports the total number of matches, ignoring pagination.
| Skip | integer or string <int32> ^-?(?:0|[1-9]\d*)$ Number of transactions to skip, used for pagination. Defaults to 0. |
| Take | integer or string <int32> ^-?(?:0|[1-9]\d*)$ Maximum number of transactions to return. Defaults to 20 and is capped at 100. |
| Search | string Free-text search. Matches (case-insensitive, partial) against transaction id, reference id, title, description, payee/payer name, email and phone number, and vehicle details (registration, brand, model, VIN) for Auto transactions. |
| ReferenceId | string Filter by the tenant-supplied reference id (case-insensitive, partial match). |
| X-Correlation-Id | string [ 20 .. 64 ] characters Correlation ID used for logging. |
{- "items": [
- {
- "transactionId": "string",
- "amount": 0,
- "currency": "DKK",
- "status": "CREATED",
- "created": "2019-08-24T14:15:22Z",
- "referenceId": null,
- "payee": { },
- "payer": { },
- "title": null,
- "autoInformation": { },
- "fees": {
- "payee": 0,
- "payer": 0,
- "tenant": 0,
- "safepay": 0
}, - "payments": {
- "inbound": {
- "amount": 0,
- "currency": "DKK"
}
}, - "expectedCompletion": null
}
], - "count": 0
}Creates a 'Marketplace' transaction and initializes a new checkout flow.
At least one of 'payeeId' or 'payeeReferenceId' must be supplied to identify the payee. The 'amount' must cover the sum of the fees and any split payouts. Supply a 'uniquenessKey' to make creation idempotent.
| X-Correlation-Id | string [ 20 .. 64 ] characters Correlation ID used for logging. |
| payerId required | string Safepay Account Id for the payer. Required for marketplace transactions. |
| title required | string Title of the transaction, shown to the parties during checkout. Required for marketplace transactions. |
| payeeExtraFee | null or number or string <double> ^-?(?:0|[1-9]\d*)(?:\.\d+)?$ Optional additional administration fee charged to the payee. Only applied for eligible tenants. |
| payerExtraFee | null or number or string <double> ^-?(?:0|[1-9]\d*)(?:\.\d+)?$ Optional additional administration fee charged to the payer. Only applied for eligible tenants. |
| amount required | number or string <double> ^-?(?:0|[1-9]\d*)(?:\.\d+)?$ The amount of money the transaction should be based upon. The amount will be rounded to 2 decimals if more than two decimals are send. |
| currency | any (Currencies) Enum: "DKK" "EUR" The currency to use for the transaction and all related payments. If not specified the default is DKK. Supported: DKK, EUR |
| description | null or string Free-text description of the transaction. |
| imageUrls | Array of strings or null URLs to images describing the item being traded. |
| payeeId | null or string Safepay Account Id for payee |
| payeeReferenceId | null or string Your payee reference. This is most likely your unique user id for the payee |
| payerReferenceId | null or string Your payer reference. This is most likely your unique user id for the payer |
| payeePhoneNumber | null or string Phone number of the payee. Used to invite the payee when no Safepay Account Id or reference is supplied. |
| payerPhoneNumber | null or string Phone number of the payer. Used to invite the payer when no Safepay Account Id or reference is supplied. |
Array of objects or null (CreateTransactionBase.Request.RequestSplitPayout) Optional split payouts. Part of the transaction amount is paid out to other (business) Safepay Accounts when the transaction succeeds. | |
| payerFixedFee | null or number or string <double> ^-?(?:0|[1-9]\d*)(?:\.\d+)?$ The fixed fee used to calculate the payees fee taken before payouts. This fee is the fixed fee and the agreed Safepay Nordic fixed fee will be taken from this value. |
| payeeFixedFee | null or number or string <double> ^-?(?:0|[1-9]\d*)(?:\.\d+)?$ The fixed fee used to calculate the payers fee taken before payouts. This fee is the fixed fee and the agreed Safepay Nordic fixed fee will be taken from this value. |
| referenceId | null or string Your own reference for the transaction. Returned on the transaction and usable for filtering in 'List transactions'. |
| uniquenessKey | null or string The unique idempotency key for this transaction. There will only be at most one successful created transaction for this key |
| expectedCompletion | null or string <date-time> The date the transaction is expected to complete, if known. Must be in the future. |
{- "payerId": "string",
- "title": "string",
- "payeeExtraFee": null,
- "payerExtraFee": null,
- "amount": 0,
- "currency": "DKK",
- "description": null,
- "imageUrls": null,
- "payeeId": null,
- "payeeReferenceId": null,
- "payerReferenceId": null,
- "payeePhoneNumber": null,
- "payerPhoneNumber": null,
- "splitPayouts": null,
- "payerFixedFee": null,
- "payeeFixedFee": null,
- "referenceId": null,
- "uniquenessKey": null,
- "expectedCompletion": null
}{- "connectUrl": null,
- "transactionId": "string",
- "id": null,
- "checkoutUrl": "string"
}Creates an 'Auto' (vehicle) transaction and initializes a new checkout flow.
Supply vehicle details via 'autoInformation'. Enabling 'autoInformation.billOfSale' or 'autoInformation.debt' requires the corresponding module to be enabled for the tenant. The 'amount' must cover the sum of the fees and any split payouts. Supply a 'uniquenessKey' to make creation idempotent.
| X-Correlation-Id | string [ 20 .. 64 ] characters Correlation ID used for logging. |
object (CreateTransactionAuto.Request.RequestAutoInformation) Specific information for "Auto" transactions | |
| amount required | number or string <double> ^-?(?:0|[1-9]\d*)(?:\.\d+)?$ The amount of money the transaction should be based upon. The amount will be rounded to 2 decimals if more than two decimals are send. |
| currency | any (Currencies) Enum: "DKK" "EUR" The currency to use for the transaction and all related payments. If not specified the default is DKK. Supported: DKK, EUR |
| title | null or string Title of the transaction, shown to the parties during checkout. |
| description | null or string Free-text description of the transaction. |
| imageUrls | Array of strings or null URLs to images describing the item being traded. |
| payeeId | null or string Safepay Account Id for payee |
| payerId | null or string Safepay Account Id for payer |
| payeeReferenceId | null or string Your payee reference. This is most likely your unique user id for the payee |
| payerReferenceId | null or string Your payer reference. This is most likely your unique user id for the payer |
| payeePhoneNumber | null or string Phone number of the payee. Used to invite the payee when no Safepay Account Id or reference is supplied. |
| payerPhoneNumber | null or string Phone number of the payer. Used to invite the payer when no Safepay Account Id or reference is supplied. |
Array of objects or null (CreateTransactionBase.Request.RequestSplitPayout) Optional split payouts. Part of the transaction amount is paid out to other (business) Safepay Accounts when the transaction succeeds. | |
| payerFixedFee | null or number or string <double> ^-?(?:0|[1-9]\d*)(?:\.\d+)?$ The fixed fee used to calculate the payees fee taken before payouts. This fee is the fixed fee and the agreed Safepay Nordic fixed fee will be taken from this value. |
| payeeFixedFee | null or number or string <double> ^-?(?:0|[1-9]\d*)(?:\.\d+)?$ The fixed fee used to calculate the payers fee taken before payouts. This fee is the fixed fee and the agreed Safepay Nordic fixed fee will be taken from this value. |
| referenceId | null or string Your own reference for the transaction. Returned on the transaction and usable for filtering in 'List transactions'. |
| uniquenessKey | null or string The unique idempotency key for this transaction. There will only be at most one successful created transaction for this key |
| expectedCompletion | null or string <date-time> The date the transaction is expected to complete, if known. Must be in the future. |
{- "autoInformation": {
- "brand": null,
- "model": null,
- "year": null,
- "mileage": null,
- "registrationNumber": null,
- "vin": null,
- "retailAmount": null,
- "firstRegistration": null,
- "billOfSale": { },
- "debt": { }
}, - "amount": 0,
- "currency": "DKK",
- "title": null,
- "description": null,
- "imageUrls": null,
- "payeeId": null,
- "payerId": null,
- "payeeReferenceId": null,
- "payerReferenceId": null,
- "payeePhoneNumber": null,
- "payerPhoneNumber": null,
- "splitPayouts": null,
- "payerFixedFee": null,
- "payeeFixedFee": null,
- "referenceId": null,
- "uniquenessKey": null,
- "expectedCompletion": null
}{- "connectUrl": null,
- "transactionId": "string",
- "id": null,
- "checkoutUrl": "string"
}Returns the full details of a single transaction owned by the authenticated tenant, including parties, fees, payments and (for Auto transactions) vehicle, bill of sale and debt information.
| transactionId required | string |
| X-Correlation-Id | string [ 20 .. 64 ] characters Correlation ID used for logging. |
{- "transactionId": "string",
- "checkoutUrl": "string",
- "paymentGuideUrl": "string",
- "status": "CREATED",
- "referenceId": null,
- "amount": null,
- "currency": { },
- "fees": {
- "payee": 0,
- "payer": 0,
- "tenant": 0,
- "safepay": 0
}, - "payee": { },
- "payer": { },
- "title": null,
- "payments": {
- "inbound": {
- "amount": 0,
- "payments": [
- {
- "paymentId": "string",
- "payer": {
- "safepayAccountId": null,
- "referenceId": null,
- "name": null,
- "phoneNumber": null
}, - "method": "string",
- "amount": {
- "value": 0,
- "currency": "string"
}, - "currency": "DKK",
- "status": "string",
- "created": "2019-08-24T14:15:22Z",
- "authorized": null,
- "failed": null
}
]
}, - "outbound": {
- "amount": 0,
- "payments": [
- {
- "destination": null,
- "text": "string",
- "payee": {
- "safepayAccountId": null,
- "referenceId": null,
- "name": null,
- "phoneNumber": null
}, - "amount": 0,
- "currency": "DKK",
- "status": "string",
- "created": "2019-08-24T14:15:22Z",
- "authorized": null
}
]
}
}, - "autoInformation": { },
- "expectedCompletion": null
}Delete a transaction by 'transactionId'.
This is only allowed for transactions without payments. Look at 'Cancel transaction' to cancel transaction with payments.
| transactionId required | string |
| X-Correlation-Id | string [ 20 .. 64 ] characters Correlation ID used for logging. |
Cancel a transaction on behalf of Safepay Account.
You must supply a reason for the cancel request.
Payments will be returned/refunded to Payer.
Succeeded transactions can't be cancelled.
| transactionId required | string |
| X-Correlation-Id | string [ 20 .. 64 ] characters Correlation ID used for logging. |
| safepayAccountId required | string Safepay Account Id on whose behalf the transaction is cancelled. Must belong to the authenticated tenant. |
| reason required | string Reason for cancelling the transaction. |
{- "safepayAccountId": "string",
- "reason": "string"
}Succeed a transaction by 'transactionId'.
The transaction will be marked as succeeded and payouts defined in transaction will be scheduled for payout.
Cancelled transactions can't be processed for payout.
| transactionId required | string |
| X-Correlation-Id | string [ 20 .. 64 ] characters Correlation ID used for logging. |
| safepayAccountId required | string Safepay Account Id on whose behalf the transaction is succeeded. Must belong to the authenticated tenant. |
{- "safepayAccountId": "string"
}Updates modifiable transaction properties: the expected completion date and (for Auto transactions) the vehicle retail amount.
| transactionId required | string |
| X-Correlation-Id | string [ 20 .. 64 ] characters Correlation ID used for logging. |
| expectedCompletion | null or string <date-time> New expected completion date for the transaction. Must be in the future. Set to null to clear it. |
| retailAmount | null or number or string <double> ^-?(?:0|[1-9]\d*)(?:\.\d+)?$ New retail/market value of the vehicle. Only applies to Auto transactions. |
{- "expectedCompletion": null,
- "retailAmount": null
}"string"Reimburses the payer of a transaction by the specified amount.
The payer will be identified from the transaction and reimbursed for the given amount.
| transactionId required | string |
| X-Correlation-Id | string [ 20 .. 64 ] characters Correlation ID used for logging. |
| amount required | number or string <double> ^-?(?:0|[1-9]\d*)(?:\.\d+)?$ The amount to reimburse the payer. |
{- "amount": 0
}"string"Adds debt information to a transaction including documentation, amount, FIK code, and bank account details.
Only available for Auto transactions. Maximum file size: 10 MB. Accepted file types: PDF, JPG, JPEG, PNG, GIF, BMP, WEBP.
| transactionId required | string |
| X-Correlation-Id | string [ 20 .. 64 ] characters Correlation ID used for logging. |
| documentation required | string <binary> (IFormFile) Documentation for debt information Supported file types: PDF, JPG, JPEG, PNG, GIF, BMP, WEBP (max 10 MB) |
| amount required | number or string <double> ^-?(?:0|[1-9]\d*)(?:\.\d+)?$ The debt amount to register for the transaction. |
| fikCode | null or string FIK-number - +71 is the only supported type |
| bankAccount | null or string 14 digits BBAN or 18 digits IBAN (without dashes or whitespaces) |
| bankAccountText | null or string Bank reference text that should be attached to the bank transfer |
Returns a temporary URL to download the debt document associated with a transaction. The URL is valid for 5 minutes.
| transactionId required | string |
| X-Correlation-Id | string [ 20 .. 64 ] characters Correlation ID used for logging. |
{- "url": "string"
}Add or update the bill of sale for an auto transaction.
Two modes are supported (checked in order):
Only available for Auto transactions.
| transactionId required | string |
| X-Correlation-Id | string [ 20 .. 64 ] characters Correlation ID used for logging. |
| enable | boolean If true, Bill Of Sale will be enabled, if IFormFile? Request.Document is null a Bill Of Sale PDF will automatically be generated |
null or IFormFile (string) | |
| additionalTerms | null or string Additional terms to be displayed on the generated Bill of Sale PDF |
| amount | null or number or string <double> ^-?(?:0|[1-9]\d*)(?:\.\d+)?$ Amount to show on the Bill of Sale. If not provided, uses the transaction amount. |
| requiredSigners | Array of any or null (AutoInformation.AutoBillOfSale.Signers) Enum: "Payer" "Payee" "None" Specifies which parties are required to sign the Bill of Sale document. Accepted values: 'Payee', 'Payer', 'None' Defaults to both Payee (seller) and Payer (buyer). If an empty array is supplied or the value 'None', the document will be marked as signed. |
Allows changes to the transaction amount.
The amount must be equal or higher than the sum of costs for payee and/or split-payouts.
Changes are not allowed after an payment has been authorized.
For Auto transactions: Changes to amount will generate a new bill of sale.
| transactionId required | string |
| X-Correlation-Id | string [ 20 .. 64 ] characters Correlation ID used for logging. |
| amount required | number or string <double> ^-?(?:0|[1-9]\d*)(?:\.\d+)?$ The new transaction amount. Must be equal to or higher than the sum of costs for the payee and/or split payouts. |
| payerFixedFee | null or number or string <double> ^-?(?:0|[1-9]\d*)(?:\.\d+)?$ The fixed fee used to calculate the payer's fee. Replaces the existing payer fixed fee. |
| payeeFixedFee | null or number or string <double> ^-?(?:0|[1-9]\d*)(?:\.\d+)?$ The fixed fee used to calculate the payee's fee. Replaces the existing payee fixed fee. |
Array of objects or null (CreateTransactionBase.Request.RequestSplitPayout) Replacement split payouts. When supplied, the transaction's existing split payouts are replaced with these. |
{- "amount": 0,
- "payerFixedFee": null,
- "payeeFixedFee": null,
- "splitPayouts": null
}Add a Payee to the transaction. This is not allowed if a Payee is already added.
| transactionId required | string |
| X-Correlation-Id | string [ 20 .. 64 ] characters Correlation ID used for logging. |
| safepayAccountId | null or string Safepay Account Id of the payee to add. Takes precedence over 'referenceId'. |
| referenceId | null or string Your reference id for the payee. Used to resolve the payee when 'safepayAccountId' is not supplied. |
| phoneNumber | null or string Phone number used to invite the payee. |
{- "safepayAccountId": null,
- "referenceId": null,
- "phoneNumber": null
}Add a Payer to the transaction. This is not allowed if a Payer is already added.
| transactionId required | string |
| X-Correlation-Id | string [ 20 .. 64 ] characters Correlation ID used for logging. |
| safepayAccountId | null or string Safepay Account Id of the payer to add. Takes precedence over 'referenceId'. |
| referenceId | null or string Your reference id for the payer. Used to resolve the payer when 'safepayAccountId' is not supplied. |
| phoneNumber | null or string Phone number used to invite the payer. |
{- "safepayAccountId": null,
- "referenceId": null,
- "phoneNumber": null
}Creates a new payment and attaches it to a transaction by 'transactionId'
The user should be redirected to the PaymentUrl to start a payment flow
| X-Correlation-Id | string [ 20 .. 64 ] characters Correlation ID used for logging. |
| safepayAccountId required | string |
| transactionId required | string |
| amount | null or number or string <double> ^-?(?:0|[1-9]\d*)(?:\.\d+)?$ |
| description | null or string |
| returnUrl | null or string |
| skipUI | null or boolean |
{- "safepayAccountId": "string",
- "transactionId": "string",
- "amount": null,
- "description": null,
- "returnUrl": null,
- "skipUI": null
}{- "paymentId": "string",
- "paymentUrl": "string"
}Generates a new payment link for 'paymentId'
This endpoint can generate direct links to PSD2 and VippsMobilepay payment methods.
If no payment method is supplied, the user will be presented with UI for payment selection.
The user should be redirected to the PaymentUrl to start a payment flow
| paymentId required | string |
| X-Correlation-Id | string [ 20 .. 64 ] characters Correlation ID used for logging. |
| paymentMethod | null or string Available methods: psd2, bank, vippsmobilepay |
| bankId | null or string Only for use with payment method: bank |
| bankAccountId | null or string Only for use with payment method: psd2 |
| returnUrl | null or string |
{- "paymentMethod": null,
- "bankId": null,
- "bankAccountId": null,
- "returnUrl": null
}{- "paymentUrl": "string"
}List webhook examples
Examples of all possible webhooks including payloads.
| X-Correlation-Id | string [ 20 .. 64 ] characters Correlation ID used for logging. |
{- "user": [
- {
- "safepayAccountId": "string",
- "connections": [
- {
- "referenceId": "string",
- "connected": "2019-08-24T14:15:22Z"
}
], - "eventName": "string",
- "eventDate": "2019-08-24T14:15:22Z",
- "webhookId": "string"
}
], - "transaction": [
- {
- "transactionId": "string",
- "paymentId": null,
- "referenceId": null,
- "payee": {
- "safepayAccountId": "string",
- "referenceId": null
}, - "payer": {
- "safepayAccountId": "string",
- "referenceId": null
}, - "eventName": "string",
- "eventDate": "2019-08-24T14:15:22Z",
- "webhookId": "string"
}
]
}