On this page

    1. Home
    2. API
    3. API Reference
    4. Solana
    5. Solana Payment Intent

    Solana Payment Intent

    This endpoint creates a unique reference string used to identify and verify a Solana payment transaction associated with your account.


    POST /solana/payment-intent

    Generates or validates a unique payment intent reference for the Solana blockchain.

    Request

    POST /solana/payment-intent

    Headers:

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

    Body:

    {
      "reference": "string"
    }

    Fields

    FieldTypeDescription
    referencestringA unique reference string to identify the payment intent added to the Solana transaction.

    Response

    200 Success

    Status: 200 OK

    Content-Type: application/json

    {
      "error": {
        "message": "string"
      }
    }

    Fields

    FieldTypeDescription
    errorobjectAn error object if the request failed (can be null).
    error.messagestringA descriptive message explaining the error.

    Example

    HTTP Request

    POST /solana/payment-intent HTTP/1.1
    Host: api.bringyour.com
    Content-Type: application/json
    Authorization: Bearer YOUR_JWT_TOKEN
     
    {
      "reference": "solana-tx-ref-12345"
    }

    Successful HTTP Response

    {
      "error": null
    }


    Powered by Sudoc v2.5.0
    Hide table of contents