On this page

    1. Home
    2. API
    3. API Reference
    4. Account
    5. Referral Network

    Referral Network

    This endpoint allows you to see information about the network that referred you to the URnetwork. If your account was not referred by an existing network, the network object will be null.


    GET /account/referral-network

    Get details of the referring network for the authenticated account.

    Request

    GET /account/referral-network

    Headers:

    {
      "Host": "api.bringyour.com",
      "Authorization": "Bearer YOUR_JWT_TOKEN",
      "Accept": "application/json"
    }

    Response

    200 Success

    Status: 200 OK

    Content-Type: application/json

    {
      "network": {
        "id": "uuid",
        "name": "string"
      },
      "error": {
        "message": "string"
      }
    }

    Fields

    FieldTypeDescription
    networkobjectDetails of the network that referred the caller.
    network.idstringThe unique UUID of the referring network.
    network.namestringThe display name of the referring network.
    errorobjectError details if the request failed.
    error.messagestringA descriptive error message.

    Example

    HTTP Request

    GET /account/referral-network HTTP/1.1
    Host: api.bringyour.com
    Authorization: Bearer YOUR_JWT_TOKEN
    Accept: application/json

    Successful HTTP Response

    {
      "network": {
        "id": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
        "name": "ReferrerNetwork01"
      },
      "error": null
    }


    Powered by Sudoc v2.5.0
    Hide table of contents