---
updatedAt: 2026-10-09T07:46:07.000Z
agentTools:
  projectIndex: https://developers.tap.company/llms.txt
---

# Create a Lead

This endpoint creates a lead.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "lead.",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://api.tap.company/v3/lead"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "in": "header",
        "name": "Authorization",
        "x-bearer-format": "bearer",
        "x-default": "sk_test_GM34ihbYXa8wcKjqenoQFHS2"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/": {
      "post": {
        "summary": "Create a Lead",
        "description": "This endpoint creates a lead.",
        "operationId": "create-a-lead",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "brand"
                ],
                "properties": {
                  "brand": {
                    "type": "object",
                    "description": "Information about the brand associated with this lead",
                    "properties": {
                      "name": {
                        "type": "object",
                        "description": "Contains the merchant's name in different languages",
                        "required": [
                          "en"
                        ],
                        "properties": {
                          "en": {
                            "type": "string",
                            "description": "the merchant's name in English",
                            "default": "merchantNameEn"
                          },
                          "ar": {
                            "type": "string",
                            "description": "The merchant's name in Arabic",
                            "default": "merchantNameAr"
                          }
                        }
                      },
                      "sector": {
                        "type": "array",
                        "description": "What is the business sector ex: telecom, finance, ...etc",
                        "default": [
                          "telecom",
                          "finance"
                        ],
                        "items": {
                          "type": "string"
                        }
                      },
                      "logo": {
                        "type": "string",
                        "description": "The value of file id generated by the Files API.",
                        "default": "file_656848322076980748"
                      },
                      "channel_services": {
                        "type": "array",
                        "description": "Indicates the channels through which the merchant offers services",
                        "items": {
                          "properties": {
                            "channel": {
                              "type": "string",
                              "description": "Channels must be one the below accepted channels: Website-Twitter-Instagram-iOS-Android-Call center-Linkedin-Physical store",
                              "default": "website"
                            },
                            "address": {
                              "type": "string",
                              "description": "Address for the service channel",
                              "default": "https://www.example.com"
                            }
                          },
                          "type": "object"
                        }
                      },
                      "operations": {
                        "type": "object",
                        "description": "Details about the merchant's sales operations",
                        "properties": {
                          "sales": {
                            "type": "object",
                            "description": "Sales metrics",
                            "properties": {
                              "period": {
                                "type": "string",
                                "description": "Frequency of sales reporting (e.g., monthly).",
                                "default": "monthly"
                              },
                              "range": {
                                "type": "object",
                                "description": "Sales range for the specified period",
                                "properties": {
                                  "from": {
                                    "type": "string",
                                    "description": "Minimum sales amount",
                                    "default": "10000"
                                  },
                                  "to": {
                                    "type": "string",
                                    "description": "Maximum sales amount",
                                    "default": "80000"
                                  }
                                }
                              },
                              "currency": {
                                "type": "string",
                                "description": "Transaction currency",
                                "default": "AED"
                              }
                            }
                          }
                        }
                      },
                      "terms": {
                        "type": "array",
                        "description": "Terms and conditions agreed to by the merchant",
                        "items": {
                          "properties": {
                            "term": {
                              "type": "string",
                              "description": "Type of term (e.g., general, chargeback, refund).",
                              "default": "general"
                            },
                            "agree": {
                              "type": "boolean",
                              "description": "Whether the term is agreed to",
                              "default": true
                            }
                          },
                          "type": "object"
                        }
                      },
                      "segment": {
                        "type": "object",
                        "description": "Classification of the merchant",
                        "properties": {
                          "type": {
                            "type": "object",
                            "description": "Type of organization",
                            "properties": {
                              "code": {
                                "type": "string",
                                "description": "categorization of the merchant's organization",
                                "default": "non_profit"
                              }
                            }
                          },
                          "team": {
                            "type": "object",
                            "description": "Size of the team",
                            "properties": {
                              "code": {
                                "type": "string",
                                "description": "Indicates the size of the team (e.g., small, medium, large)",
                                "default": "small"
                              }
                            }
                          }
                        }
                      }
                    }
                  },
                  "entity": {
                    "type": "object",
                    "description": "Information about the entity associated with this lead",
                    "properties": {
                      "country": {
                        "type": "string",
                        "description": "Country where the merchant entity is registered in a 2-character ISO format",
                        "default": "AE"
                      },
                      "is_licensed": {
                        "type": "boolean",
                        "description": "Indicate whether the entity is licensed: set to false for individuals.",
                        "default": true
                      },
                      "license": {
                        "type": "object",
                        "description": "Details about the entity's license",
                        "properties": {
                          "number": {
                            "type": "string",
                            "description": "License number",
                            "default": "123456"
                          },
                          "country": {
                            "type": "string",
                            "description": "Country of issuance",
                            "default": "AE"
                          },
                          "type": {
                            "type": "string",
                            "description": "Indicate the entity license type: set to commercial_registration for corporates and freelancer for individuals.",
                            "default": "commercial_registration"
                          },
                          "documents": {
                            "type": "array",
                            "description": "Documents related to the entity's license",
                            "items": {
                              "properties": {
                                "type": {
                                  "type": "string",
                                  "description": "Type of document (e.g., bank_statement, account_verification).",
                                  "default": "commercial_registration"
                                },
                                "number": {
                                  "type": "integer",
                                  "description": "Unique identifier for the document",
                                  "default": 101000000,
                                  "format": "int32"
                                },
                                "issuing_country": {
                                  "type": "string",
                                  "description": "Issuing country for the document",
                                  "default": "AE"
                                },
                                "issuing_date": {
                                  "type": "string",
                                  "description": "Issuing date for the document",
                                  "default": "2020-04-01",
                                  "format": "date"
                                },
                                "expiry_date": {
                                  "type": "string",
                                  "description": "Expiry date of the entity's license document",
                                  "default": "2024-04-01",
                                  "format": "date"
                                },
                                "images": {
                                  "type": "array",
                                  "description": "The array of file id's generated by the Files API respectively.",
                                  "default": [],
                                  "items": {
                                    "type": "string"
                                  }
                                }
                              },
                              "type": "object"
                            }
                          }
                        }
                      },
                      "tax": {
                        "type": "object",
                        "description": "Tax information of the entity",
                        "properties": {
                          "number": {
                            "type": "string",
                            "description": "Tax identification number",
                            "default": "123456789"
                          },
                          "issuing_date": {
                            "type": "string",
                            "description": "Date when the tax number was issued",
                            "default": "2022-01-01",
                            "format": "date"
                          },
                          "expiry_date": {
                            "type": "string",
                            "description": "Expiry date of the tax number",
                            "default": "2025-01-01",
                            "format": "date"
                          },
                          "documents": {
                            "type": "array",
                            "description": "Documents related to the tax entity",
                            "items": {
                              "properties": {
                                "type": {
                                  "type": "string",
                                  "description": "Entity's tax document type",
                                  "default": "TAX Document"
                                },
                                "number": {
                                  "type": "string",
                                  "description": "document number",
                                  "default": "000000000"
                                },
                                "issuing_country": {
                                  "type": "string",
                                  "description": "2 letter issuing country",
                                  "default": "AE"
                                },
                                "issuing_date": {
                                  "type": "string",
                                  "description": "issuing date of the tax document",
                                  "default": "2022-01-01",
                                  "format": "date"
                                },
                                "expiry_date": {
                                  "type": "string",
                                  "description": "expiry date of the tax document",
                                  "default": "2025-01-01",
                                  "format": "date"
                                },
                                "images": {
                                  "type": "array",
                                  "description": "The array of file id's generated by the Files API respectively.",
                                  "default": [],
                                  "items": {
                                    "type": "string"
                                  }
                                }
                              },
                              "type": "object"
                            }
                          }
                        }
                      }
                    }
                  },
                  "wallet": {
                    "type": "object",
                    "description": "Information about the wallet associated with this lead",
                    "properties": {
                      "bank": {
                        "type": "object",
                        "description": "Information about the bank associated with the merchant's wallet",
                        "properties": {
                          "name": {
                            "type": "string",
                            "description": "Name of the bank",
                            "default": "ADIB"
                          },
                          "account": {
                            "type": "object",
                            "description": "Details of the bank account",
                            "properties": {
                              "name": {
                                "type": "string",
                                "description": "Name associated with the bank account",
                                "default": "ABC"
                              },
                              "number": {
                                "type": "string",
                                "description": "Bank account number",
                                "default": "77777777777"
                              },
                              "swift": {
                                "type": "string",
                                "description": "SWIFT code for the bank",
                                "default": "77777777777"
                              },
                              "iban": {
                                "type": "string",
                                "description": "IBAN (International Bank Account Number) for the bank account",
                                "default": "SA000000000000000009"
                              }
                            }
                          },
                          "documents": {
                            "type": "array",
                            "description": "Documents associated with the bank",
                            "items": {
                              "properties": {
                                "type": {
                                  "type": "string",
                                  "description": "Type of document (e.g. bank_statement)",
                                  "default": "Bank Statement"
                                },
                                "number": {
                                  "type": "string",
                                  "description": "Unique identifier for the document",
                                  "default": "00000000"
                                },
                                "issuing_country": {
                                  "type": "string",
                                  "description": "Issuing country of the document",
                                  "default": "AE"
                                },
                                "issuing_date": {
                                  "type": "string",
                                  "description": "Issuing date of the document",
                                  "default": "2022-01-01",
                                  "format": "date"
                                },
                                "images": {
                                  "type": "array",
                                  "description": "The array of file id's generated by the Files API respectively.",
                                  "default": [],
                                  "items": {
                                    "type": "string"
                                  }
                                }
                              },
                              "type": "object"
                            }
                          }
                        }
                      }
                    }
                  },
                  "user": {
                    "type": "array",
                    "description": "Information about the user associated with this lead",
                    "items": {
                      "properties": {
                        "name": {
                          "type": "object",
                          "description": "Information about the user",
                          "properties": {
                            "lang": {
                              "type": "string",
                              "description": "Preferred language for the user",
                              "default": "en"
                            },
                            "title": {
                              "type": "string",
                              "description": "Title of the user",
                              "default": "Mr"
                            },
                            "first": {
                              "type": "string",
                              "description": "First name of the user",
                              "default": "John"
                            },
                            "middle": {
                              "type": "string",
                              "description": "Middle name of the user",
                              "default": "Bob"
                            },
                            "last": {
                              "type": "string",
                              "description": "Last name of the user",
                              "default": "Doe"
                            }
                          }
                        },
                        "email": {
                          "type": "array",
                          "description": "List of email addresses for the user",
                          "items": {
                            "properties": {
                              "type": {
                                "type": "string",
                                "description": "Type of email (e.g., work, personal)",
                                "default": "work"
                              },
                              "address": {
                                "type": "string",
                                "description": "Email address",
                                "default": "user@email.com"
                              },
                              "primary": {
                                "type": "boolean",
                                "description": "Indicates if this is the primary email address (true/false)",
                                "default": true
                              }
                            },
                            "required": [
                              "type",
                              "address",
                              "primary"
                            ],
                            "type": "object"
                          }
                        },
                        "phone": {
                          "type": "array",
                          "description": "List of phone numbers associated with the user",
                          "items": {
                            "properties": {
                              "type": {
                                "type": "string",
                                "description": "User's phone type",
                                "default": "WORK"
                              },
                              "country_code": {
                                "type": "string",
                                "description": "country code of the user's phone number",
                                "default": "971"
                              },
                              "number": {
                                "type": "string",
                                "description": "Actual phone number",
                                "default": "500000000"
                              },
                              "primary": {
                                "type": "boolean",
                                "description": "indicates if this number is primary",
                                "default": true
                              }
                            },
                            "required": [
                              "type",
                              "country_code",
                              "number",
                              "primary"
                            ],
                            "type": "object"
                          }
                        },
                        "nationality": {
                          "type": "string",
                          "description": "Nationality of the user (e.g., AE for United Arab Emirates)",
                          "default": "AE"
                        },
                        "identification": {
                          "type": "object",
                          "description": "User's identification details",
                          "properties": {
                            "number": {
                              "type": "string",
                              "description": "User identification number",
                              "default": "00000000"
                            },
                            "type": {
                              "type": "string",
                              "description": "Type of identification",
                              "default": "national_id"
                            },
                            "issuer": {
                              "type": "string",
                              "description": "Country that issued the identification",
                              "default": "AE"
                            }
                          }
                        },
                        "birth": {
                          "type": "object",
                          "description": "Birth details of the user",
                          "properties": {
                            "country": {
                              "type": "string",
                              "description": "Birth country code",
                              "default": "AE"
                            },
                            "city": {
                              "type": "string",
                              "description": "City of birth",
                              "default": "Dubai"
                            },
                            "date": {
                              "type": "string",
                              "description": "Birth date",
                              "default": "1990-01-01",
                              "format": "date"
                            }
                          }
                        },
                        "primary": {
                          "type": "boolean",
                          "description": "Indicates if this user is the primary user (true/false)",
                          "default": true
                        },
                        "address": {
                          "type": "array",
                          "description": "User Address details",
                          "items": {
                            "properties": {
                              "area": {
                                "type": "string",
                                "description": "User's area"
                              },
                              "country": {
                                "type": "string",
                                "description": "2-character ISO country format",
                                "default": "AE"
                              },
                              "line4": {
                                "type": "string",
                                "default": "line 4"
                              },
                              "city": {
                                "type": "string",
                                "description": "The user's address city"
                              },
                              "type": {
                                "type": "string",
                                "description": "The type of address",
                                "default": "HOME"
                              },
                              "building": {
                                "type": "string",
                                "description": "Building name"
                              },
                              "zip_code": {
                                "type": "integer",
                                "description": "The address's zip code",
                                "default": 0,
                                "format": "int32"
                              },
                              "street": {
                                "type": "string",
                                "description": "The address's street",
                                "default": "Street 1"
                              },
                              "avenue": {
                                "type": "string",
                                "description": "The address's avenue",
                                "default": "Avenue 1"
                              },
                              "state": {
                                "type": "string",
                                "description": "The address's state"
                              },
                              "line3": {
                                "type": "string"
                              },
                              "postal_code": {
                                "type": "string",
                                "description": "The address's postal code"
                              },
                              "line2": {
                                "type": "string"
                              },
                              "line1": {
                                "type": "string"
                              },
                              "apartment": {
                                "type": "string",
                                "description": "The address's apartment",
                                "default": "apartment 1"
                              }
                            },
                            "type": "object"
                          }
                        }
                      },
                      "type": "object"
                    }
                  },
                  "post": {
                    "type": "object",
                    "description": "The URL for posting updates",
                    "properties": {
                      "url": {
                        "type": "string",
                        "description": "After completed, Tap will post the lead response to this url",
                        "default": "https://merchant.company/post_url"
                      }
                    }
                  },
                  "metadata": {
                    "type": "object",
                    "description": "The set of key-value pairs that you can attach to an object. This can be useful for storing additional information in a structured format.",
                    "properties": {
                      "param1": {
                        "type": "string",
                        "default": "value"
                      }
                    }
                  },
                  "platforms": {
                    "type": "array",
                    "description": "Platform ID where the merchant will be created under",
                    "items": {
                      "type": "string"
                    }
                  },
                  "payment_provider": {
                    "type": "object",
                    "description": "Information about the provider associated with this lead",
                    "properties": {
                      "settlement_by": {
                        "type": "string",
                        "description": "Payment facilitator id if available, otherwise we will use Tap as settler"
                      },
                      "technology_id": {
                        "type": "string",
                        "description": "Payment technology id if available, otherwise we will use Tap"
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"id\": \"led_xxxx\",\n  \"brand\": {\n    \"name\": {\n      \"en\": \"merchantNameEn\",\n      \"ar\": \"merchantNameAr\"\n    },\n    \"logo\": \"file_656848322076980748\",\n    \"operations\": {\n      \"sales\": {\n        \"period\": \"monthly\",\n        \"range\": {\n          \"from\": \"10000\",\n          \"to\": \"80000\"\n        },\n        \"currency\": \"AED\"\n      }\n    },\n    \"channel_services\": [\n      {\n        \"channel\": \"website\",\n        \"address\": \"https://www.website.company/\"\n      },\n      {\n        \"channel\": \"website\",\n        \"address\": \"https://www.website.company/\"\n      }\n    ]\n  },\n  \"entity\": {\n    \"country\": \"AE\",\n    \"is_licensed\": true,\n    \"license\": {\n      \"number\": \"1010000000\",\n      \"country\": \"AE\",\n      \"type\": \"commercial_registration\"\n    },\n    \"tax\": {\n      \"number\": \"123456789\",\n      \"issuing_date\": \"2022-01-01\",\n      \"expiry_date\": \"2025-01-01\"\n    }\n  },\n  \"wallet\": {\n    \"bank\": {\n      \"name\": \"ADIB\",\n      \"account\": {\n        \"name\": \"ABC\",\n        \"number\": \"77777777777\",\n        \"swift\": \"77777777777\",\n        \"iban\": \"SA000000000000000009\"\n      }\n    }\n  },\n  \"user\": {\n    \"name\": {\n      \"lang\": \"en\",\n      \"title\": \"Mr\",\n      \"first\": \"John\",\n      \"last\": \"Doe\"\n    },\n    \"nationality\": \"AE\",\n    \"identification\": {\n      \"number\": \"00000000\",\n      \"type\": \"national_id\",\n      \"issuer\": \"AE\"\n    },\n    \"birth\": {\n      \"country\": \"AE\",\n      \"city\": \"Dubai\",\n      \"date\": \"1990-01-01\"\n    },\n    \"primary\": true\n  },\n  \"post\": {\n    \"url\": \"https://merchant.company/post_url\"\n  },\n  \"metadata\": {\n    \"param1\": \"value\"\n  },\n  \"reference_lead_id\": \"xxx\"\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "example": "led_xxxx"
                    },
                    "brand": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "object",
                          "properties": {
                            "en": {
                              "type": "string",
                              "example": "merchantNameEn"
                            },
                            "ar": {
                              "type": "string",
                              "example": "merchantNameAr"
                            }
                          }
                        },
                        "logo": {
                          "type": "string",
                          "example": "file_656848322076980748"
                        },
                        "operations": {
                          "type": "object",
                          "properties": {
                            "sales": {
                              "type": "object",
                              "properties": {
                                "period": {
                                  "type": "string",
                                  "example": "monthly"
                                },
                                "range": {
                                  "type": "object",
                                  "properties": {
                                    "from": {
                                      "type": "string",
                                      "example": "10000"
                                    },
                                    "to": {
                                      "type": "string",
                                      "example": "80000"
                                    }
                                  }
                                },
                                "currency": {
                                  "type": "string",
                                  "example": "AED"
                                }
                              }
                            }
                          }
                        },
                        "channel_services": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "channel": {
                                "type": "string",
                                "example": "website"
                              },
                              "address": {
                                "type": "string",
                                "example": "https://www.website.company/"
                              }
                            }
                          }
                        }
                      }
                    },
                    "entity": {
                      "type": "object",
                      "properties": {
                        "country": {
                          "type": "string",
                          "example": "AE"
                        },
                        "is_licensed": {
                          "type": "boolean",
                          "example": true,
                          "default": true
                        },
                        "license": {
                          "type": "object",
                          "properties": {
                            "number": {
                              "type": "string",
                              "example": "1010000000"
                            },
                            "country": {
                              "type": "string",
                              "example": "AE"
                            },
                            "type": {
                              "type": "string",
                              "example": "commercial_registration"
                            }
                          }
                        },
                        "tax": {
                          "type": "object",
                          "properties": {
                            "number": {
                              "type": "string",
                              "example": "123456789"
                            },
                            "issuing_date": {
                              "type": "string",
                              "example": "2022-01-01"
                            },
                            "expiry_date": {
                              "type": "string",
                              "example": "2025-01-01"
                            }
                          }
                        }
                      }
                    },
                    "wallet": {
                      "type": "object",
                      "properties": {
                        "bank": {
                          "type": "object",
                          "properties": {
                            "name": {
                              "type": "string",
                              "example": "ADIB"
                            },
                            "account": {
                              "type": "object",
                              "properties": {
                                "name": {
                                  "type": "string",
                                  "example": "ABC"
                                },
                                "number": {
                                  "type": "string",
                                  "example": "77777777777"
                                },
                                "swift": {
                                  "type": "string",
                                  "example": "77777777777"
                                },
                                "iban": {
                                  "type": "string",
                                  "example": "SA000000000000000009"
                                }
                              }
                            }
                          }
                        }
                      }
                    },
                    "user": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "object",
                          "properties": {
                            "lang": {
                              "type": "string",
                              "example": "en"
                            },
                            "title": {
                              "type": "string",
                              "example": "Mr"
                            },
                            "first": {
                              "type": "string",
                              "example": "John"
                            },
                            "last": {
                              "type": "string",
                              "example": "Doe"
                            }
                          }
                        },
                        "nationality": {
                          "type": "string",
                          "example": "AE"
                        },
                        "identification": {
                          "type": "object",
                          "properties": {
                            "number": {
                              "type": "string",
                              "example": "00000000"
                            },
                            "type": {
                              "type": "string",
                              "example": "national_id"
                            },
                            "issuer": {
                              "type": "string",
                              "example": "AE"
                            }
                          }
                        },
                        "birth": {
                          "type": "object",
                          "properties": {
                            "country": {
                              "type": "string",
                              "example": "AE"
                            },
                            "city": {
                              "type": "string",
                              "example": "Dubai"
                            },
                            "date": {
                              "type": "string",
                              "example": "1990-01-01"
                            }
                          }
                        },
                        "primary": {
                          "type": "boolean",
                          "example": true,
                          "default": true
                        }
                      }
                    },
                    "post": {
                      "type": "object",
                      "properties": {
                        "url": {
                          "type": "string",
                          "example": "https://merchant.company/post_url"
                        }
                      }
                    },
                    "metadata": {
                      "type": "object",
                      "properties": {
                        "param1": {
                          "type": "string",
                          "example": "value"
                        }
                      }
                    },
                    "reference_lead_id": {
                      "type": "string",
                      "example": "xxx"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```