v1

latestOpenAPI 3.1.02026-07-24130244.8 KB

Create payment

post/payments

Headers

Content-Typestring required

Always send this header as application/json.

Hoststring required

The host declared in the signature.

Datestring required

The date declared in the signature.

Digeststring required

The digest declared in the signature.

Authorizationstring required

The request signature.

Idempotency-Keystring

The idempotent request key. <br> <br> You can read more here.

x-satispay-deviceinfostring

The device information (e.g., hostname).

x-satispay-devicetype'SMARTPHONE' | 'TABLET' | 'CASH REGISTER' | 'POS' | 'PC' | 'ECOMMERCE_PLUGIN'

The device type.

x-satispay-osstring

The Operating System name (e.g., Windows).

x-satispay-osvstring

The Operating System version (e.g., 10).

x-satispay-apphstring

The software house name (e.g., Satispay).

x-satispay-appnstring

The software name (e.g., My awesome app).

x-satispay-appvstring

The software version (e.g., v2.0.0).

x-satispay-tracking-codestring

The tracking code used by Satispay commercial partners. <br> <br> Use this code only if explicitly required by Satispay.

Request body

flow'MATCH_CODE' | 'MATCH_USER' | 'REFUND' | 'PRE_AUTHORIZED' | 'FUND_LOCK' | 'PRE_AUTHORIZED_FUND_LOCK' | 'HOTP_AUTH' required

The payment flow that you want to use. <br> <br> MATCH_CODE <small>DOC</small> <br> This flow can be used generically for one-off payments. <br> <br> HOTP_AUTH <small>DOC</small> <br> This flow can be used to perform one-off payments via HOTP tokens. <br> To use this flow you must also include the token parameter. <br> <br> MATCH_USER <small>DOC</small> <br> This flow can be used for one-off payments on a specific user. <br> To use this flow you must also include the consumer_uid parameter. <br> <br> FUND_LOCK <small>DOC</small> <br> This flow can be used for funds lock payments. <br> <br> PRE_AUTHORIZED <small>DOC</small> <br> This flow can be used for automatic payments. <br> To use this flow you must also include the token parameter. <br> <br> PRE_AUTHORIZED_FUND_LOCK <small>DOC</small> <br> This flow can be used for automatic funds lock payments. <br> To use this flow you must also include the token parameter. <br> <br> REFUND <br> This flow can be used for refunds on a specific payment. <br> To use this flow you must also include the parent_payment_uid and the amount_unit.

amount_unitinteger required

The payment amount in cents. <br> <br> For example, to represent the amount €12.40, you should multiply it by 100, resulting in 1240 cents.

currencystring required

The payment currency. <br> <br> Currently EUR is the only currency supported.

pre_authorized_payments_tokenstring

The payment automatic payment token id. <br> This has been replaced with the new token parameter.

tokenstring

The token required to charge the consumer wallet. <br> It can be an automatic payment or HOTP token. <br> <br> Required with HOTP_AUTH, PRE_AUTHORIZED and PRE_AUTHORIZED_FUND_LOCK flows only.

consumer_uidstring

The unique id of the consumer required for payment acceptance. <br> To obtain the customer id, please use the Get Consumer API. <br> <br> Required with MATCH_USER flow only. <br> <br> This parameter is deprecated; we suggest avoiding the MATCH_USER UX unless absolutely necessary.

parent_payment_uidstring

The id of the payment that you want to refund. <br> <br> Required with REFUND flow only.

external_codestring

The external order id or payment identifier. <br> <br> We highly recommend to use this field by populating it with your internal order id. <br> This string will be included in your reports for reconciliation and shown to the Satispay consumer in-app. <br> <br> This field has a maximum length of 50 characters, including spaces.

callback_urlstring

The URL to be triggered via an HTTP GET request when there is a change in payment status. <br> <br> When the given callback_url is invoked, a GET request for payment details can be made to retrieve the updated payment status. <br> <br> Please note that {uuid} will be replaced with the generated payment id. <br> e.g. https://example.com/satispay-callback?payment_id={uuid} <br> <br> You can read more here.

redirect_urlstring

This field specifies the URL where the user will be redirected after the payment flow from the Satispay app is completed. <br> <br> For instance, you can set this URL to ensure users are redirected to that specific page upon successful payment completion. <br> e.g. https://example.com/payment-redirect?order_id=your_order_id <br> <br> Please note that this field doesn't support any placeholder.

expiration_datestring

The UTC payment expiration datetime. <br> <br> The format should be ISO 8601 like this yyyy-MM-dd'T'HH:mm:ss.SSSZ. <br> <br> By default: <br> MATCH_CODE and MATCH_USER payments are valid for 2 hours. <br> FUND_LOCK payments are valid for 10 days. <br> PRE_AUTHORIZED_FUND_LOCK payments are valid for 5 days. <br> <br> This timeframe is calculated from the moment of creation. <br> <br> This parameter cannot be used with PRE_AUTHORIZED, HOTP_AUTH and REFUND flows.

Response

OK

idstring

The unique payment id. <br> <br> This can be used for every eventual subsequent operations on the payment, including refunds.

code_identifierstring

The Satispay code identifier. <br> <br> This string can be encoded in a QR code that can be scanned by the user. <br> This property is only available in MATCH_CODE flow payments.

typestring

The current payment type. <br> <br> TO_BUSINESS <br> This type is used for payments from a consumer to a merchant. <br> <br> REFUND_TO_BUSINESS <br> This type is used for payments from a merchant to a consumer (e.g. refunds).

amount_unitinteger

The payment amount in cents. <br> <br> For example, the amount €12.40 is being represented as 1240 cents.

currency'EUR'

The payment currency.

statusstring

The current payment status. <br> <br> PENDING <br> The payment is created and awaits user interaction, such as scanning the QR code. <br> <br> AUTHORIZED - for FUND_LOCK and PRE_AUTHORIZED_FUND_LOCK flows only. <br> The payment has been authorized by the user and is ready to be confirmed by the merchant with the Update payment API. <br> <br> ACCEPTED <br> The payment has been accepted and succesfully executed.

expiredboolean

The current payment expiration status. <br> <br> It becomes true once it reaches the expiration_date without being accepted or canceled.

metadataobject

The additional metadata for the payment.

insert_datestring

The UTC payment creation datetime.

expire_datestring

The UTC payment expiration datetime. <br> <br> This property can be ignored when using PRE_AUTHORIZED or HOTP_AUTH flows.

descriptionstring

The external_code set during the payment creation request. <br> <br> Please use the external_code field instead.

flowstring
external_codestring

The external_code set during the creation request.

redirect_urlstring

The URL where the user will be redirected after the payment flow from the Satispay app is completed. <br> <br> This property is available only when the payment uses the MATCH_CODE, MATCH_USER or FUND_LOCK flow.