API – Developers Docs API – Developers Docs
  • Cyberpac
  • Addon Payments
  • Pagos integrados en TPV
  • InglésCambiar a Inglés
API – Developers Docs API – Developers Docs
API – Developers Docs
  • Cyberpac
  • Addon Payments
  • Pagos integrados en TPV
  • InglésCambiar a Inglés

PAY BY LINK

  • Icono de carpeta cerrada Icono de apertura de carpetaAPI Authentication
  • Icono de carpeta cerrada Icono de apertura de carpetaAccess By API
  • Icono de carpeta cerrada Icono de apertura de carpetaAccess By Web
    • varwwwvhostsglobalpayments.esapi-developer.globalpayments.eswp-contentuploads202301localimagespaybylink_nbo_overview_content.png
    • varwwwvhostsglobalpayments.esapi-developer.globalpayments.eswp-contentuploads202301localimagespaybylink_nbo_creation_empty.png
    • varwwwvhostsglobalpayments.esapi-developer.globalpayments.eswp-contentuploads202301localimagespaybylink_nbo_creation_created.png
  • Icono de carpeta cerrada Icono de apertura de carpetaAPI Explorer
  • Icono de carpeta cerrada Icono de apertura de carpetaFeatures
    • Auto-generated Customer Id
    • Backoffice tutorial
    • Code Format
    • Status Flow
    • Error Codes
    • Date Time &
    • Countries
    • Currencies

API Authentication

Authentication Flow

The integrator makes a call to get an authentication token.

The integrator makes calls to any of the AddonPayments API endpoint until their login token has expired.

API Authentication by oAuth2

Client Authentication

Registered OAuth applications are assigned a unique Client ID (client_id) and unique Client Secret (client_secret).

By sending the client_id and the client_secret, you are letting Sell API know which application is accessing the API. Only requests to the Authorization Server require client credentials.

To authenticate an application with the Authorization Server, use the standard Authorization header with the basic authentication scheme, where the username is the client_id and the password is the client_secret. Every request to the OAuth token endpoint requires client authentication.

Authorization: Basic Base64($CLIENT_ID:$CLIENT_SECRET)

The way to do this using a tool like curl is to use the -h or --header flag, which is used for passing authentication information in the form of client_id:client_secret. For example, the API authentication flow requires the client credentials in order to obtain an access token. The example below shows how to make the request

$ curl -v -X POST https://api.easypaymentgateway.com/epgpay-auth/login \
      --header 'Authorization: Basic Base64($CLIENT_ID:$CLIENT_SECRET)' \
      --header 'Content-Type: application/x-www-form-urlencoded' \
      --data "grant_type=client_credentials"

Response

Path Type Description
jti String A unique identifier for the authentication token.
access_token String The token that is used for further authentication calls to AddonPayments systems. This needs to be appended to further requests as a request header with the “Bearer” word prepended
expires_in Number The amount of time in secons the given access toke is valid for. For using the client_credentails flow like this, after this amount of time has passed, you must reauthenticate
token_type String always bearer when using client_credentials
{
  "access_token": "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOlsib2F1dGgyLXJlc291cmNlIl0sInNjb3BlIjpbInRyYW5zYWN0aW9uLWFwaSJdLCJtZXJjaGFudF9pZCI6IjEwNDUwIiwiZXhwIjoxNjI0OTgyMjkyLCJhdXRob3JpdGllcyI6WyJJTlZfTUFOQUdFTUVOVCIsIklOVl9FTUFJTF9DT05GSUciLCJJTlZfVEVNUExBVEUiLCJJTlZfQkFUQ0giXSwianRpIjoiMTA5ZjYwZTgtZjUyMy00NDFlLTg3NzEtYjFmODVmNTk4ZTk0IiwiY2xpZW50X2lkIjoiMTA0NTAtYXF4Z0pOUWQifQ.cQQFvtbcawtVj4KiTxQnc1sHM-akltyNMb0Ghq7gOSEOyfitIF6SlMT7RoGNsU4V-hE_0h6MesgeYW6bfu2PtuM5b4ODF31TAWGU7BFp9FfsLKJev7Gswhp2zZN80kHFcGCtIQkW-sC_yb4pBiaIfdiQWqK-VDPFrvyUERxqEqF4hy6DufIf6-yWF2WuWIAqf1y5_jbSzZbh2i05UllVdEtxux1_-MXULS73YQangG6P8y6dr2jauH-raxExP733Az723juIddRfRl9cvIeFBWECF4uWHR3EyHvLTH3PqmtCTmEJvhp9h_IAbEBectBEcKIII_5DBr1gjvBvxZjeqw",
  "token_type": "bearer",
  "expires_in": 1799,
  "scope": "transaction-api",
  "merchant_id": "10450",
  "authorities": [
    "INV_MANAGEMENT",
    "INV_EMAIL_CONFIG",
    "INV_TEMPLATE",
    "INV_BATCH"
  ],
  "jti": "109f60e8-f523-441e-8771-b1f85f598e94"
}
Comparte este documento

API Authentication

Copiar el enlace

Icono del portapapeles
Tabla de Contenidos

Productos

  • Cyberpac
  • Addon Payments
  • Pagos integrados en TPV
  • Universal Pay
  • Addon 1 - XML API Integration

Ventas

Cuéntanos cómo es tu negocio para ofrecerte la mejor solución.

Contacta con un experto

Soporte técnico

¿Ya eres cliente y necesitas ayuda? Contacta con nosotros, estamos a tu disposición.

Ayuda

Socios

Trabajamos con los mejores partners de soluciones in-store y eCommerce. ¿Quieres unirte?

Únete a nosotros

© Comercia Global Payments

Política de privacidad
Ejercicio de Derechos
Información a Clientes
Canal de denuncia
Aviso Legal
Política de cookies
Pregúntale a la IA
Escribe tu pregunta. Por ejemplo: ¿Cómo creo un enlace de pago?
La SmartWiki puede omitir datos. Verifica la información o contacta con soporte.

SmartWiki, Impulsada por IA

API - Developers Docs
Gestionar el consentimiento de las cookies
Para ofrecer las mejores experiencias, utilizamos tecnologías como las cookies para almacenar y/o acceder a la información del dispositivo. El consentimiento de estas tecnologías nos permitirá procesar datos como el comportamiento de navegación o las identificaciones únicas en este sitio. No consentir o retirar el consentimiento, puede afectar negativamente a ciertas características y funciones.
Funcional Siempre activo
El almacenamiento o acceso técnico es estrictamente necesario para el propósito legítimo de permitir el uso de un servicio específico explícitamente solicitado por el abonado o usuario, o con el único propósito de llevar a cabo la transmisión de una comunicación a través de una red de comunicaciones electrónicas
Preferencias
El almacenamiento o acceso técnico es necesario para la finalidad legítima de almacenar preferencias no solicitadas por el abonado o usuario
Estadísticas
El almacenamiento o acceso técnico que es utilizado exclusivamente con fines estadísticos. El almacenamiento o acceso técnico es necesario para la finalidad legítima de almacenar preferencias no solicitadas por el abonado o usuario
Marketing
El almacenamiento o acceso técnico es necesario para crear perfiles de usuario para enviar publicidad, o para rastrear al usuario en una web o en varias web con fines de marketing similares.
Administrar opciones Gestionar los servicios Gestionar {vendor_count} proveedores Leer más sobre estos propósitos
Ver preferencias
{title} {title} {title}

Cyberpac

Consulta la documentación de Cyberpac. Aquí tienes las distintas secciones:

Canales

Módulos de integración

Integraciones a medida

Consulta la documentación de las distintas secciones de integraciones:

Comienza a integrar

undraw_add_to_cart_re_wrdo 1 (1) (1)

Plugins para CMS

Complementa la integración

SDKs

Métodos de pago

Herramientas

Addon Payments

Consulta la documentación de Addon Payments. Aquí tienes las distintas secciones:

Integraciones

Consultas frecuentes

Portal Backoffice

Pagos integrados en TPV

Crea una solución que te ayudará a automatizar procesos. Incluso, podrás agregar procesos de pago en terminales físicos.

Pago integrado con TPV Android

Pago integrado con Smartphone TPV

Fichas Técnicas TPVs