Developer Guide

Voltage Payments API

10min
api specification the full voltage pay openapi spec can be found at the link below https //voltageapi com/v1/docs core resource categories 1\ wallets wallets are where your funds and credit balances are managed the api allows you to list wallets view all wallets in an organization get /organizations/{organization id}/wallets create wallets set up new wallets in development or production environments post /organizations/{organization id}/wallets retrieve wallet details get balance information and status for a specific wallet get /organizations/{organization id}/wallets/{wallet id} delete wallets remove wallets when no longer needed delete /organizations/{organization id}/wallets/{wallet id} view transaction history access the ledger of all transactions for a wallet get /organizations/{organization id}/wallets/{wallet id}/ledger 2\ payments the payments api enables sending and receiving bitcoin payments via lightning network key operations include list payments view payment history with filtering options get /organizations/{organization id}/environments/{environment id}/payments create payments initiate new send or receive payments post /organizations/{organization id}/environments/{environment id}/payments get payment details retrieve information about a specific payment get /organizations/{organization id}/environments/{environment id}/payments/{payment id} track payment history view the full lifecycle of a payment get /organizations/{organization id}/environments/{environment id}/payments/{payment id}/history 3\ lines of credit the credit system is central to voltage payments the api allows you to view credit summary get details about your available credit line get /organizations/{organization id}/lines of credit/{line id}/summary view all credit lines list all lines of credit across your organization get /organizations/{organization id}/lines of credit/summaries note for staging lines of credit are automatically created after you create your first wallet, read about it here common parameters most endpoints share similar parameter patterns organization id required for all operations environment id distinguishes between development and production environments wallet id identifies specific wallets authentication the voltage api uses x api key authentication methods for api calls api key authentication (via x api key header) \ header 'x api key your api key' response formats the api consistently returns 200/202 successful operations 400 badly formatted requests 403 permission errors (read/write access controls) 404 resource not found 500 server errors