https://apiemida-test.azurewebsites.net/api/
All API calls can made with request method GET or POST. If using get pass data with query parameters. If using POST request data could be passed in body.
All example api calls in this document pass the data with query parameters to they can easily be tested in the browser.
To be able to call the REST API, credentials has to be passed as a query parameter code
in the url.
Credentials for test environment is pO2M8MNcqLkd8hOIIcribo3ewVklet5x5Wf5jVJfh0OaSWHYDeHjog==
.
Here is an example of calling the comTest
api method with the Gulf credentials
The following Emida credentials can be used to test Top Ups with pinDistSale
api method
terminalId=4669182
clerkId=54234
merchantId=310696525579
The API call examples in this document mentioned below will all contain these Emida credentials.
The following Emida credentials can be used to test Bill Payments with billPaymentUserFee
api method
terminalId=9913580
clerkId=59720
merchantId=550304778561
The API call examples in this document mentioned below will all contain these Emida credentials.
- commTest
- getAccountBalance
- productFlowInfoService
- pinDistSale
- billPaymentUserFee
- lookupTransactionByInvoiceNo
- submitPaymentNotificationUtil
- submitPaymentNotificationExt
- getActiveMessage
-
type Response = {
status: "OK",
};
{
status: "OK"
}
type Request = {
terminalId: string,
merchantId: string,
};
type Response = {
version: string,
responseCode: string,
terminalId: string,
merchantId: string,
legalBusinessname: string,
dba: string,
availableBalance: string,
};
{
version: "01",
responseCode: "00",
terminalId: "4669182",
merchantId: "310696525579",
legalBusinessname: "OPERACIONES EN LINEA",
dba: "A1 - OPERACIONES EN LINEA",
availableBalance: "7601.0"
}
type Request = {
terminalId: string,
clerkId: string,
invoiceNo: string,
language?: "1" | "2", // Default is "1" english, "2" is spanish
};
type Response = {
version: string,
responseCode: string,
products: Array<{
flowType: "A" | "B",
productCategory: string,
productSubCategory: string,
carrierName: string,
productId: string,
productName: string,
productUFee: string,
currencyCode: string,
amount: string,
amountMin: string,
amountMax: string,
paymentType: string,
referenceParameters: {
reference1: {
referenceName: string,
fieldType: string,
lengthMin: string,
lengthMax: string,
prefix: string,
toolTip: string,
urlImage: string,
extraReference1: {
mandatory: string,
referenceName: string,
fieldType: string,
lengthMin: string,
lengthMax: string,
prefix: string,
toolTip: string,
urlImage: string,
}
}
}
}>,
};
Top Ups (Flow Type A)
Bill Payments (Flow Type B)
Top Ups (Flow Type A)
{
version: "01",
responseCode: "00",
products: [
{
flowType: "A",
productCategory: "RECARGAS",
productSubCategory: "NA",
carrierName: "MOVISTAR",
productId: "5100030",
productName: "Recarga Movistar T 30",
productUFee: "0.0000",
currencyCode: "MXP",
amount: "30.0000",
amountMin: "0",
amountMax: "0",
paymentType: "Totales",
referenceParameters: {
reference1: {
referenceName: "Numero de Telefono",
fieldType: "NM",
lengthMin: "10",
lengthMax: "10",
prefix: "NA",
toolTip: "Vigencia 5 dias",
urlImage: "https://dl.dropboxusercontent.com/s/ldid94bzctu2e5k/movistar.png?dl=0",
extraReference1: {
mandatory: "NO",
referenceName: "NA",
fieldType: "NA",
lengthMin: "NA",
lengthMax: "NA",
prefix: "NA",
toolTip: "NA",
urlImage: "NA",
}
}
}
},
{
flowType: "A",
productCategory: "Todo en Uno",
productSubCategory: "NA",
carrierName: "MOVISTAR",
productId: "5116100",
productName: "Internet Movistar 3 dias",
productUFee: "0.0000",
currencyCode: "MXP",
amount: "50.0000",
amountMin: "0",
amountMax: "0",
paymentType: "Totales",
referenceParameters: {
reference1: {
referenceName: "Numero de Telefono",
fieldType: "NM",
lengthMin: "10",
lengthMax: "10",
prefix: "NA",
toolTip: "Vigencia 5 dias",
urlImage: "https://dl.dropboxusercontent.com/s/ldid94bzctu2e5k/movistar.png?dl=0",
extraReference1: {
mandatory: "NO",
referenceName: "NA",
fieldType: "NA",
lengthMin: "NA",
lengthMax: "NA",
prefix: "NA",
toolTip: "NA",
urlImage: "NA",
}
}
}
},
{
flowType: "A",
productCategory: "Tarjetas Regalo",
productSubCategory: "NA",
carrierName: "Cinepolis",
productId: "5100300",
productName: "Tarjeta Cinepolis 1 Entrada",
productUFee: "0.0000",
currencyCode: "MXP",
amount: "49.0000",
amountMin: "0",
amountMax: "0",
paymentType: "Totales",
referenceParameters: {
reference1: {
referenceName: "Numero de Telefono",
fieldType: "NM",
lengthMin: "10",
lengthMax: "10",
prefix: "NA",
toolTip: "Vigencia 5 dias",
urlImage: "https://dl.dropboxusercontent.com/s/dyf9znlhl97jtiu/cinepolis.png?dl=0",
extraReference1: {
mandatory: "NO",
referenceName: "NA",
fieldType: "NA",
lengthMin: "NA",
lengthMax: "NA",
prefix: "NA",
toolTip: "NA",
urlImage: "NA",
}
}
}
},
{
flowType: "A",
productCategory: "RECARGAS",
productSubCategory: "NA",
carrierName: "MOVISTAR",
productId: "5100110",
productName: "Recarga Movistar 10",
productUFee: "0.0000",
currencyCode: "MXP",
amount: "10.0000",
amountMin: "0",
amountMax: "0",
paymentType: "Totales",
referenceParameters: {
reference1: {
referenceName: "Numero de Telefono",
fieldType: "NM",
lengthMin: "10",
lengthMax: "10",
prefix: "NA",
toolTip: "Vigencia 5 dias",
urlImage: "https://dl.dropboxusercontent.com/s/ldid94bzctu2e5k/movistar.png?dl=0",
extraReference1: {
mandatory: "NO",
referenceName: "NA",
fieldType: "NA",
lengthMin: "NA",
lengthMax: "NA",
prefix: "NA",
toolTip: "NA",
urlImage: "NA",
}
}
}
},
{
flowType: "A",
productCategory: "RECARGAS",
productSubCategory: "NA",
carrierName: "VIRGIN",
productId: "5120200",
productName: "Recarga Virgin 20",
productUFee: "0.0000",
currencyCode: "MXP",
amount: "20.0000",
amountMin: "0",
amountMax: "0",
paymentType: "Totales",
referenceParameters: {
reference1: {
referenceName: "Numero de Telefono",
fieldType: "NM",
lengthMin: "10",
lengthMax: "10",
prefix: "NA",
toolTip: "Vigencia 5 dias",
urlImage: "https://dl.dropboxusercontent.com/s/w6dr77pk0f4qebs/virgin.png?dl=0",
extraReference1: {
mandatory: "NO",
referenceName: "NA",
fieldType: "NA",
lengthMin: "NA",
lengthMax: "NA",
prefix: "NA",
toolTip: "NA",
urlImage: "NA",
}
}
}
},
{
flowType: "A",
productCategory: "RECARGAS",
productSubCategory: "NA",
carrierName: "Telcel",
productId: "5100050",
productName: "Recarga Telcel T 50",
productUFee: "0.0000",
currencyCode: "MXP",
amount: "100.0000",
amountMin: "0",
amountMax: "0",
paymentType: "Totales",
referenceParameters: {
reference1: {
referenceName: "Numero de Telefono",
fieldType: "NM",
lengthMin: "10",
lengthMax: "10",
prefix: "NA",
toolTip: "Vigencia 5 dias",
urlImage: "https://dl.dropboxusercontent.com/s/hfaiyalg0m1q5nd/telcel.png?dl=0",
extraReference1: {
mandatory: "NO",
referenceName: "NA",
fieldType: "NA",
lengthMin: "NA",
lengthMax: "NA",
prefix: "NA",
toolTip: "NA",
urlImage: "NA",
}
}
}
}
]
}
Bill Payments (Flow Type B)
{
version: "01",
responseCode: "00",
products: [
{
flowType: "B",
productCategory: "PAGO SERVICIOS",
productSubCategory: "Transpote",
carrierName: "Televia",
productId: "5121004",
productName: "Pago TAG TELEVIA 200",
productUFee: "5.0000",
currencyCode: "MXP",
amount: "200.0000",
amountMin: "0",
amountMax: "0",
paymentType: "Totales",
referenceParameters: {
reference1: {
referenceName: "Numero de TAG",
fieldType: "NM",
lengthMin: "13",
lengthMax: "13",
prefix: "NA",
toolTip: "Numero de Referencia",
urlImage: "https://dl.dropboxusercontent.com/s/uv12fujdv3vm4iu/Recibo%20TELEVIA.jpg?dl=0",
extraReference1: {
mandatory: "NO",
referenceName: "NA",
fieldType: "NA",
lengthMin: "NA",
lengthMax: "NA",
prefix: "#",
toolTip: "NA",
urlImage: "NA",
}
}
}
},
{
flowType: "B",
productCategory: "PAGO SERVICIOS",
productSubCategory: "Television Por Cable",
carrierName: "SKY",
productId: "5121003",
productName: "Pago SkyVTV",
productUFee: "9.0000",
currencyCode: "MXP",
amount: "0",
amountMin: "5.0000",
amountMax: "10000.0000",
paymentType: "Parciales Totales y Vencidos",
referenceParameters: {
reference1: {
referenceName: "Numero de Cuenta",
fieldType: "NM",
lengthMin: "12",
lengthMax: "12",
prefix: "NA",
toolTip: "Numero de cuenta de 12 Digitos",
urlImage: "https://dl.dropboxusercontent.com/s/pgsgj00oqfor8qa/Recibo%20SKY.jpg?dl=0",
extraReference1: {
mandatory: "NO",
referenceName: "NA",
fieldType: "NA",
lengthMin: "NA",
lengthMax: "NA",
prefix: "#",
toolTip: "NA",
urlImage: "NA",
}
}
}
},
{
flowType: "B",
productCategory: "PAGO SERVICIOS",
productSubCategory: "Telefono",
carrierName: "TELMEX",
productId: "5121001",
productName: "Pago TELMEX",
productUFee: "9.0000",
currencyCode: "MXP",
amount: "0",
amountMin: "5.0000",
amountMax: "10000.0000",
paymentType: "Parciales Totales y Vencidos",
referenceParameters: {
reference1: {
referenceName: "Numero de Telefono",
fieldType: "NM",
lengthMin: "12",
lengthMax: "12",
prefix: "NA",
toolTip: "Numero de Telefono a 12 Digitos",
urlImage: "https://dl.dropboxusercontent.com/s/6dwa3xgqk4w3pul/Recibo%20TELMEX.png?dl=0",
extraReference1: {
mandatory: "NO",
referenceName: "NA",
fieldType: "NA",
lengthMin: "NA",
lengthMax: "NA",
prefix: "#",
toolTip: "NA",
urlImage: "NA",
}
}
}
}
]
}
type Request = {
terminalId: string,
clerkId: string,
productId: string,
accountId: string,
amount: string,
invoiceNo: string,
language?: "1" | "2", // Default is "1" english, "2" is spanish
};
type Response = {
version: string,
invoiceNo: string,
responseCode: string,
pin: string,
controlNo: string,
carrierControlNo: string,
customerServiceNo: string,
transactionDateTime: string,
h2hResultCode: string,
responseMessage: string,
transactionId: string,
};
{
version : "01" ,
invoiceNo : "1" ,
responseCode : "00" ,
pin : "1234567890" ,
controlNo : "71885043" ,
carrierControlNo : "" ,
customerServiceNo : "" ,
transactionDateTime : "08/05/2020 01: 55: 54: 220" ,
h2hResultCode : "0" ,
responseMessage : "Validity 30 days. For any questions or clarification dial * 611 from your Movistar or 01-800 8888366 from a landline." ,
transactionId : "308071900"
}
type Request = {
terminalId: string,
clerkId: string,
productId: string,
accountId: string,
amount: string,
invoiceNo: string,
language?: "1" | "2", // Default is "1" english, "2" is spanish
};
type Response = {
version: string,
invoiceNo: string,
responseCode: string,
pin: string,
controlNo: string,
carrierControlNo: string,
customerServiceNo: string,
transactionDateTime: string,
h2hResultCode: string,
responseMessage: string,
transactionId: string,
amount: string,
};
{
version : "01" ,
invoiceNo : "4" ,
responseCode : "00" ,
pin : "1234567890123" ,
controlNo : "137091230" ,
carrierControlNo : "" ,
customerServiceNo : "" ,
transactionDateTime : "08/05/2020 02: 41: 04: 643" ,
h2hResultCode : "0" ,
responseMessage : "OPERATION SUCCESSFUL THE PERIOD FOR THE APPLICATION OF THE PAYMENT IS 24 HRS FOR ANY DOUBT CALL 01 800 083 6432 AND 0155 22823810" ,
transactionId : "308071957" ,
amount : "205.00"
}
type Request = {
terminalId: string,
clerkId: string,
invoiceNo: string,
};
type Response = {
version: string,
invoiceNo: string,
responseCode: string,
pin: string,
controlNo: string,
carrierControlNo: string,
customerServiceNo: string,
transactionDateTime: string,
h2hResultCode: string,
responseMessage: string,
transactionId: string,
};
{
version: "01",
invoiceNo: "4",
responseCode: "00",
pin: "1234567890124",
controlNo: "137091230",
carrierControlNo: "1234567890123",
customerServiceNo: ",
transactionDateTime: "2020-05-08 02:41:04.643",
h2hResultCode: "00",
responseMessage: "OPERACION EXITOSA\r\nEL PERIODO PARA LA APLICACION DEL PAGO ES DE 24 HRS PARA CUALQUIER DUDA LLAME A AL 01 800 083 6432 Y 0155 22823810",
transactionId: "308071957"
}
type Request = {
terminalId: string,
clerkId: string,
language?: "1" | "2", // Default is "1" english, "2" is spanish
};
type Response = {
responseCode: string,
responseMessage: string,
banks: Array<{|
id: string,
description: string,
|}>,
depositTypes: Array<{|
bankId: string,
code: string,
depositTypeId: string,
description: string,
transferAccount: string,
fieldLength: string,
fieldType: string,
fieldPrefix: string,
imageName: string,
|}>,
invoiceTypes: Array<{|
code: string,
description: string,
|}>,
properties: Array<{|
code: string,
description: string,
|}>,
};
{
responseCode: "00",
responseMessage: "Success",
banks: [],
depositTypes: [],
invoiceTypes: [
{
code: "NINV",
description: "No Invoice",
},
{
code: "INV",
description: "Billing",
}
],
properties: [
{
code: "ACCOUNT_TYPE_TRANSFER_LABEL_2",
description: "Account Types",
},
{
code: "PAYMENTREQUEST_MESSAGE_1",
description: "The payment application is from Monday to Friday from 9 am to 6 pm and Saturdays from 9 am to 1 pm, within the next hour from the moment of receiving the payment report. this schedule will be applied the next business day.",
},
{
code: "ACCOUNT_TYPE_TRANSFER_LABEL_1",
description: "Account Type",
},
{
code: "ACCOUNT_TYPE_TRANSFER_OPTIONS_2",
description: "KEY = INTERBANK CLABE, PERSONAL = ACCOUNT NUMBER",
},
{
code: "ACCOUNT_TYPE_TRANSFER_CLAVE_MESSAGE_1",
description: "The account number must be a minimum of 6 Digits",
},
{
code: "PAYMENTREQUEST_MESSAGE_2",
description: "The payment application is from Monday to Friday from 9 am to 6 pm and Saturdays from 9 am to 1 pm, within the next hour from the moment of receiving the payment report. Deposits made on Holidays and outside these hours they will be applied to the following business day ",
},
{
code: "ACCOUNT_TYPE_TRANSFER_CLAVE_LENGTH",
description: "6",
},
{
code: "ACCOUNT_TYPE_TRANSFER_CLAVE_MESSAGE_2",
description: "The account number clabe must be a minimum of 18 Digits",
},
{
code: "ACCOUNT_TYPE_TRANSFER_OPTIONS_1",
description: "KEY = Account Key, PERSONAL = Personal Account",
}
]
}
type Request = {
terminalId: string,
clerkId: string,
amount: string,
documentNumber: string,
documentDate: string,
bankCode: string,
invoiceType: string,
depositCode: string,
accountType: string,
transferAccount: string,
language?: "1" | "2", // Default is "1" english, "2" is spanish
};
type Response = {
responseCode: string,
responseMessage: string,
additionalInfo: string,
paymentRequestId: string,
};
{
responseCode: "24",
responseMessage: "ERROR WHEN CREATING REQUEST",
additionalInfo: "Bank code, Deposit code or invoice type are invalids"
}
type Request = {
terminalId: string,
clerkId: string,
marca: string,
invoiceNo: string,
language?: "1" | "2", // Default is "1" english, "2" is spanish
};
type Response = {
responseStatus: string,
responseCode: string,
responseMessage: string,
};
{
responseStatus: "0",
responseCode: "1520",
responseMessage: "There's no new messages"
}