Referencia Técnica / Integración Emisores

Cómo empezar la integración

Proceso de integración

1.- Solicita tu API Key y URL de integración.

2.- Desarrolla en ambiente sandbox. Esta es la guía para hacerlo.

3.- Cuando estés listo validarémos y certificarémos tu integración. Al finalizar recibirás tu API Key y URL del ambiente productivo.

4.- Implementemos en producción tu desarrollo.

5.- Listo para recibir pagos en efectivo con PayCash.



Modo de uso

1.- Autenticarse como usuario de la plataforma PayCash haciendo uso del método authre. Es necesario contar con tu API Key para solicitar un token, el cual será usado en el resto de los métodos involucrados.

2.- Para generar una referencia PayCash basta con solicitarlo a través del método reference. Este método responderá con la referencia PayCash. Utilice el método searchreference para conocer las caracteristicas de la referencia PayCash. Si por alguna razón necesita cancelar la referencia, haga uso del método cancel, unicamente si la referencia no tiene pagos.

3.- Utilice método payments para consultar los pagos realizados a las referencias PayCash.

Servicios de referencia

Obtener Token / authre

Para realizar peticiones a la API de PayCash, es necesario contar con tu llave privada, con esta llave podrás obtener un token, el cual es requerido al momento de hacer la solicitud de alguno de los métodos contenidos en este documento. Esta llave privada es configurada para ser utilizada ya sea en modo sandbox o producción. Asegúrate de nunca compartir tu llave privada con nadie, ya que podrían tener accesos a tu cuenta PayCash.

Al hacer la solicitud del token se valida que la llave privada exista, este vigente y corresponda al ambiente sandbox o productivo.


/authre

Ejemplos de uso y SDK

curl -X GET\
-H "Accept: application/json"\
"https://sb-pais-emisor.paycashglobal.com/v1/authre?expirationdate=&unique="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AuthreApi;

import java.io.File;
import java.util.*;

public class AuthreApiExample {

    public static void main(String[] args) {
        
        AuthreApi apiInstance = new AuthreApi();
        String key = key_example; // String | Unique key to business partner , from PayCash Global.
        String expirationdate = expirationdate_example; // String | Token expiration date.
        Boolean unique = true; // Boolean | Token type "unique". PENDIENTE
        try {
            array[RespAuther] result = apiInstance.getToken(key, expirationdate, unique);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AuthreApi#getToken");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.AuthreApi;

public class AuthreApiExample {

    public static void main(String[] args) {
        AuthreApi apiInstance = new AuthreApi();
        String key = key_example; // String | Unique key to business partner , from PayCash Global.
        String expirationdate = expirationdate_example; // String | Token expiration date.
        Boolean unique = true; // Boolean | Token type "unique". PENDIENTE
        try {
            array[RespAuther] result = apiInstance.getToken(key, expirationdate, unique);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AuthreApi#getToken");
            e.printStackTrace();
        }
    }
}
String *key = key_example; // Unique key to business partner , from PayCash Global.
String *expirationdate = expirationdate_example; // Token expiration date. (optional)
Boolean *unique = true; // Token type "unique". PENDIENTE (optional)

AuthreApi *apiInstance = [[AuthreApi alloc] init];

// Get auth token
[apiInstance getTokenWith:key
    expirationdate:expirationdate
    unique:unique
              completionHandler: ^(array[RespAuther] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var PayCashGlobalEmisores = require('pay_cash_global_emisores');

var api = new PayCashGlobalEmisores.AuthreApi()
var key = key_example; // {{String}} Unique key to business partner , from PayCash Global.
var opts = { 
  'expirationdate': expirationdate_example, // {{String}} Token expiration date.
  'unique': true // {{Boolean}} Token type "unique". PENDIENTE
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getToken(key, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getTokenExample
    {
        public void main()
        {

            var apiInstance = new AuthreApi();
            var key = key_example;  // String | Unique key to business partner , from PayCash Global.
            var expirationdate = expirationdate_example;  // String | Token expiration date. (optional) 
            var unique = true;  // Boolean | Token type "unique". PENDIENTE (optional) 

            try
            {
                // Get auth token
                array[RespAuther] result = apiInstance.getToken(key, expirationdate, unique);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling AuthreApi.getToken: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiAuthreApi();
$key = key_example; // String | Unique key to business partner , from PayCash Global.
$expirationdate = expirationdate_example; // String | Token expiration date.
$unique = true; // Boolean | Token type "unique". PENDIENTE

try {
    $result = $api_instance->getToken($key, $expirationdate, $unique);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AuthreApi->getToken: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::AuthreApi;

my $api_instance = WWW::SwaggerClient::AuthreApi->new();
my $key = key_example; # String | Unique key to business partner , from PayCash Global.
my $expirationdate = expirationdate_example; # String | Token expiration date.
my $unique = true; # Boolean | Token type "unique". PENDIENTE

eval { 
    my $result = $api_instance->getToken(key => $key, expirationdate => $expirationdate, unique => $unique);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AuthreApi->getToken: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.AuthreApi()
key = key_example # String | Unique key to business partner , from PayCash Global.
expirationdate = expirationdate_example # String | Token expiration date. (optional)
unique = true # Boolean | Token type "unique". PENDIENTE (optional)

try: 
    # Get auth token
    api_response = api_instance.get_token(key, expirationdate=expirationdate, unique=unique)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AuthreApi->getToken: %s\n" % e)

Parámetros

Header
Nombre Descripción
key*
String
Clave única para el socio comercial, de PayCash Global.
Obligatorio
Query
Nombre Descripción
expirationdate
String (yyyy/MM/dd)
Fecha de expiración del token.
unique
Boolean
Tipo de token "unique".

Responses

Status: 200 - Successful Process

Status: 400 - Internal Server Error.


Crear referencia / reference

Use este método para crear una referencia PayCash.

Al usar este método considerar que las referencias PayCash pueden ser:

- De monto fijo o de monto abierto.
- Con o sin fecha de vencimiento.
- De pago único o recurrente.
- Que los anteriores atributos se pueden combinar.


/reference

Ejemplos de uso y SDK

curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"https://sb-pais-emisor.paycashglobal.com/v1/reference"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.EmisorApi;

import java.io.File;
import java.util.*;

public class EmisorApiExample {

  public static void main(String[] args) {
      
      EmisorApi apiInstance = new EmisorApi();
      String authorization = authorization_example; // String | Token to business partner , from PayCash Global.
      BodyCreateRef body = ; // BodyCreateRef | por definir
      try {
          array[RespCreateRef] result = apiInstance.referenceCreate(authorization, body);
          System.out.println(result);
      } catch (ApiException e) {
          System.err.println("Exception when calling EmisorApi#referenceCreate");
          e.printStackTrace();
      }
  }
}
import io.swagger.client.api.EmisorApi;

public class EmisorApiExample {

  public static void main(String[] args) {
      EmisorApi apiInstance = new EmisorApi();
      String authorization = authorization_example; // String | Token to business partner , from PayCash Global.
      BodyCreateRef body = ; // BodyCreateRef | por definir
      try {
          array[RespCreateRef] result = apiInstance.referenceCreate(authorization, body);
          System.out.println(result);
      } catch (ApiException e) {
          System.err.println("Exception when calling EmisorApi#referenceCreate");
          e.printStackTrace();
      }
  }
}
String *authorization = authorization_example; // Token to business partner , from PayCash Global.
BodyCreateRef *body = ; // por definir (optional)

EmisorApi *apiInstance = [[EmisorApi alloc] init];

// Process of create reference.
[apiInstance referenceCreateWith:authorization
  body:body
            completionHandler: ^(array[RespCreateRef] output, NSError* error) {
                          if (output) {
                              NSLog(@"%@", output);
                          }
                          if (error) {
                              NSLog(@"Error: %@", error);
                          }
                      }];
var PayCashGlobalEmisores = require('pay_cash_global_emisores');

var api = new PayCashGlobalEmisores.EmisorApi()
var authorization = authorization_example; // {{String}} Token to business partner , from PayCash Global.
var opts = { 
'body':  // {{BodyCreateRef}} por definir
};
var callback = function(error, data, response) {
if (error) {
  console.error(error);
} else {
  console.log('API called successfully. Returned data: ' + data);
}
};
api.referenceCreate(authorization, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
  public class referenceCreateExample
  {
      public void main()
      {

          var apiInstance = new EmisorApi();
          var authorization = authorization_example;  // String | Token to business partner , from PayCash Global.
          var body = new BodyCreateRef(); // BodyCreateRef | por definir (optional) 

          try
          {
              // Process of create reference.
              array[RespCreateRef] result = apiInstance.referenceCreate(authorization, body);
              Debug.WriteLine(result);
          }
          catch (Exception e)
          {
              Debug.Print("Exception when calling EmisorApi.referenceCreate: " + e.Message );
          }
      }
  }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiEmisorApi();
$authorization = authorization_example; // String | Token to business partner , from PayCash Global.
$body = ; // BodyCreateRef | por definir

try {
  $result = $api_instance->referenceCreate($authorization, $body);
  print_r($result);
} catch (Exception $e) {
  echo 'Exception when calling EmisorApi->referenceCreate: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::EmisorApi;

my $api_instance = WWW::SwaggerClient::EmisorApi->new();
my $authorization = authorization_example; # String | Token to business partner , from PayCash Global.
my $body = WWW::SwaggerClient::Object::BodyCreateRef->new(); # BodyCreateRef | por definir

eval { 
  my $result = $api_instance->referenceCreate(authorization => $authorization, body => $body);
  print Dumper($result);
};
if ($@) {
  warn "Exception when calling EmisorApi->referenceCreate: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.EmisorApi()
authorization = authorization_example # String | Token to business partner , from PayCash Global.
body =  # BodyCreateRef | por definir (optional)

try: 
  # Process of create reference.
  api_response = api_instance.reference_create(authorization, body=body)
  pprint(api_response)
except ApiException as e:
  print("Exception when calling EmisorApi->referenceCreate: %s\n" % e)

Parámetros

Header
Nombre Descripción
authorization*
String
Token obtenido al momento de autenticarse. Resultado de ejecutar el método para obtener el token (authre).
Obligatorio
Body
Nombre Descripción
body

Respuestas

Status: 200 - Successful Process

Status: 400 - Internal Server Error.


Buscar referencia / search

Use este método para buscar una referencia PayCash.

Este método proporciona información general de la manera en la que se creó la referencia:

- Si es de monto fijo o abierto.
- Con o sin fecha de vencimiento.
- Si es de pago único o recurrente.
- Monto, fecha de creación, si está activa o cancelada, etc.


/search

Ejemplos de uso y SDK

curl -X GET\
-H "Accept: application/json"\
"https://sb-pais-emisor.paycashglobal.com/v1/search?Reference="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.EmisorApi;

import java.io.File;
import java.util.*;

public class EmisorApiExample {

  public static void main(String[] args) {
      
      EmisorApi apiInstance = new EmisorApi();
      String authorization = authorization_example; // String | Token to business partner , from PayCash Global.
      String reference = reference_example; // String | Reference to cancel
      try {
          array[RespSearchRef] result = apiInstance.searchReference(authorization, reference);
          System.out.println(result);
      } catch (ApiException e) {
          System.err.println("Exception when calling EmisorApi#searchReference");
          e.printStackTrace();
      }
  }
}
import io.swagger.client.api.EmisorApi;

public class EmisorApiExample {

  public static void main(String[] args) {
      EmisorApi apiInstance = new EmisorApi();
      String authorization = authorization_example; // String | Token to business partner , from PayCash Global.
      String reference = reference_example; // String | Reference to cancel
      try {
          array[RespSearchRef] result = apiInstance.searchReference(authorization, reference);
          System.out.println(result);
      } catch (ApiException e) {
          System.err.println("Exception when calling EmisorApi#searchReference");
          e.printStackTrace();
      }
  }
}
String *authorization = authorization_example; // Token to business partner , from PayCash Global.
String *reference = reference_example; // Reference to cancel (optional)

EmisorApi *apiInstance = [[EmisorApi alloc] init];

// Search process for a reference, previously made.
[apiInstance searchReferenceWith:authorization
  reference:reference
            completionHandler: ^(array[RespSearchRef] output, NSError* error) {
                          if (output) {
                              NSLog(@"%@", output);
                          }
                          if (error) {
                              NSLog(@"Error: %@", error);
                          }
                      }];
var PayCashGlobalEmisores = require('pay_cash_global_emisores');

var api = new PayCashGlobalEmisores.EmisorApi()
var authorization = authorization_example; // {{String}} Token to business partner , from PayCash Global.
var opts = { 
'reference': reference_example // {{String}} Reference to cancel
};
var callback = function(error, data, response) {
if (error) {
  console.error(error);
} else {
  console.log('API called successfully. Returned data: ' + data);
}
};
api.searchReference(authorization, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
  public class searchReferenceExample
  {
      public void main()
      {

          var apiInstance = new EmisorApi();
          var authorization = authorization_example;  // String | Token to business partner , from PayCash Global.
          var reference = reference_example;  // String | Reference to cancel (optional) 

          try
          {
              // Search process for a reference, previously made.
              array[RespSearchRef] result = apiInstance.searchReference(authorization, reference);
              Debug.WriteLine(result);
          }
          catch (Exception e)
          {
              Debug.Print("Exception when calling EmisorApi.searchReference: " + e.Message );
          }
      }
  }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiEmisorApi();
$authorization = authorization_example; // String | Token to business partner , from PayCash Global.
$reference = reference_example; // String | Reference to cancel

try {
  $result = $api_instance->searchReference($authorization, $reference);
  print_r($result);
} catch (Exception $e) {
  echo 'Exception when calling EmisorApi->searchReference: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::EmisorApi;

my $api_instance = WWW::SwaggerClient::EmisorApi->new();
my $authorization = authorization_example; # String | Token to business partner , from PayCash Global.
my $reference = reference_example; # String | Reference to cancel

eval { 
  my $result = $api_instance->searchReference(authorization => $authorization, reference => $reference);
  print Dumper($result);
};
if ($@) {
  warn "Exception when calling EmisorApi->searchReference: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.EmisorApi()
authorization = authorization_example # String | Token to business partner , from PayCash Global.
reference = reference_example # String | Reference to cancel (optional)

try: 
  # Search process for a reference, previously made.
  api_response = api_instance.search_reference(authorization, reference=reference)
  pprint(api_response)
except ApiException as e:
  print("Exception when calling EmisorApi->searchReference: %s\n" % e)

Parámetros

Header
Nombre Descripción
authorization*
String
Token obtenido al momento de autenticarse. Resultado de ejecutar el método para obtener el token (authre).
Obligatorio
Query
Nombre Descripción
Reference
String
Referencia PayCash a buscar.

Responses

Status: 200 - Successful Process

Status: 400 - Internal Server Error.


Cancelar referencia / cancel

Use este método para cancelar una referencia creada.

Al usar este método se valida lo siguiente de la referencia:

- Que sea del emisor
- Que no esté pagada.
- Que no esté previamente cancelada.


/cancel

Ejemplos de uso y SDK

curl -X POST\
-H "Accept: application/json"\
"https://sb-pais-emisor.paycashglobal.com/sb/v1/cancel?Reference="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.EmisorApi;

import java.io.File;
import java.util.*;

public class EmisorApiExample {

    public static void main(String[] args) {
        
        EmisorApi apiInstance = new EmisorApi();
        String authorization = authorization_example; // String | Token to business partner , from PayCash Global.
        String reference = reference_example; // String | Reference to cancel
        try {
            array[RespCancelRef] result = apiInstance.referenceCancel(authorization, reference);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling EmisorApi#referenceCancel");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.EmisorApi;

public class EmisorApiExample {

    public static void main(String[] args) {
        EmisorApi apiInstance = new EmisorApi();
        String authorization = authorization_example; // String | Token to business partner , from PayCash Global.
        String reference = reference_example; // String | Reference to cancel
        try {
            array[RespCancelRef] result = apiInstance.referenceCancel(authorization, reference);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling EmisorApi#referenceCancel");
            e.printStackTrace();
        }
    }
}
String *authorization = authorization_example; // Token to business partner , from PayCash Global.
String *reference = reference_example; // Reference to cancel (optional)

EmisorApi *apiInstance = [[EmisorApi alloc] init];

// Cancellation process of a reference.
[apiInstance referenceCancelWith:authorization
    reference:reference
              completionHandler: ^(array[RespCancelRef] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var PayCashGlobalEmisores = require('pay_cash_global_emisores');

var api = new PayCashGlobalEmisores.EmisorApi()
var authorization = authorization_example; // {{String}} Token to business partner , from PayCash Global.
var opts = { 
  'reference': reference_example // {{String}} Reference to cancel
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.referenceCancel(authorization, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class referenceCancelExample
    {
        public void main()
        {

            var apiInstance = new EmisorApi();
            var authorization = authorization_example;  // String | Token to business partner , from PayCash Global.
            var reference = reference_example;  // String | Reference to cancel (optional) 

            try
            {
                // Cancellation process of a reference.
                array[RespCancelRef] result = apiInstance.referenceCancel(authorization, reference);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling EmisorApi.referenceCancel: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiEmisorApi();
$authorization = authorization_example; // String | Token to business partner , from PayCash Global.
$reference = reference_example; // String | Reference to cancel

try {
    $result = $api_instance->referenceCancel($authorization, $reference);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling EmisorApi->referenceCancel: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::EmisorApi;

my $api_instance = WWW::SwaggerClient::EmisorApi->new();
my $authorization = authorization_example; # String | Token to business partner , from PayCash Global.
my $reference = reference_example; # String | Reference to cancel

eval { 
    my $result = $api_instance->referenceCancel(authorization => $authorization, reference => $reference);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling EmisorApi->referenceCancel: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.EmisorApi()
authorization = authorization_example # String | Token to business partner , from PayCash Global.
reference = reference_example # String | Reference to cancel (optional)

try: 
    # Cancellation process of a reference.
    api_response = api_instance.reference_cancel(authorization, reference=reference)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling EmisorApi->referenceCancel: %s\n" % e)

Parámetros

Header
Nombre Descripción
authorization*
String
Token obtenido al momento de autenticarse. Resultado de ejecutar el método para obtener el token (authre).
Obligatorio
Body Json
Nombre Descripción
Reference
String
Referencia PayCash a cancelar.

Respuestas

Status: 200 - Successful Process

Status: 400 - Internal Server Error.


Consultar pagos /payments

Consulta los pagos de referencias realizados en una fecha específica a partir de una hora.

Esté método generalmente es usado cuando el emisor está interesado en conocer si sus referencias ya fueron pagadas.
Queda del lado del emisor el implementar este mecanismo de búsqueda.
Para este escenario se recomienda solicitar la habilitación de la notificación de pago automatica a través de webHooks.


/payments

Ejemplos de uso y SDK

curl -X GET\
  -H "Accept: application/json"\
  "https://sb-pais-emisor.paycashglobal.com/v1/payments?Date=yyyy-mm-dd&Hour=HH:MM:ss"
import io.swagger.client.*;
  import io.swagger.client.auth.*;
  import io.swagger.client.model.*;
  import io.swagger.client.api.EmisorApi;
  
  import java.io.File;
  import java.util.*;
  
  public class EmisorApiExample {
  
      public static void main(String[] args) {
          
          EmisorApi apiInstance = new EmisorApi();
          String authorization = authorization_example; // String | Token to business partner , from PayCash Global.
          String Date = date_example; // String | Date to yyyy-mm-dd
          String Hour = hour_example; // String | Hour to HH:MM:ss
          try {
              array[RespPayments] result = apiInstance.Payments(authorization, Date,Hour);
              System.out.println(result);
          } catch (ApiException e) {
              System.err.println("Exception when calling EmisorApi#Payments");
              e.printStackTrace();
          }
      }
  }
import io.swagger.client.api.EmisorApi;
  
  public class EmisorApiExample {
      public static void main(String[] args) {
          EmisorApi apiInstance = new EmisorApi();
          String authorization = authorization_example; // String | Token to business partner , from PayCash Global.
          String Date = date_example; // String | Date to yyyy-mm-dd
          String Hour = hour_example; // String | Hour to HH:MM:ss
          try {
              array[RespSearchRef] result = apiInstance.Payments(authorization, Date,Hour);
              System.out.println(result);
          } catch (ApiException e) {
              System.err.println("Exception when calling EmisorApi#Payments");
              e.printStackTrace();
          }
      }
  }
String *authorization = authorization_example; // Token to business partner , from PayCash Global.
  String *Date = date_example; // Date to yyyy-mm-dd 
  String *Hour = hour_example; // Hour to HH:MM:ss 

  EmisorApi *apiInstance = [[EmisorApi alloc] init];
  
  // Search process for listing payments, previously made.
  [apiInstance Payments:authorization
      Date:date
      Hour:hour
                completionHandler: ^(array[RespPayments] output, NSError* error) {
                              if (output) {
                                  NSLog(@"%@", output);
                              }
                              if (error) {
                                  NSLog(@"Error: %@", error);
                              }
                          }];
  
var PayCashGlobalEmisores = require('pay_cash_global_emisores');
  
  var api = new PayCashGlobalEmisores.EmisorApi()
  var authorization = authorization_example; // {{String}} Token to business partner , from PayCash Global.
  var opts = { 
    'Date': date_example, // {{String}} Date to yyyy-mm-dd
    'Hour': hour_example // {{String}} Hour to HH:MM:ss 
  };
  var callback = function(error, data, response) {
    if (error) {
      console.error(error);
    } else {
      console.log('API called successfully. Returned data: ' + data);
    }
  };
  api.Payments(authorization, opts, callback);
  
using System;
  using System.Diagnostics;
  using IO.Swagger.Api;
  using IO.Swagger.Client;
  using IO.Swagger.Model;
  
  namespace Example
  {
      public class PaymentsExample
      {
          public void main()
          {
  
              var apiInstance = new EmisorApi();
              var authorization = authorization_example;  // String | Token to business partner , from PayCash Global.
              var Date = date_example;  // String | Date to yyyy-mm-dd
              var Hour = hour_example;  // String | Hour to HH:MM:ss  
              try
              {
                  // Search process for listing payments, previously made.
                  array[RespPayments] result = apiInstance.Payements(authorization, Date,Hour);
                  Debug.WriteLine(result);
              }
              catch (Exception e)
              {
                  Debug.Print("Exception when calling EmisorApi.Payemets: " + e.Message );
              }
          }
      }
  }
  
<?php
  require_once(__DIR__ . '/vendor/autoload.php');
  
  $api_instance = new Swagger\Client\ApiEmisorApi();
  $authorization = authorization_example; // String | Token to business partner , from PayCash Global.
  $Date = date_example; // String | Date  to yyyy-mm-dd
  $Hour = hour_example; // String | Hour  to HH:MM:ss 

  try {
      $result = $api_instance->Payments($authorization, $Date,$Hour);
      print_r($result);
  } catch (Exception $e) {
      echo 'Exception when calling EmisorApi->Payments: ', $e->getMessage(), PHP_EOL;
  }
  ?>
use Data::Dumper;
  use WWW::SwaggerClient::Configuration;
  use WWW::SwaggerClient::EmisorApi;
  
  my $api_instance = WWW::SwaggerClient::EmisorApi->new();
  my $authorization = authorization_example; # String | Token to business partner , from PayCash Global.
  my $Date = date_example; # String | Date to yyyy-mm-dd
  my $Hour = date_example; # String | Hour to HH:MM:ss
  
  eval { 
      my $result = $api_instance->Payments(authorization => $authorization,Date => $date,Hour => $hour);
      print Dumper($result);
  };
  if ($@) {
      warn "Exception when calling EmisorApi->Payments: $@\n";
  }
from __future__ import print_statement
  import time
  import swagger_client
  from swagger_client.rest import ApiException
  from pprint import pprint
  
  # create an instance of the API class
  api_instance = swagger_client.EmisorApi()
  authorization = authorization_example # String | Token to business partner , from PayCash Global
  Date = date_example # String | Date to yyyy-mm-dd
  Hour = hour_example # String | Date to HH:MM:ss

  try: 
      # Search process for listing payments, previously made
      api_response = api_instance.Payements(authorization, Date=Date,Hour=Hour)
      pprint(api_response)
  except ApiException as e:
      print("Exception when calling EmisorApi->Payments: %s\n" % e)

Parámetros

Header
Nombre Descripción
authorization*
String
Token obtenido al momento de autenticarse. Resultado de ejecutar el método para obtener el token (authre).
Obligatorio
Query
Nombre Descripción
Date
String
Fecha en la que se desea consultar los pagos.
-Formato: YYYY-mm-dd
Obligatorio
Hour
String
Hora a partir de la cual se hace la consulta de pagos.
-Formato: hh:mm:ss
Obligatorio

Responses

Status: 200 - Successful Process

Status: 400 - Internal Server Error.