Pagos

Create a new customer-initiated payment

post

Creates a new customer-initiated payment.

After a payment is created a payment method (card, bank, saved token) must be added to it. The user can attempt adding payment method multiple times until ultimately one is successful. The checkout process is continued by either redirecting the user to the gateway hosted checkout page or integrating directly with EGW APIs.

Additionally, the setupToken fields can be used to save the used payment method for future payments.

Autorizaciones
OpenID ConnectRequerido

This API uses OAuth 2 with the client credentials flow. More info

Parámetros de ruta
versionstringRequerido
Parámetros de encabezado
X-Request-Idstring · uuidRequerido

ID of the request, unique to the call, as determined by the initiating party

Cuerpo
channelstring · enumRequerido

Identifies the method or channel through which a payment was initiated:

  • BROWSER - payment initiated when the customer makes a regular online purchase via a website (e-shop)
Valores posibles:
descriptionstring · máx: 255Opcional

Description of the payment

merchantReferencestring · máx: 255Opcional

Merchant's payment reference

orderNumberstring · máx: 255Requerido

Merchant's order number

Pattern: ^[a-zA-Z0-9/-?:().,'+\-]*$
participantIdstring · máx: 64Requerido

Unique ID of the participant

preferredCountrystringOpcional

Default country for bank selection in the gateway hosted checkout page

preferredLocalestring · enumOpcional

Default locale for the gateway hosted checkout page

Valores posibles:
shopAgreementIdstring · máx: 64Requerido

Unique ID of the shop

shopRedirectUrlstring · mín: 1Requerido
Respuestas
chevron-right
200

OK

application/json
createdAtstring · date-timeOpcional
environmentstring · enumOpcionalValores posibles:
orderNumberstringOpcional
participantIdstring · máx: 64Opcional

Unique ID of the participant

paymentIdstring · máx: 64Opcional

Unique ID of the payment

paymentStatusstring · enumOpcionalValores posibles:
post
/egw/{version}/payments/cit

Create a new merchant-initiated payment

post

Creates a new merchant-initiated payment - payment without direct involvement of the end user (e.g. subscriptions).

Only previously saved payment method token can be used for merchant-initiated payments. Before creating merchant-initiated payments it is necessary to setup a token agreement during an initial customer-initiated payment.

Autorizaciones
OpenID ConnectRequerido

This API uses OAuth 2 with the client credentials flow. More info

Parámetros de ruta
versionstringRequerido
Parámetros de encabezado
X-Request-Idstring · uuidRequerido

ID of the request, unique to the call, as determined by the initiating party

Cuerpo
channelstring · enumRequerido

Identifies the method or channel through which a payment was initiated:

  • RECURRING - payment initiated by the merchant or backend system without customer presence, on a predefined schedule with a fixed or variable amount (e.g., monthly subscription, utility bill)
  • MERCHANT - payment initiated by the merchant or backend system without customer presence, on an ad-hoc basis with a variable amount and undefined frequency (e.g., automatic top-up, partial shipments, no-show fees, or other post-service charges)
Valores posibles:
descriptionstring · máx: 255Opcional

Description of the payment

merchantReferencestring · máx: 255Opcional

Merchant's payment reference

orderNumberstring · máx: 255Requerido

Merchant's order number

Pattern: ^[a-zA-Z0-9/-?:().,'+\-]*$
participantIdstring · máx: 64Requerido

Unique ID of the participant

shopAgreementIdstring · máx: 64Requerido

Unique ID of the shop

Respuestas
chevron-right
200

OK

application/json
createdAtstring · date-timeOpcional
environmentstring · enumOpcionalValores posibles:
orderNumberstringOpcional
participantIdstring · máx: 64Opcional

Unique ID of the participant

paymentIdstring · máx: 64Opcional

Unique ID of the payment

paymentStatusstring · enumOpcionalValores posibles:
post
/egw/{version}/payments/mit

Get payment information

get

Returns the content of a payment object

Autorizaciones
OpenID ConnectRequerido

This API uses OAuth 2 with the client credentials flow. More info

Parámetros de ruta
paymentIdstring · máx: 64Requerido

Unique ID of the payment

versionstringRequerido
Parámetros de consulta
Parámetros de encabezado
X-Request-Idstring · uuidRequerido

ID of the request, unique to the call, as determined by the initiating party

Respuestas
chevron-right
200

OK

application/json
channelstring · enumOpcional

Identifies the method or channel through which a payment was initiated:

  • BROWSER - payment initiated when the customer makes a regular online purchase via a website (e-shop)
  • RECURRING - payment initiated by the merchant or backend system without customer presence, on a predefined schedule with a fixed or variable amount (e.g., monthly subscription, utility bill)
  • MERCHANT - payment initiated by the merchant or backend system without customer presence, on an ad-hoc basis with a variable amount and undefined frequency (e.g., automatic top-up, partial shipments, no-show fees, or other post-service charges)
  • PAYMENT_LINK - payment initiated when the customer clicks a link provided by the merchant (e.g., via a button in an app or website, a link sent via SMS, chat or other messaging channel)
  • QR_CODE - payment initiated when the customer scans a QR code presented by the merchant (e.g., in-store or on-screen)
Valores posibles:
createdAtstring · date-timeOpcional
environmentstring · enumOpcionalValores posibles:
merchantReferencestringOpcional

Merchant's payment reference

orderNumberstringOpcional

Merchant's order number

participantIdstring · máx: 64Opcional

Unique ID of the participant

paymentIdstring · máx: 64Opcional

Unique ID of the payment

paymentLinkIdstring · máx: 64Opcional
paymentStatusstring · enumOpcionalValores posibles:
preferredCountrystringOpcional
get
/egw/{version}/payments/{paymentId}

Captures an existing payment

patch

Capturing an authorized payment will complete (finalise) the payment, this is only used for card payments

Autorizaciones
OpenID ConnectRequerido

This API uses OAuth 2 with the client credentials flow. More info

Parámetros de ruta
paymentIdstring · máx: 64Requerido

Unique ID of the payment

versionstringRequerido
Parámetros de encabezado
X-Request-Idstring · uuidRequerido

ID of the request, unique to the call, as determined by the initiating party

Cuerpo

The request for capturing an existing payment

Respuestas
chevron-right
200

OK

application/json

The response after capturing a card payment

paymentIdstring · máx: 64Opcional

Unique ID of the payment

paymentStatusstring · enumOpcional

Current status of the payment

Valores posibles:
patch
/egw/{version}/payments/{paymentId}/capture

Cancels a payment

patch

A payment can be cancelled when it is initialized or authorized

Autorizaciones
OpenID ConnectRequerido

This API uses OAuth 2 with the client credentials flow. More info

Parámetros de ruta
paymentIdstring · máx: 64Requerido

Unique ID of the payment

versionstringRequerido
Parámetros de encabezado
X-Request-Idstring · uuidRequerido

ID of the request, unique to the call, as determined by the initiating party

Cuerpo

The request for cancelling a payment

reasonstring · enumOpcional

Reason to cancel the payment

Valores posibles:
Respuestas
chevron-right
200

OK

application/json

The response after cancelling a payment

paymentIdstring · máx: 64Opcional

Unique ID of the payment

paymentStatusstring · enumOpcional

Current status of the payment

Valores posibles:
patch
/egw/{version}/payments/{paymentId}/cancel

¿Te fue útil?