---
updatedAt: 2025-09-17T23:33:25.000Z
agentTools:
  projectIndex: https://docs.nexiopay.com/llms.txt
---

# View webhook URLs by ID and type

**Simplified webhook workflow**

Returns the registered webhook URLs for the specified ID and webhook type.

The ID can be either a merchant ID, payout account ID, or reseller Nexio account ID. The webhook type needs to match the ID.

For a tutorial on how to register and use webhooks, see [Webhooks](doc:webhooks) in Guides.

<!-- theme: warning -->
> ⚠️ Try It
>
> To use the Try It feature for this endpoint, you must use the credentials for your [Sandbox API user](doc:sandbox-environments).


<div style="display:none;">

## Request parameters
- id
- webhook_type

## Response parameters
- merchantId
- payoutAccountId
- accountId
- webhookUrls
- dateCreated
- dateLastModified

</div>

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "Dev Tools API Reference",
    "version": "3.0.0",
    "description": "Use the dev tools endpoints to create and view webhooks. For more information, see [Webhooks](doc:webhooks) in Guides.",
    "contact": {
      "name": "Integrations Support",
      "email": "integrations@nexiopay.com",
      "url": "https://nexiointegrations.slack.com/"
    },
    "license": {
      "name": "ISC",
      "url": "https://docs.nexiopay.com/page/license"
    }
  },
  "security": [
    {
      "Basic_Authentication": []
    },
    {
      "One-time-use_Token": []
    }
  ],
  "servers": [
    {
      "description": "Sandbox",
      "url": "https://api.nexiopaysandbox.com",
      "variables": {}
    }
  ],
  "components": {
    "securitySchemes": {
      "Basic_Authentication": {
        "type": "http",
        "scheme": "basic",
        "description": "Basic authentication is a simple authentication scheme built into the HTTP protocol. \n\nFor the \"Try It\" feature, type your API username and password in the appropriate fields. The system then automatically creates the Authorization header that contains the word `Basic` followed by a space and a base64-encoded string `username:password`. \n\nFor example: `Authorization: Basic ZGVtbzpwQDU1dzByZA==` \n\nFor your own requests, learn how to do the conversion in the [Authentication](doc:authentication#basic-authentication) guide. \n\nFor more information about this security protocol, see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#basic-authentication-sample"
      },
      "One-time-use_Token": {
        "type": "apiKey",
        "name": "token",
        "in": "query",
        "description": "The one-time-use token authentication scheme requires a token supplied in the named query parameter that can only be used to submit a single API request and that expires after one hour. \n\nFor the \"Try It\" feature, first generate the one-time-use token through either the [Create one-time-use token](ref:createonetimeusetoken) or the [Create APM one-time-use token](ref:createapmonetimeusetoken) endpoint. Copy the resulting token and then paste it in the appropriate field for the current endpoint. \n\nFor your own requests, learn how to generate the one-time-use token in the [Authentication](doc:authentication#one-time-use-tokens) guide. Then, use it as normal for this endpoint. \n\nFor more information about the \"apiKeys\" security protocol, see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#security-scheme-object"
      }
    },
    "responses": {
      "401": {
        "description": "Unauthorized.\n\nFor help with this error and other error codes, see [Common errors](doc:common-errors) in the Guides area.",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "message": {
                  "type": "string",
                  "description": "A message from Nexio about the state of the request",
                  "example": "Unauthorized"
                }
              }
            }
          }
        }
      }
    }
  },
  "tags": [
    {
      "name": "Webhook Service",
      "description": "APIs for webhooks"
    }
  ],
  "paths": {
    "/webhook/v3/webhookUrls": {
      "post": {
        "description": "**New webhook workflow**\n\nRegisters webhooks for a specific merchant ID or payout account ID. These webhooks are callbacks for transactions, payouts, or spendbacks. \n\n- Each webhook for a merchant ID receives the same information for all transaction events. \n- Each webhook for a payout account ID receives the same information for all payout and spendback events.\n\nYou can create multiple webhooks for the same merchant ID or payout account ID. This is useful for situations where you have multiple workflows from a single event, such as when you need to send the information to two different internal departments but they need to do different things with the same information.\n\n<!-- theme: warning -->\n> ⚠️ Try It\n> \n> To use the Try It feature for this endpoint, you must use the credentials for your [Sandbox API user](doc:sandbox-environments).\n\n<!-- theme: warning -->\n> 🛑 Important \n> \n> Nexio supports only either the legacy webhooks or these new ones. Before configuring URLs for your webhooks, ensure that you do not have any URLs for legacy ones configured: [View legacy merchant webhook configuration](ref:viewmerchantwebhookconfiguration).\n\n\n<div style=\"display:none;\">\n\n## Request parameters\n- merchantId\n- webhookUrls \n- payoutAccountId\n- accountId\n\n## Response parameters\n- merchantId\n- payoutAccountId\n- accountId\n- webhookUrls\n- dateCreated\n- dateLastModified\n\n</div>\n\n## Next steps\n* If needed, whitelist the IP addresses that send the webhooks. You can find the list for both sandbox and production environments at [https://ip-ranges.nex.io/ip-ranges.json](https://ip-ranges.nex.io/ip-ranges.json).\n* [Retrieve a list of webhook URLs](ref:viewwebhookurlsbyidandtype) that are registered for a merchant ID or payout account ID.\n* For a tutorial on how to register and use webhooks, see [Webhooks](doc:webhooks) in Guides.\n\nFor the legacy method for creating webhooks, see the [Create legacy merchant webhooks](ref:createmerchantwebhooks) endpoint.\n",
        "operationId": "RegisterWebhookUrls",
        "tags": [
          "Webhook Service"
        ],
        "security": [
          {
            "Basic_Authentication": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "oneOf": [
                  {
                    "title": "Register webhook for merchantId",
                    "type": "object",
                    "x-tags": [
                      "object"
                    ],
                    "properties": {
                      "merchantId": {
                        "$ref": "#/paths/~1webhook~1v3~1config/post/requestBody/content/application~1json/schema/oneOf/0/properties/merchantId"
                      },
                      "webhookUrls": {
                        "title": "webhookUrls",
                        "type": "array",
                        "description": "An array of all the webhooks to configure for the specified merchant ID, payout account ID, or account ID. The array submitted overwrites any existing array values.\n\n**Important:** You must include any existing webhooks in this array, or they will be replaced. To get a list of existing webhooks, see the [View webhook URLs by ID and type](ref:viewwebhookurlsbyidandtype) endpoint.\n\nTo remove all webhook URLs, send the request with an empty array.",
                        "x-tags": [
                          "component"
                        ],
                        "items": {
                          "type": "string",
                          "example": "https://your-ecommerce-website.example.com/transactionwebhook12345"
                        }
                      }
                    },
                    "required": [
                      "merchantId",
                      "webhookUrls"
                    ]
                  },
                  {
                    "title": "Register webhook for payoutAccountId",
                    "type": "object",
                    "x-tags": [
                      "object"
                    ],
                    "properties": {
                      "payoutAccountId": {
                        "$ref": "#/paths/~1webhook~1v3~1config/post/requestBody/content/application~1json/schema/oneOf/1/properties/payoutAccountId"
                      },
                      "webhookUrls": {
                        "$ref": "#/paths/~1webhook~1v3~1webhookUrls/post/requestBody/content/application~1json/schema/oneOf/0/properties/webhookUrls"
                      }
                    },
                    "required": [
                      "payoutAccountId",
                      "webhookUrls"
                    ]
                  },
                  {
                    "title": "Register webhook for reseller account",
                    "type": "object",
                    "x-tags": [
                      "object"
                    ],
                    "properties": {
                      "accountId": {
                        "type": "string",
                        "title": "accountId",
                        "description": "Your Nexio account number. You can get this value from the response for the [Who am I](ref:whoami) endpoint.",
                        "example": "27592004",
                        "x-tags": [
                          "component"
                        ]
                      },
                      "webhookUrls": {
                        "$ref": "#/paths/~1webhook~1v3~1webhookUrls/post/requestBody/content/application~1json/schema/oneOf/0/properties/webhookUrls"
                      }
                    },
                    "required": [
                      "accountId",
                      "webhookUrls"
                    ]
                  }
                ]
              },
              "examples": {
                "Multiple merchant webhooks": {
                  "value": {
                    "merchantId": "000999",
                    "webhookUrls": [
                      "https://your-ecommerce-website.example.com/transactionwebhook12345",
                      "https://your-ecommerce-website.example.com/transactionwebhook98765"
                    ]
                  }
                },
                "Multiple payout webhooks": {
                  "value": {
                    "payoutAccountId": "3727",
                    "webhookUrls": [
                      "https://your-ecommerce-website.example.com/payoutwebhook12345",
                      "https://your-ecommerce-website.example.com/spendbackwebhook12345"
                    ]
                  }
                },
                "Multiple reseller webhooks": {
                  "value": {
                    "accountId": "27592004",
                    "webhookUrls": [
                      "https://your-ecommerce-website.example.com/applicationwebhook12345",
                      "https://your-ecommerce-website.example.com/applicationwebhook98765"
                    ]
                  }
                }
              }
            }
          },
          "description": ""
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "title": "webhookUrlsResponse",
                  "type": "object",
                  "x-tags": [
                    "object"
                  ],
                  "description": "f",
                  "properties": {
                    "merchantId": {
                      "type": "string",
                      "title": "merchantId",
                      "description": "The Nexio merchant ID associated with the webhooks. This parameter is only returned when the request included the `merchantId` in the `id` path parameter.\n\nEither this parameter, `payoutAccountId`, or `accountId` is returned.c",
                      "x-tags": [
                        "component"
                      ],
                      "example": "000999"
                    },
                    "payoutAccountId": {
                      "type": "string",
                      "title": "payoutAccountId",
                      "description": "The Nexio ID for the payout account associated with the webhooks. This parameter is only returned when the request included the `payoutAccountId` in the `id` path parameter.\n\nEither this parameter, `merchantId`, or `accountId` is returned.",
                      "example": "3927",
                      "x-tags": [
                        "component"
                      ]
                    },
                    "accountId": {
                      "type": "string",
                      "title": "accountId",
                      "description": "The reseller's Nexio account ID associated with the webhooks. This parameter is only returned when the request included the `accountId` in the `id` path parameter.\n\nEither this parameter, `merchantId`, or `payoutAccountId` is returned.",
                      "x-tags": [
                        "component"
                      ],
                      "example": "27592004"
                    },
                    "webhookUrls": {
                      "title": "webhookUrls",
                      "type": "array",
                      "description": "An array of all the webhooks configured for the specified merchant ID, payout account ID, or reseller account ID.",
                      "x-tags": [
                        "component"
                      ],
                      "items": {
                        "type": "string",
                        "example": "https://your-ecommerce-website.example.com/transactionwebhook12345"
                      }
                    },
                    "dateCreated": {
                      "type": "string",
                      "description": "The date and time the configuration was created, formatted as an [ISO-8601](https://www.iso.org/iso-8601-date-and-time-format.html) date expressed in UTC.",
                      "example": "2019-03-22T16:58:51.957Z"
                    },
                    "dateLastModified": {
                      "type": "string",
                      "description": "The date and time the configuration was last modified, formatted as an [ISO-8601](https://www.iso.org/iso-8601-date-and-time-format.html) date expressed in UTC.",
                      "example": "2019-04-04T18:54:58.011Z"
                    }
                  }
                },
                "examples": {
                  "Merchant webhook response": {
                    "value": {
                      "merchantId": "000999",
                      "webhookUrls": [
                        "https://your-ecommerce-website.example.com/transactionwebhook12345",
                        "https://your-ecommerce-website.example.com/transactionwebhook98765"
                      ],
                      "dateCreated": "2023-03-22T16:58:51.957Z",
                      "dateLastModified": "2023-04-04T18:54:58.011Z"
                    }
                  },
                  "Payout webhook response": {
                    "value": {
                      "payoutAccountId": "3927",
                      "webhookUrls": [
                        "https://your-ecommerce-website.example.com/payoutwebhook12345",
                        "https://your-ecommerce-website.example.com/spendbackwebhook12345"
                      ],
                      "dateCreated": "2023-03-22T16:58:51.957Z",
                      "dateLastModified": "2023-04-04T18:54:58.011Z"
                    }
                  },
                  "Reseller webhook response": {
                    "value": {
                      "accountId": "27592004",
                      "webhookUrls": [
                        "https://your-ecommerce-website.example.com/applicationwebhook12345",
                        "https://your-ecommerce-website.example.com/applicationwebhook98765"
                      ],
                      "dateCreated": "2023-03-22T16:58:51.957Z",
                      "dateLastModified": "2023-04-04T18:54:58.011Z"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/401"
          }
        },
        "summary": "Register webhook URLs"
      }
    },
    "/webhook/v3/webhookUrls/{id}/{webhook_type}": {
      "get": {
        "description": "**Simplified webhook workflow**\n\nReturns the registered webhook URLs for the specified ID and webhook type.\n\nThe ID can be either a merchant ID, payout account ID, or reseller Nexio account ID. The webhook type needs to match the ID.\n\nFor a tutorial on how to register and use webhooks, see [Webhooks](doc:webhooks) in Guides.\n\n<!-- theme: warning -->\n> ⚠️ Try It\n>\n> To use the Try It feature for this endpoint, you must use the credentials for your [Sandbox API user](doc:sandbox-environments).\n\n\n<div style=\"display:none;\">\n\n## Request parameters\n- id\n- webhook_type\n\n## Response parameters\n- merchantId\n- payoutAccountId\n- accountId\n- webhookUrls\n- dateCreated\n- dateLastModified\n\n</div>",
        "operationId": "ViewWebhookUrlsByIdAndType",
        "tags": [
          "Webhook Service"
        ],
        "security": [
          {
            "Basic_Authentication": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "description": "The merchant ID, payout account ID, or Nexio account ID.",
            "schema": {
              "type": "string",
              "example": "000999"
            },
            "required": true
          },
          {
            "in": "path",
            "name": "webhook_type",
            "description": "The webhook type. Specify `MERCHANT`, `PAYOUT_ACCOUNT`, or `ACCOUNT`.",
            "schema": {
              "type": "string",
              "example": "MERCHANT"
            },
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/paths/~1webhook~1v3~1webhookUrls/post/responses/200/content/application~1json/schema"
                },
                "examples": {
                  "Merchant webhook response": {
                    "value": {
                      "merchantId": "000999",
                      "webhookUrls": [
                        "https://your-ecommerce-website.example.com/transactionwebhook12345",
                        "https://your-ecommerce-website.example.com/transactionwebhook98765"
                      ],
                      "dateCreated": "2023-03-22T16:58:51.957Z",
                      "dateLastModified": "2023-04-04T18:54:58.011Z"
                    }
                  },
                  "Payout webhook response": {
                    "value": {
                      "payoutAccountId": "3927",
                      "webhookUrls": [
                        "https://your-ecommerce-website.example.com/payoutwebhook12345",
                        "https://your-ecommerce-website.example.com/spendbackwebhook12345"
                      ],
                      "dateCreated": "2023-03-22T16:58:51.957Z",
                      "dateLastModified": "2023-04-04T18:54:58.011Z"
                    }
                  },
                  "Reseller account webhook response": {
                    "value": {
                      "accountId": "27592004",
                      "webhookUrls": [
                        "https://your-ecommerce-website.example.com/applicationwebhook12345",
                        "https://your-ecommerce-website.example.com/applicationwebhook98765"
                      ],
                      "dateCreated": "2023-03-22T16:58:51.957Z",
                      "dateLastModified": "2023-04-04T18:54:58.011Z"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/401"
          }
        },
        "summary": "View webhook URLs by ID and type"
      },
      "parameters": [
        {
          "schema": {
            "type": "string"
          },
          "name": "id",
          "in": "path",
          "required": true,
          "description": "The merchant ID, payout account ID, or Nexio account ID."
        },
        {
          "schema": {
            "type": "string",
            "enum": [
              "MERCHANT",
              "PAYOUT_ACCOUNT",
              "ACCOUNT"
            ],
            "example": "MERCHANT"
          },
          "name": "webhook_type",
          "in": "path",
          "required": true,
          "description": "The webhook type. Specify `MERCHANT`, `PAYOUT_ACCOUNT`, or `ACCOUNT`."
        }
      ]
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```