SpendBundle
    SpendBundle
    • /spends
      GET
    • /spends/:id
      DELETE
    • /fees
      POST
    • /singleton
      POST
    • /payment/pay-per-spend
      GET
    • /payment/token
      GET
    • /limits
      GET

      /payment/token

      GET
      /payment/token
      Exchange a payment code for an API key

      Request

      Query Params
      code
      string 
      required
      Payment verification code
      Header Params
      x-api-key
      string 
      required
      API key for authentication

      Request samples

      Shell
      JavaScript
      Java
      Swift
      Go
      PHP
      Python
      HTTP
      C
      C#
      Objective-C
      Ruby
      OCaml
      Dart
      R
      Request Request Example
      Shell
      JavaScript
      Java
      Swift
      curl --location --request GET '/payment/token?code' \
      --header 'x-api-key;'

      Responses

      🟢200OK
      application/json
      Returns API key
      Body
      apiKey
      string 
      optional
      Example
      {
          "apiKey": "string"
      }
      🟠400Bad Request
      🟠401Unauthorized
      Modified at 2025-03-26 11:47:19
      Previous
      /payment/pay-per-spend
      Next
      /limits
      Built with