---
updatedAt: 2025-08-19T11:03:15.000Z
agentTools:
  projectIndex: https://siquro.readme.io/llms.txt
---

# Create transaction with IP Access Control List

# IP Whitelisting:

* If merchant has IPs whitelisted he cannot access /gate and must access /gate/acl. If an attempt has been made to `/gate` endpoint then `401` response will be returned.
* If merchant is using /gate/acl but has no ips whitelisted we OK the transaction creation process (i.e `200`)
* If there are IPs whitelisted then the merchant can't access /gate/acl except ONLY from those IP addresses. Any other request will result in `401`.

# Important notes:

## Email:

Please, when creating a transaction, do not use random data in the email, first name or last name, such as <test@test.com>, <casino@betting.com>, Famous People's names (e.g. Mike Tyson, etc), Fake Names (e.g. John Doe, Jane Doe). Such requests will be automatically rejected with 403 Forbidden

"**<enter@e-mail.com>**" - use this email for testing purposes. This email will make the route transform firstname, lastname, email to random fake names and emails

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "siquro-api",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://pay.siquro.com"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "http",
        "scheme": "basic"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/gate/acl": {
      "post": {
        "summary": "Create transaction with IP Access Control List",
        "description": "",
        "operationId": "create-transaction-with-acl",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "merchantId",
                  "amount",
                  "email",
                  "firstName",
                  "lastName",
                  "returnUrl",
                  "webhookUrl",
                  "countryCode"
                ],
                "properties": {
                  "merchantId": {
                    "type": "string",
                    "description": "Merchant id"
                  },
                  "amount": {
                    "type": "number",
                    "description": "Amount of transaction"
                  },
                  "email": {
                    "type": "string",
                    "description": "User email"
                  },
                  "firstName": {
                    "type": "string",
                    "description": "User name"
                  },
                  "lastName": {
                    "type": "string",
                    "description": "User lastname"
                  },
                  "returnUrl": {
                    "type": "string",
                    "description": "Your url for redirecting the user after payment"
                  },
                  "webhookUrl": {
                    "type": "string",
                    "description": "Url where you receive webhooks"
                  },
                  "countryCode": {
                    "type": "string",
                    "description": "User country, by default DE"
                  },
                  "additionalInfo": {
                    "type": "object",
                    "description": "Request additional information",
                    "properties": {
                      "CustomLabel": {
                        "type": "string"
                      }
                    }
                  },
                  "iban": {
                    "type": "string",
                    "description": "User’s IBAN for the bank pre-selection"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "201",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"id\": \"507f191e810c19729de860ea\",\n  \"amount\": \"2.00\",\n  \"status\": \"PAYMENT_INITIATED\",\n  \"paymentUrl\": \"https://pay.Siquro.com/transaction/tx_000000000000000000000000\",\n  \"createdAt\": \"2021-01-01T00:00:00.000Z\",\n  \"updatedAt\": \"2021-01-01T00:00:00.000Z\",\n  \"additionalInfo\": {\n \t \"customLabel\": \"test\"\n  }\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "example": "507f191e810c19729de860ea"
                    },
                    "amount": {
                      "type": "string",
                      "example": "2.00"
                    },
                    "status": {
                      "type": "string",
                      "example": "PAYMENT_INITIATED"
                    },
                    "paymentUrl": {
                      "type": "string",
                      "example": "https://pay.Siquro.com/transaction/tx_000000000000000000000000"
                    },
                    "createdAt": {
                      "type": "string",
                      "example": "2021-01-01T00:00:00.000Z"
                    },
                    "updatedAt": {
                      "type": "string",
                      "example": "2021-01-01T00:00:00.000Z"
                    },
                    "additionalInfo": {
                      "type": "object",
                      "properties": {
                        "customLabel": {
                          "type": "string",
                          "example": "test"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"message\": \"amount must not be greater than 9999999999999.99\",\n  \"error\": \"Bad request\",\n  \"statusCode\": 400\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "example": "amount must not be greater than 9999999999999.99"
                    },
                    "error": {
                      "type": "string",
                      "example": "Bad request"
                    },
                    "statusCode": {
                      "type": "integer",
                      "example": 400,
                      "default": 0
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "401",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"message\": \"IP is not in whitelist.\",\n  \"statusCode\": 401\n}"
                  }
                },
                "schema": {
                  "oneOf": [
                    {
                      "type": "object",
                      "properties": {
                        "error": {
                          "type": "string",
                          "example": "credentials invalid"
                        }
                      }
                    },
                    {
                      "type": "object",
                      "properties": {
                        "message": {
                          "type": "string",
                          "example": "IP is not in whitelist."
                        },
                        "statusCode": {
                          "type": "integer",
                          "example": 401,
                          "default": 0
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "description": "403",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"message\": \"Email, first name or last name contain prohibited words.\",\n  \"statusCode\": 403\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "example": "Email, first name or last name contain prohibited words."
                    },
                    "statusCode": {
                      "type": "integer",
                      "example": 403,
                      "default": 0
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "404",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"message\": \"Something went wrong!\",\n  \"statusCode\": 404\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "example": "Something went wrong!"
                    },
                    "statusCode": {
                      "type": "integer",
                      "example": 404,
                      "default": 0
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```