On this page

    1. Home
    2. API
    3. API Reference
    4. Subscription
    5. Create Subscription Payment ID

    Create Subscription Payment ID

    This endpoint creates a unique identifier used to process payments for your network's data plan subscriptions. This ID is typically required by external payment handlers or used to track specific transaction intent within the system.


    POST /subscription/create-payment-id

    Generates a new, unique subscription payment intent ID for the authenticated network.

    Request

    POST /subscription/create-payment-id

    Headers:

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

    Body:

    The request body is an empty JSON object.

    {}

    Response

    200 Success

    Status: 200 OK

    Content-Type: application/json

    {
      "subscription_payment_id": "udid",
      "error": {
        "message": "string"
      }
    }

    Fields

    FieldTypeDescription
    subscription_payment_idstringA unique payment identifier (UDID) generated for this subscription intent.
    errorobjectPresent if the ID generation failed.
    error.messagestringHuman-readable explanation of why the payment ID could not be created.

    Example

    HTTP Request

    POST /subscription/create-payment-id HTTP/1.1
    Host: api.bringyour.com
    Content-Type: application/json
    Authorization: Bearer YOUR_JWT_TOKEN
     
    {}

    Successful HTTP Response

    {
      "subscription_payment_id": "pay_550e8400-e29b-41d4-a716-446655440000",
      "error": null
    }


    Powered by Sudoc v2.5.0
    Hide table of contents