Management

This method is used to retrieve a list of transactions based on the provided criteria.

get
Authorizations
AuthorizationstringRequired

Basic authentication with your Saferpay API user credentials.

Path parameters
customerIdinteger · int32Required

The CustomerId defined as part of the route.

Query parameters
TransactionStatestring | nullableOptional

State of the transactions to be retrieved. If left empty successful transactions are retrieved.

TerminalIdinteger · int32 | nullableOptional

ID of the terminal the transactions should be retrieved for. If left empty, all terminals of the customer will be considered.

StartDatestring | nullableRequired

Only transactions happened later than this date will be returned. Value can be provided in ISO 8601 format only using the date (yyyy-MM-dd) or as a date time (yyyy-MM-ddTHH:mm).

EndDatestring | nullableRequired

Only transactions that occurred before this date will be returned. EndDate must be less than today at 00:00 (midnight). For example, to retrieve transactions up to and including yesterday, set EndDate to yesterday at 23:59. Value can be provided in ISO 8601 format only using the date (yyyy-MM-dd) or as a date time (yyyy-MM-ddTHH:mm).

PageSizeinteger · int32 | nullableOptional

Maximum number of transactions to be returned. If left empty, the default value of 1000 will be used. A maximum of 2000 transactions can be requested at once. Please always make sure to check PageSize in the response as Saferpay reserves the right to shrink large page sizes to a reasonable value.

PageNumberinteger · int32 | nullableOptional

Number of the page to be returned, starting from 1. Values smaller than 1 will be automatically set to 1. Previous pages will be skipped. If left empty, the first page will be returned.

Header parameters
Saferpay-ApiVersionanyRequired
Saferpay-RequestIdanyRequired
Body
anyOptional
Responses
chevron-right
200Success
application/json
Responseone of | nullable
get
/rest/customers/{customerId}/transactions
200Success

This method is used to retrieve all terminals

get
Authorizations
AuthorizationstringRequired

Basic authentication with your Saferpay API user credentials.

Path parameters
customerIdinteger · int32Required
Header parameters
Saferpay-ApiVersionanyRequired
Saferpay-RequestIdanyRequired
Body
anyOptional
Responses
chevron-right
200Success
application/json
Responseone of | nullable
get
/rest/customers/{customerId}/terminals
200Success

DEPRECATED: since Version 1.31. Please use instead: /rest/customers/{customerId}/terminals/{terminalId}/ This method is used to retrieve a list of all available payment methods and wallets for a terminal.

get
Authorizations
AuthorizationstringRequired

Basic authentication with your Saferpay API user credentials.

Path parameters
terminalIdinteger · int32Required
Header parameters
Saferpay-ApiVersionanyRequired
Saferpay-RequestIdanyRequired
Body
anyOptional
Responses
chevron-right
200Success
application/json
Responseone of | nullable
get
/rest/customers/{customerId}/terminals/{terminalId}/payment-methods
200Success

This method is used to retrieve details of one terminal

get
Authorizations
AuthorizationstringRequired

Basic authentication with your Saferpay API user credentials.

Path parameters
customerIdinteger · int32Required
terminalIdinteger · int32Required
Header parameters
Saferpay-ApiVersionanyRequired
Saferpay-RequestIdanyRequired
Body
anyOptional
Responses
chevron-right
200Success
application/json
Responseone of | nullable
get
/rest/customers/{customerId}/terminals/{terminalId}
200Success

This function may be used to create a single use payment link

post
Authorizations
AuthorizationstringRequired

Basic authentication with your Saferpay API user credentials.

Path parameters
customerIdinteger · int32Required
terminalIdinteger · int32Required
Header parameters
Saferpay-ApiVersionanyRequired
Saferpay-RequestIdanyRequired
Body
Responses
chevron-right
200Success
application/json
Responseone of | nullable
post
/rest/customers/{customerId}/terminals/{terminalId}/spg-offers
200Success

This function may be used to fetch the status of a previously created single use payment link

get
Authorizations
AuthorizationstringRequired

Basic authentication with your Saferpay API user credentials.

Path parameters
customerIdinteger · int32Required
terminalIdinteger · int32Required
offerIdstring · guidRequired
Header parameters
Saferpay-ApiVersionanyRequired
Saferpay-RequestIdanyRequired
Body
anyOptional
Responses
chevron-right
200Success
application/json
Responseone of | nullable
get
/rest/customers/{customerId}/terminals/{terminalId}/spg-offers/{offerId}
200Success

This function may be used to delete a single use payment link before it's expiry

delete
Authorizations
AuthorizationstringRequired

Basic authentication with your Saferpay API user credentials.

Path parameters
customerIdinteger · int32Required
terminalIdinteger · int32Required
offerIdstring · guidRequired
Header parameters
Saferpay-ApiVersionanyRequired
Saferpay-RequestIdanyRequired
Body
anyOptional
Responses
delete
/rest/customers/{customerId}/terminals/{terminalId}/spg-offers/{offerId}
204Success

No content

This method may be used to delete a previously created Saferpay Fields Access Token.

delete
Authorizations
AuthorizationstringRequired

Basic authentication with your Saferpay API user credentials.

Path parameters
customerIdinteger · int32Required
terminalIdinteger · int32Required
accessTokenstring | nullableRequired
Header parameters
Saferpay-ApiVersionanyRequired
Saferpay-RequestIdanyRequired
Body
anyOptional
Responses
delete
/rest/customers/{customerId}/terminals/{terminalId}/fields-access-token/{accessToken}
204Success

No content

Create a Saferpay Fields Access Token that can be used to integrate Saferpay Fields into web pages and is restricted to the given customerId, terminalId and URL(s).

post
Authorizations
AuthorizationstringRequired

Basic authentication with your Saferpay API user credentials.

Path parameters
customerIdinteger · int32Required
terminalIdinteger · int32Required
Header parameters
Saferpay-ApiVersionanyRequired
Saferpay-RequestIdanyRequired
Body
Responses
chevron-right
200Success
application/json
Responseone of | nullable
post
/rest/customers/{customerId}/terminals/{terminalId}/fields-access-token
200Success

This method is used to retrieve the current license configuration for a customer

get
Authorizations
AuthorizationstringRequired

Basic authentication with your Saferpay API user credentials.

Path parameters
customerIdinteger · int32Required
Header parameters
Saferpay-ApiVersionanyRequired
Saferpay-RequestIdanyRequired
Body
anyOptional
Responses
chevron-right
200Success
application/json
Responseone of | nullable
get
/rest/customers/{customerId}/license
200Success

DEPRECATED: since Version 1.35. Please use instead: /rest/customers/{customerId}/license This method is used to retrieve the current license configuration for a customer

get
Authorizations
AuthorizationstringRequired

Basic authentication with your Saferpay API user credentials.

Path parameters
customerIdinteger · int32Required
Header parameters
Saferpay-ApiVersionanyRequired
Saferpay-RequestIdanyRequired
Body
anyOptional
Responses
chevron-right
200Success
application/json
Responseone of | nullable
get
/rest/customers/{customerId}/license-configuration
200Success

Last updated

Was this helpful?