A Golang SDK for interacting with the metamap API
- You encounter any error while using this package and that issue would be attended to immediately.
- Feel free to contribute to this library by creating PR's ;)
- In other to use this package, you need to first create an account with
MetaMap
via https://metamap.com to get yourClient_Id
andClient_Secret
To install this package, you need to install Go and set your Go workspace first.
- You can use the below Go command to install metamap
$ go get -u github.com/iqquee/metamap
- Import it in your code:
import "github.com/iqquee/metamap"
- An object of the response
- An error (if any)
# assume the following codes in example.go file
$ touch example.go
# open the just created example.go file in the text editor of your choice
ArgentinaDNI verify a user's DNI (Documento Nacional de Identidad) based on card number and issue date.
This method takes in the ArgentinaDNIRequest{} struct as a parameter.
type ArgentinaDNIRequest struct {
// Document number from either a National ID or a driver license.
DocumentNumber string `json:"documentNumber"`
DateOfBirth string `json:"dateOfBirth"`
// M for male, F for female.
Gender string `json:"gender"`
// Document issue date.
DateOfIssue string `json:"dateOfIssue"`
CallbackUrl string `json:"callbackUrl"`
// Use Metadata to add internal references for your outputs/webhooks.
Metadata map[string]interface{} `json:"metadata"`
}
package main
import (
"fmt"
metamap "github.com/iqquee/metamap"
)
func main() {
clientId := "your metamap client id"
clientSecret := "your metamap client secrete"
httpClient := hhttp.DefaultClient
client := metamap.New(&httpClient, clientId, clientSecret)
req := metamap.ArgentinaDNIRequest{
DocumentNumber: "your document number",
DateOfBirth: "your data of birth e.g 2023-05-10",
Gender: "M", // for male
DateOfIssue: "your data of issue",
CallbackUrl: "https://webhook.site/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
resp, err := client.ArgentinaDNI(req)
if err != nil {
fmt.Println("This is the error: ", err)
return
}
fmt.Println("This is the response: ", resp)
}
ArgentinaRENAPER verify a user's DNI (Documento Nacional de Identidad) number and identity.
NOTE: Use the ArgentinaDNI() to validate the submitted DNI card.
This method takes in the ArgentinaRENAPERRequest{} struct as a parameter.
type ArgentinaRENAPERRequest struct {
// Document number from either a National ID or a driver license.
DocumentNumber string `json:"documentNumber"`
DateOfBirth string `json:"dateOfBirth"`
// M for male, F for female.
Gender string `json:"gender"`
// Document issue date.
DateOfIssue string `json:"dateOfIssue"`
CallbackUrl string `json:"callbackUrl"`
// Use Metadata to add internal references for your outputs/webhooks.
Metadata map[string]interface{} `json:"metadata"`
}
package main
import (
"fmt"
metamap "github.com/iqquee/metamap"
)
func main() {
clientId := "your metamap client id"
clientSecret := "your metamap client secrete"
httpClient := hhttp.DefaultClient
client := metamap.New(&httpClient, clientId, clientSecret)
req := metamap.ArgentinaRENAPERRequest{
DocumentNumber: "your document number",
DateOfBirth: "your data of birth e.g 2023-05-10",
Gender: "M", // for male
DateOfIssue: "your data of issue",
CallbackUrl: "https://webhook.site/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
resp, err := client.ArgentinaRENAPER(req)
if err != nil {
fmt.Println("This is the error: ", err)
return
}
fmt.Println("This is the response: ", resp)
}
ArgentinaRENAPERPremium verify a user's DNI (Documento Nacional de Identidad) number and identity.
NOTE: You do not need to validate the submitted DNI card parameters via ArgentinaDNI() as this check is implemented in here.
This method takes in the ArgentinaRENAPERPremiumRequest{} struct as a parameter.
type ArgentinaRENAPERPremiumRequest struct {
// Document number from either a National ID or a driver license.
DocumentNumber string `json:"documentNumber"`
// E.g "2023-05-10"
DateOfBirth string `json:"dateOfBirth"`
// Date of document issue E.g "2023-05-10"
IssueDate string `json:"issueDate"`
// M for male, F for female.
Gender string `json:"gender"`
CallbackUrl string `json:"callbackUrl"`
// Use Metadata to add internal references for your outputs/webhooks.
Metadata map[string]interface{} `json:"metadata"`
}
package main
import (
"fmt"
metamap "github.com/iqquee/metamap"
)
func main() {
clientId := "your metamap client id"
clientSecret := "your metamap client secrete"
httpClient := hhttp.DefaultClient
client := metamap.New(&httpClient, clientId, clientSecret)
req := metamap.ArgentinaRENAPERPremiumRequest{
DocumentNumber: "your document number",
DateOfBirth: "your data of birth e.g 2023-05-10",
Gender: "M", // for male
IssueDate: "your data of issue",
CallbackUrl: "https://webhook.site/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
resp, err := client.ArgentinaRENAPERPremium(req)
if err != nil {
fmt.Println("This is the error: ", err)
return
}
fmt.Println("This is the response: ", resp)
}
ArgentinaRENAPERExtended verify a user's DNI (Documento Nacional de Identidad) number and identity against multiple databases.
NOTE: Use the ArgentinaDNI() to validate the submitted DNI card.
This method takes in the ArgentinaRENAPERExtendedRequest{} struct as a parameter.
type ArgentinaRENAPERExtendedRequest struct {
// Document number from either a National ID or a driver license
DocumentNumber string `json:"documentNumber"`
FullName string `json:"fullName"`
CallbackUrl string `json:"callbackUrl"`
// Use Metadata to add internal references for your outputs/webhooks.
Metadata map[string]interface{} `json:"metadata"`
}
package main
import (
"fmt"
metamap "github.com/iqquee/metamap"
)
func main() {
clientId := "your metamap client id"
clientSecret := "your metamap client secrete"
httpClient := hhttp.DefaultClient
client := metamap.New(&httpClient, clientId, clientSecret)
req := metamap.ArgentinaRENAPERExtendedRequest{
DocumentNumber: "your document number",
FullName: "your full name",
CallbackUrl: "https://webhook.site/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
resp, err := client.ArgentinaRENAPERExtended(req)
if err != nil {
fmt.Println("This is the error: ", err)
return
}
fmt.Println("This is the response: ", resp)
}
BrazilCNPJValidation validate a business's National Registry of Legal Entities number.
This method takes in the BrazilCNPJValidationRequest{} struct as a parameter.
type BrazilCNPJValidationRequest struct {
Cnpj string `json:"cnpj"`
CallbackUrl string `json:"callbackUrl"`
}
package main
import (
"fmt"
metamap "github.com/iqquee/metamap"
)
func main() {
clientId := "your metamap client id"
clientSecret := "your metamap client secrete"
httpClient := hhttp.DefaultClient
client := metamap.New(&httpClient, clientId, clientSecret)
req := metamap.BrazilCNPJValidationRequest{
Cnpj: "your cnpj number",
CallbackUrl: "https://webhook.site/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
resp, err := client.BrazilCNPJValidation(req)
if err != nil {
fmt.Println("This is the error: ", err)
return
}
fmt.Println("This is the response: ", resp)
}
BrazilCNPJExtendedValidation validate a business's National Registry of Legal Entities number.
This method takes in the BrazilCNPJExtendedValidationRequest{} struct as a parameter.
type BrazilCNPJExtendedValidationRequest struct {
Cnpj string `json:"cnpj"`
CallbackUrl string `json:"callbackUrl"`
}
package main
import (
"fmt"
metamap "github.com/iqquee/metamap"
)
func main() {
clientId := "your metamap client id"
clientSecret := "your metamap client secrete"
httpClient := hhttp.DefaultClient
client := metamap.New(&httpClient, clientId, clientSecret)
req := metamap.BrazilCNPJExtendedValidationRequest{
Cnpj: "your cnpj number",
CallbackUrl: "https://webhook.site/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
resp, err := client.BrazilCNPJExtendedValidation(req)
if err != nil {
fmt.Println("This is the error: ", err)
return
}
fmt.Println("This is the response: ", resp)
}
BrazilCPFValidation verify a user's CPF number and identity.
This method takes in the BrazilCPFValidationRequest{} struct as a parameter.
type BrazilCPFValidationRequest struct {
CpfNumber string `json:"cpfNumber"`
FullName string `json:"fullName"`
DateOfBirth string `json:"dateOfBirth"`
MothersName string `json:"mothersName"`
FathersName string `json:"fathersName"`
// nationalId or driving-license
DocumentType string `json:"documentType"`
DocumentNumber string `json:"documentNumber"`
// M for male, F for female. Returns null if there is no gender data.
Gender string `json:"gender"`
CallbackUrl string `json:"callbackUrl"`
}
package main
import (
"fmt"
metamap "github.com/iqquee/metamap"
)
func main() {
clientId := "your metamap client id"
clientSecret := "your metamap client secrete"
httpClient := hhttp.DefaultClient
client := metamap.New(&httpClient, clientId, clientSecret)
req := metamap.BrazilCPFValidationRequest{
CpfNumber: "012.345.678-90",
FullName: "JOHN DOE",
DateOfBirth: "1900-01-01",
MothersName: "JANE DOE",
FathersName: "JAMES DOE",
DocumentType: "national-id",
DocumentNumber: "0123456789",
CallbackUrl: "https://webhook.site/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
resp, err := client.BrazilCPFValidation(req)
if err != nil {
fmt.Println("This is the error: ", err)
return
}
fmt.Println("This is the response: ", resp)
}
BrazilCPFLEGACY verify a user's CPF number and identity.
NOTE: This version of the CPF check only handles individual validation requests. Use the new version of the BrazilCPFValidation() which can handle batch validation requests.
This method takes in the BrazilCPFLEGACYRequest{} struct as a parameter.
type BrazilCPFLEGACYRequest struct {
CpfNumber string `json:"cpfNumber"`
FullName string `json:"fullName"`
DocumentNumber string `json:"documentNumber"`
DateOfBirth string `json:"dateOfBirth"`
DateOfExpiry string `json:"dateOfExpiry"`
DocumentType string `json:"documentType"`
}
package main
import (
"fmt"
metamap "github.com/iqquee/metamap"
)
func main() {
clientId := "your metamap client id"
clientSecret := "your metamap client secrete"
httpClient := hhttp.DefaultClient
client := metamap.New(&httpClient, clientId, clientSecret)
req := metamap.BrazilCPFLEGACYRequest{
CpfNumber: "012.345.678-90",
FullName: "JOHN DOE",
DateOfBirth: "1900-01-01",
DateOfExpiry: "2021-12-31",
DocumentType: "national-id",
DocumentNumber: "0123456789",
}
resp, err := client.BrazilCPFLEGACY(req)
if err != nil {
fmt.Println("This is the error: ", err)
return
}
fmt.Println("This is the response: ", resp)
}
BrazilCPFLight verify a user's CPF number and identity.
This method takes in the BrazilCPFLightRequest{} struct as a parameter.
type BrazilCPFLightRequest struct {
Cpf string `json:"cpf"`
CallbackUrl string `json:"callbackUrl"`
}
package main
import (
"fmt"
metamap "github.com/iqquee/metamap"
)
func main() {
clientId := "your metamap client id"
clientSecret := "your metamap client secrete"
httpClient := hhttp.DefaultClient
client := metamap.New(&httpClient, clientId, clientSecret)
req := metamap.BrazilCPFLightRequest{
Cpf: "01234567",
CallbackUrl: "https://webhook.site/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
resp, err := client.BrazilCPFLight(req)
if err != nil {
fmt.Println("This is the error: ", err)
return
}
fmt.Println("This is the response: ", resp)
}
ChileRegistroCivil verify that a user's RUN number against the Chilean Civil Registry database.
This method takes in the ChileRegistroCivilRequest{} struct as a parameter.
type ChileRegistroCivilRequest struct {
RunNumber string `json:"runNumber"`
DocumentType string `json:"documentType"`
Nationality string `json:"nationality"`
DocumentNumber string `json:"documentNumber"`
CallbackUrl string `json:"callbackUrl"`
}
package main
import (
"fmt"
metamap "github.com/iqquee/metamap"
)
func main() {
clientId := "your metamap client id"
clientSecret := "your metamap client secrete"
httpClient := hhttp.DefaultClient
client := metamap.New(&httpClient, clientId, clientSecret)
req := metamap.ChileRegistroCivilRequest{
RunNumber: "run number",
DocumentType : "document type",
Nationality: "CHL",
DocumentNumber: "document number",
CallbackUrl: "https://webhook.site/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
resp, err := client.ChileRegistroCivil(req)
if err != nil {
fmt.Println("This is the error: ", err)
return
}
fmt.Println("This is the response: ", resp)
}
ChileCriminalCertificate verify that a user's background certificate is valid.
This method takes in the ChileCriminalCertificateRequest{} struct as a parameter.
type ChileCriminalCertificateRequest struct {
SheetNumber string `json:"sheetNumber"`
VerificationCode string `json:"verificationCode"`
CallbackUrl string `json:"callbackUrl"`
}
package main
import (
"fmt"
metamap "github.com/iqquee/metamap"
)
func main() {
clientId := "your metamap client id"
clientSecret := "your metamap client secrete"
httpClient := hhttp.DefaultClient
client := metamap.New(&httpClient, clientId, clientSecret)
req := metamap.ChileCriminalCertificateRequest{
SheetNumber: "012345678901",
VerificationCode: "1ab23cd45e6f",
CallbackUrl: "https://webhook.site/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
resp, err := client.ChileCriminalCertificate(req)
if err != nil {
fmt.Println("This is the error: ", err)
return
}
fmt.Println("This is the response: ", resp)
}
ColombiaMigrationInstitute verify that a user has a valid immigration status in Colombia.
This method takes in the ColombiaMigrationInstituteRequest{} struct as a parameter.
NOTE: DateOfIssue fieid should be in this format 2022-01-01.
type ColombiaMigrationInstituteRequest struct {
DocumentNumber string `json:"documentNumber"`
DateOfIssue string `json:"dateOfIssue"`
CallbackUrl string `json:"callbackUrl"`
}
package main
import (
"fmt"
metamap "github.com/iqquee/metamap"
)
func main() {
clientId := "your metamap client id"
clientSecret := "your metamap client secrete"
httpClient := hhttp.DefaultClient
client := metamap.New(&httpClient, clientId, clientSecret)
req := metamap.ColombiaMigrationInstituteRequest{
DocumentNumber: "document number",
DateOfIssue: "2022-01-01",
CallbackUrl: "https://webhook.site/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
resp, err := client.ColombiaMigrationInstitute(req)
if err != nil {
fmt.Println("This is the error: ", err)
return
}
fmt.Println("This is the response: ", resp)
}
ColombiaRegistraduria verify a user's ID card against the Colombian Civil Registry.
This method takes in the ColombiaRegistraduriaRequest{} struct as a parameter.
type ColombiaRegistraduriaRequest struct {
DocumentNumber string `json:"documentNumber"`
CallbackUrl string `json:"callbackUrl"`
}
package main
import (
"fmt"
metamap "github.com/iqquee/metamap"
)
func main() {
clientId := "your metamap client id"
clientSecret := "your metamap client secrete"
httpClient := hhttp.DefaultClient
client := metamap.New(&httpClient, clientId, clientSecret)
req := metamap.ColombiaRegistraduriaRequest{
DocumentNumber: "document number",
CallbackUrl: "https://webhook.site/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
resp, err := client.ColombiaRegistraduria(req)
if err != nil {
fmt.Println("This is the error: ", err)
return
}
fmt.Println("This is the response: ", resp)
}
ColombiaMigrationInstitute verify that a user has a valid immigration status in Colombia.
This method takes in the ColombiaRegistraduriaLightRequest{} struct as a parameter.
NOTE: DateOfIssue fieid should be in this format 2022-01-01.
type ColombiaRegistraduriaLightRequest struct {
DocumentNumber string `json:"documentNumber"`
DateOfIssue string `json:"dateOfIssue"`
CallbackUrl string `json:"callbackUrl"`
}
package main
import (
"fmt"
metamap "github.com/iqquee/metamap"
)
func main() {
clientId := "your metamap client id"
clientSecret := "your metamap client secrete"
httpClient := hhttp.DefaultClient
client := metamap.New(&httpClient, clientId, clientSecret)
req := metamap.ColombiaRegistraduriaLightRequest{
DocumentNumber: "document number",
DateOfIssue: "2022-01-01",
CallbackUrl: "https://webhook.site/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
resp, err := client.ColombiaRegistraduriaLight(req)
if err != nil {
fmt.Println("This is the error: ", err)
return
}
fmt.Println("This is the response: ", resp)
}
ColombiaUnifiedLegalSearch check a user's full name against Colombian police records.
This method takes in the ColombiaUnifiedLegalSearchRequest{} struct as a parameter.
type ColombiaUnifiedLegalSearchRequest struct {
FullName string `json:"fullName"`
CallbackUrl string `json:"callbackUrl"`
}
package main
import (
"fmt"
metamap "github.com/iqquee/metamap"
)
func main() {
clientId := "your metamap client id"
clientSecret := "your metamap client secrete"
httpClient := hhttp.DefaultClient
client := metamap.New(&httpClient, clientId, clientSecret)
req := metamap.ColombiaUnifiedLegalSearchRequest{
FullName: "JOHN DOE",
CallbackUrl: "https://webhook.site/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
resp, err := client.ColombiaUnifiedLegalSearch(req)
if err != nil {
fmt.Println("This is the error: ", err)
return
}
fmt.Println("This is the response: ", resp)
}
ColombiaRUES check a business's national tax ID against Colombian Single Business and Social Registry.
This method takes in the ColombiaRUESRequest{} struct as a parameter.
type ColombiaRUESRequest struct {
Nit string `json:"nit"`
CallbackUrl string `json:"callbackUrl"`
}
package main
import (
"fmt"
metamap "github.com/iqquee/metamap"
)
func main() {
clientId := "your metamap client id"
clientSecret := "your metamap client secrete"
httpClient := hhttp.DefaultClient
client := metamap.New(&httpClient, clientId, clientSecret)
req := metamap.ColombiaRUESRequest{
Nit: "000000000",
CallbackUrl: "https://webhook.site/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
resp, err := client.ColombiaRUES(req)
if err != nil {
fmt.Println("This is the error: ", err)
return
}
fmt.Println("This is the response: ", resp)
}
ColombiaPPT verify the validity of the Colombian PPT (Permiso por protecciĂłn temporal = Temporary Protection Permit).
This method takes in the ColombiaPPTRequest{} struct as a parameter.
NOTE: Date of Birth format is DD-MM-YYYY
type ColombiaPPTRequest struct {
Rumv string `json:"rumv"`
Dni string `json:"dni"`
DateOfBirth string `json:"dateOfBirth"`
CallbackUrl string `json:"callbackUrl"
}
package main
import (
"fmt"
metamap "github.com/iqquee/metamap"
)
func main() {
clientId := "your metamap client id"
clientSecret := "your metamap client secrete"
httpClient := hhttp.DefaultClient
client := metamap.New(&httpClient, clientId, clientSecret)
req := metamap.ColombiaPPTRequest{
Rumv: "your rumv number",
Dni: "your dni number",
DateOfBirth: "01-03-2038"
CallbackUrl: "https://webhook.site/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
resp, err := client.ColombiaPPT(req)
if err != nil {
fmt.Println("This is the error: ", err)
return
}
fmt.Println("This is the response: ", resp)
}
NigeriaVirtualNIN verifies NIN(National Identification Number).
NOTE: The MetaData field in the metamap.NigeriaNINRequest{} struct is an optional parameter which can contain extra data to add internal references.
type NigeriaNINRequest struct {
VNIN string `json:"vNIN"`
FirstName string `json:"firstName"`
LastName string `json:"lastName"`
DateOfBirth string `json:"dateOfBirth"`
Metadata map[string]interface{} `json:"metadata"`
//CallbackUrl is a required parameter that must be passed in
CallbackUrl string `json:"callbackUrl"`
}
package main
import (
"fmt"
metamap "github.com/iqquee/metamap"
)
func main() {
clientId := "your metamap client id"
clientSecret := "your metamap client secrete"
httpClient := hhttp.DefaultClient
client := metamap.New(&httpClient, clientId, clientSecret)
extraData := make(map[string]interface{})
extraData["user_id"] = "08992e987"
extraData["some extra data"] = "some extra data"
req := metamap.NigeriaNINRequest{
DocumentNumber: "your national identity number",
FirstName: "John",
LastName: "Doe",
DateOfBirth: "2023-05-01",
Metadata: extraData,
Phone: "string"
CallbackUrl: "https://webhook.site/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
resp, err := client.NigeriaVirtualNIN(req)
if err != nil {
fmt.Println("This is the error: ", err)
return
}
fmt.Println("This is the response: ", resp)
}
NigeriaVotingIDNumber verifies NIN(National Identification Number).
type NigeriaVotingIDNumberRequest struct {
DocumentNumber string `json:"documentNumber"`
FirstName string `json:"firstName"`
LastName string `json:"lastName"`
DateOfBirth string `json:"dateOfBirth"`
CallbackUrl string `json:"callbackUrl"`
}
package main
import (
"fmt"
metamap "github.com/iqquee/metamap"
)
func main() {
clientId := "your metamap client id"
clientSecret := "your metamap client secrete"
httpClient := hhttp.DefaultClient
client := metamap.New(&httpClient, clientId, clientSecret)
req := metamap.NigeriaVotingIDNumberRequest{
DocumentNumber: "your voters card number",
FirstName: "John",
LastName: "Doe",
DateOfBirth: "2023-05-01",
CallbackUrl: "https://webhook.site/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
resp, err := client.NigeriaVotingIDNumber(req)
if err != nil {
fmt.Println("This is the error: ", err)
return
}
fmt.Println("This is the response: ", resp)
}
NigeriaDriversLicence verifies drivers licence.
type NigeriaDriversLicenceRequest struct {
DocumentNumber string `json:"documentNumber"`
FirstName string `json:"firstName"`
LastName string `json:"lastName"`
CallbackUrl string `json:"callbackUrl"`
}
package main
import (
"fmt"
metamap "github.com/iqquee/metamap"
)
func main() {
clientId := "your metamap client id"
clientSecret := "your metamap client secrete"
httpClient := hhttp.DefaultClient
client := metamap.New(&httpClient, clientId, clientSecret)
req := metamap.NigeriaDriversLicenceRequest{
DocumentNumber: "your drivers licence",
FirstName: "John",
LastName: "Doe",
CallbackUrl: "https://webhook.site/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
resp, err := client.NigeriaDriversLicence(req)
if err != nil {
fmt.Println("This is the error: ", err)
return
}
fmt.Println("This is the response: ", resp)
}
NigeriaCAC verifies a company's CAC (Corporate Affairs Commission) number.
type NigeriaCACRequest struct {
RegistrationNumber string `json:"registrationNumber"`
CallbackUrl string `json:"callbackUrl"`
}
package main
import (
"fmt"
metamap "github.com/iqquee/metamap"
)
func main() {
clientId := "your metamap client id"
clientSecret := "your metamap client secrete"
httpClient := hhttp.DefaultClient
client := metamap.New(&httpClient, clientId, clientSecret)
req := metamap.NigeriaCACRequest{
RegistrationNumber: "your registration number",
CallbackUrl: "https://webhook.site/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
resp, err := client.NigeriaCAC(req)
if err != nil {
fmt.Println("This is the error: ", err)
return
}
fmt.Println("This is the response: ", resp)
}
NigeriaTaxIdentificationNumber verifies a company's Tax Identification Number.
type NigeriaTaxIdentificationNumberRequest struct {
TaxNumber string `json:"taxNumber"`
CallbackUrl string `json:"callbackUrl"`
}
package main
import (
"fmt"
metamap "github.com/iqquee/metamap"
)
func main() {
clientId := "your metamap client id"
clientSecret := "your metamap client secrete"
httpClient := hhttp.DefaultClient
client := metamap.New(&httpClient, clientId, clientSecret)
req := metamap.NigeriaTaxIdentificationNumberRequest{
TaxNumber: "your tax number",
CallbackUrl: "https://webhook.site/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
resp, err := client.NigeriaTaxIdentificationNumber(req)
if err != nil {
fmt.Println("This is the error: ", err)
return
}
fmt.Println("This is the response: ", resp)
}
NigeriaCACAffiliates verifies a major shareholder names and titles if a company's Corporate Affairs Commission number is valid.
type NigeriaCACAffiliatesRequest struct {
RegistrationNumber string `json:"registrationNumber"`
CallbackUrl string `json:"callbackUrl"`
}
package main
import (
"fmt"
metamap "github.com/iqquee/metamap"
)
func main() {
clientId := "your metamap client id"
clientSecret := "your metamap client secrete"
httpClient := hhttp.DefaultClient
client := metamap.New(&httpClient, clientId, clientSecret)
req := metamap.NigeriaCACAffiliatesRequest{
RegistrationNumber: "your registration number",
CallbackUrl: "https://webhook.site/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
resp, err := client.NigeriaCACAffiliates(req)
if err != nil {
fmt.Println("This is the error: ", err)
return
}
fmt.Println("This is the response: ", resp)
}
verifies a BVN (Bank Verification Number).
type NigeriaBVNRequest struct {
DocumentNumber string `json:"documentNumber"`
FirstName string `json:"firstName"`
LastName string `json:"lastName"`
CallbackUrl string `json:"callbackUrl"`
}
package main
import (
"fmt"
metamap "github.com/iqquee/metamap"
)
func main() {
clientId := "your metamap client id"
clientSecret := "your metamap client secrete"
httpClient := hhttp.DefaultClient
client := metamap.New(&httpClient, clientId, clientSecret)
req := metamap.NigeriaBVNRequest{
DocumentNumber: "your BVN number",
FirstName: "John",
LastName: "Doe",
CallbackUrl: "https://webhook.site/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
resp, err := client.NigeriaBVN(req)
if err != nil {
fmt.Println("This is the error: ", err)
return
}
fmt.Println("This is the response: ", resp)
}