Invoices are time-sensitive payment requests addressed to specific buyers. An invoice has a fixed price, typically denominated in fiat currency. It also has an equivalent price in the supported cryptocurrencies, calculated by BitPay, at a locked exchange rate with an expiration time of 15 minutes.
Resource
Name | Type | Facade | ||
---|---|---|---|---|
pos | merchant | |||
facade
This field indicates the facade from which the invoice is being requested:
|
string
|
✓ | ✓ | |
data
Invoice data object. The following fields from the initial POST request will be passed
in the response from the server, in addition to some other fields listed in this section
|
object
|
✓ | ✓ | |
url
Web address of invoice, expires at
expirationTime |
string
|
✓ | ✓ | |
posData
A passthru variable provided by the merchant and designed to be used by the merchant to
correlate the invoice with an order or other object in their system. This passthru variable can be a
serialized object, e.g.:
"posData": "\"{ \"ref\" : 711454, \"item\" : \"test_item\" }\"" . |
string
|
✓ | ✓ | |
status
Invoice status can have the following values:
|
string
|
✓ | ✓ | |
price
Fixed price amount for the checkout, in the
"currency" of the invoice
object. |
float
|
✓ | ✓ | |
currency
ISO 4217 3-character currency code. This is the currency associated with the price
field, supported currencies are available via the Currencies
resource
|
string
|
✓ | ✓ | |
itemDesc
Invoice description - will be added as a line item on the BitPay checkout page, under
the merchant name.
|
string
|
✓ | ✓ | |
orderId
Can be used by the merchant to assign their own internal Id to an invoice. If used,
there should be a direct match between an
orderId and an invoice id . |
string
|
✓ | ✓ | |
invoiceTime
UNIX time of invoice creation, in milliseconds
|
int
|
✓ | ✓ | |
expirationTime
UNIX time when invoice is last available to be paid, in milliseconds
|
int
|
✓ | ✓ | |
currentTime
UNIX time of API call, in milliseconds
|
int
|
✓ | ✓ | |
guid
A passthru variable provided by the merchant and designed to be used by the merchant to
correlate the invoice with an order ID in their system, which can be used as a lookup variable in Retrieve Invoice by GUID.
|
string
|
✓ | ✓ | |
id
Invoice resource id
|
string
|
✓ | ✓ | |
lowFeeDetected
Flag to indicate if the miner fee used by the buyer is too low. Initially set to
false when the invoice is created. |
boolean
|
✓ | ✓ | |
amountPaid
Initially set to
0 when creating the invoice. It will be updated with the
total amount paid to the invoice, indicated in the smallest possible unit for the corresponding
transactionCurrency
|
float
|
✓ | ✓ | |
displayAmountPaid
Initially set to
"0" when creating the invoice. It will be updated with the
total amount paid to the invoice indicated in the base unit for the corresponding
transactionCurrency |
string
|
✓ | ✓ | |
exceptionStatus
Initially a boolean
false , this parameter will indicate if the purchaser
sent too much ("paidOver") or not enough funds ("paidPartial") in the transaction to pay the BitPay invoice.
Possible values are:
|
boolean | string
|
✓ | ✓ | |
targetConfirmations
Indicates the number of block confirmation of the crypto currency transaction which are
required to credit a paid invoice to the merchant accoun. Currently the value set is set to
6 by
default for BTC/BCH/XRP, 40 for DOGE and 50 for ETH/GUSD/PAX/USDC/BUSD/DAI/WBTC
|
int
|
✓ | ||
transactions
Initially empty when the invoice is created. This array will be populated with the
crypto currency transaction hashes linked to the invoice. For instance the consumer's transaction hash if the
invoice is paid, but also the refund transaction hash if the merchant decide to issue a refund to the
purchaser
|
array
|
✓ | ||
buyer
Allows merchant to pass buyer related information in the invoice object
|
object
|
✓ | ||
name
Buyer's name
|
string
|
✓ | ||
address1
Buyer's address
|
string
|
✓ | ||
address2
Buyer's appartment or suite number
|
string
|
✓ | ||
locality
Buyer's city or locality
|
string
|
✓ | ||
region
Buyer's state or province
|
string
|
✓ | ||
postalCode
Buyer's Zip or Postal Code
|
string
|
✓ | ||
country
Buyer's Country code. Format ISO 3166-1 alpha-2
|
string
|
✓ | ||
email
Buyer's email address. If provided during invoice creation, this will bypass the email
prompt for the consumer when opening the invoice.
|
string
|
✓ | ||
phone
Buyer's phone number
|
string
|
✓ | ||
notify
Indicates whether a BitPay email confirmation should be sent to the buyer once he has
paid the invoice
|
boolean
|
✓ | ||
redirectURL
The shopper will be redirected to this URL when clicking on the Return button
after a successful payment or when clicking on the Close button if a separate
closeURL is
not specified. Be sure to include "http://" or "https://" in the url. |
string
|
✓ | ✓ | |
closeURL
URL to redirect if the shopper does not pay the invoice and click on the Close
button instead. Be sure to include "http://" or "https://" in the url.
|
string
|
✓ | ✓ | |
autoRedirect
Set to
Note: If automatic redirect is enabled, |
boolean
|
✓ | ✓ | |
refundAddresses
Initially empty when the invoice is created. This field will be populated with the
refund address provided by the customer if you request a refund of the specific invoice.
|
array
|
✓ | ||
address
Address object.
|
object
|
✓ | ||
type
The address type.
|
string
|
✓ | ||
date
The date the refund was sent to the address. Format is ISO 8601 such as
2024-01-08T23:50:56.556Z
|
date
|
✓ | ||
tag
|
int
|
✓ | ||
email
The email address associated with the refund address.
|
string
|
✓ | ||
refundAddressRequestPending
Initially set to
false when the invoice is created, this field will be set
to true once a refund request has been issued by the merchant. This flag is here to indicate that
the refund request is pending action from the buyer to provide an address for the refund, via the secure link
which has been automatically emailed to him |
boolean
|
✓ | ✓ | |
buyerProvidedEmail
Populated with the buyer's email address if passed in the
buyer object by
the merchant, otherwise this field is not returned for newly created invoices. If the merchant does not pass
the buyer email in the invoice request, the bitpay invoice UI will prompt the user to enter his email address
and this field will be populated with the email submitted. |
string
|
✓ | ||
buyerProvidedInfo
Information collected from the buyer during the process of paying an invoice. Initially
this object is empty.
|
object
|
✓ | ✓ | |
name
Populated with the buyer's name address if passed in the
buyer object by
the merchant |
string
|
✓ | ✓ | |
phoneNumber
Populated with the buyer's phone number if passed in the
buyer object by
the merchant |
string
|
✓ | ✓ | |
sms
SMS provided by user for communications. This is only used for instances where a buyers
email (primary form of buyer communication) is can not be gathered.
|
string
|
✓ | ✓ | |
smsVerified
Verification status of SMS (ie. have they passed the challenge).
|
boolean
|
✓ | ✓ | |
selectedWallet
This field contains the name of the cryptocurrency wallet selected by the shopper to
complete the payment.
|
string
|
✓ | ✓ | |
selectedTransactionCurrency
This field will be populated with the cryptocurrency selected to pay the BitPay invoice,
current supported values are
"BTC" , "BCH" , "ETH" , "GUSD" ,
"PAX" , "BUSD" , "USDC" , "XRP" , "DOGE" ,
"DAI" and "WBTC" . If not yet selected, this field will not be returned. |
string
|
✓ | ✓ | |
emailAddress
populated with the buyer's email address if passed in the
buyer object,
otherwise this field is not returned in the response. |
string
|
✓ | ||
paymentSubtotals
For internal use. This field can be ignored in merchant implementations.
|
object
|
✓ | ✓ | |
BTC
Payment subtotal in BTC
|
int
|
✓ | ✓ | |
BCH
Payment subtotal in BCH
|
int
|
✓ | ✓ | |
ETH
Payment subtotal in ETH
|
int
|
✓ | ✓ | |
GUSD
Payment subtotal in GUSD
|
int
|
✓ | ✓ | |
PAX
Payment subtotal in PAX
|
int
|
✓ | ✓ | |
BUSD
Payment subtotal in BUSD
|
int
|
✓ | ✓ | |
USDC
Payment subtotal in USDC
|
int
|
✓ | ✓ | |
DOGE
Payment subtotal in DOGE
|
int
|
✓ | ✓ | |
LTC
Payment subtotal in LTC
|
int
|
✓ | ✓ | |
MATIC
Payment subtotal in MATIC
|
int
|
✓ | ✓ | |
USDC_m
Payment subtotal in USDC_m
|
int
|
✓ | ✓ | |
paymentTotals
For internal use - This field can be ignored in merchant implementations.
|
object
|
✓ | ✓ | |
BTC
Payment total in BTC
|
float
|
✓ | ✓ | |
BCH
Payment total in BCH
|
float
|
✓ | ✓ | |
ETH
Payment total in ETH
|
float
|
✓ | ✓ | |
GUSD
Payment total in GUSD
|
float
|
✓ | ✓ | |
PAX
Payment total in PAX
|
float
|
✓ | ✓ | |
BUSD
Payment total in BUSD
|
float
|
✓ | ✓ | |
USDC
Payment total in USDC
|
float
|
✓ | ✓ | |
DOGE
Payment total in DOGE
|
float
|
✓ | ✓ | |
LTC
Payment total in LTC
|
float
|
✓ | ✓ | |
MATIC
Payment total in MATIC
|
float
|
✓ | ✓ | |
USDC_m
Payment total in USDC_m
|
float
|
✓ | ✓ | |
paymentDisplayTotals
The total amount that the purchaser should pay as displayed on the invoice UI. This is
like
paymentDisplaySubTotals but with the minerFees included. The key is the
currency and the value is an amount indicated in the base unit for each supported
transactionCurrency . |
object
|
✓ | ✓ | |
BTC
Invoice total amount displayed to the user, in BTC
|
string
|
✓ | ✓ | |
BCH
Invoice total amount displayed to the user, BCH
|
string
|
✓ | ✓ | |
ETH
Invoice total amount displayed to the user, ETH
|
string
|
✓ | ✓ | |
GUSD
Invoice total amount displayed to the user, GUSD
|
string
|
✓ | ✓ | |
PAX
Invoice total amount displayed to the user, PAX
|
string
|
✓ | ✓ | |
BUSD
Invoice total amount displayed to the user, BUSD
|
string
|
✓ | ✓ | |
USDC
Invoice total amount displayed to the user, USDC
|
string
|
✓ | ✓ | |
DOGE
Invoice total amount displayed to the user, DOGE
|
string
|
✓ | ✓ | |
LTC
Invoice total amount displayed to the user, LTC
|
string
|
✓ | ✓ | |
MATIC
Invoice total amount displayed to the user, MATIC
|
string
|
✓ | ✓ | |
USDC_m
Invoice total amount displayed to the user, USDC_m
|
string
|
✓ | ✓ | |
paymentDisplaySubTotals
Equivalent to price for each supported
transactionCurrency , excluding
minerFees . The key is the currency and the value is an amount indicated in the base unit for each
supported transactionCurrency . |
object
|
✓ | ✓ | |
BTC
Invoice subtotal amount displayed to the user, in BTC
|
string
|
✓ | ✓ | |
BCH
Invoice subtotal amount displayed to the user, BCH
|
string
|
✓ | ✓ | |
ETH
Invoice subtotal amount displayed to the user, ETH
|
string
|
✓ | ✓ | |
GUSD
Invoice subtotal amount displayed to the user, GUSD
|
string
|
✓ | ✓ | |
PAX
Invoice subtotal amount displayed to the user, PAX
|
string
|
✓ | ✓ | |
BUSD
Invoice subtotal amount displayed to the user, BUSD
|
string
|
✓ | ✓ | |
USDC
Invoice subtotal amount displayed to the user, USDC
|
string
|
✓ | ✓ | |
DOGE
Invoice subtotal amount displayed to the user, DOGE
|
string
|
✓ | ✓ | |
LTC
Invoice subtotal amount displayed to the user, LTC
|
string
|
✓ | ✓ | |
MATIC
Invoice subtotal amount displayed to the user, MATIC
|
string
|
✓ | ✓ | |
USDC_m
Invoice subtotal amount displayed to the user, USDC_m
|
string
|
✓ | ✓ | |
exchangeRates
Exchange rates keyed by source and target currencies.
|
object
|
✓ | ✓ | |
BTC
BTC exchange rates for target currencies
|
float
|
✓ | ✓ | |
USD
BTC exchange rates for USD
|
float
|
✓ | ✓ | |
BCH
BTC exchange rates for BCH
|
float
|
✓ | ✓ | |
ETH
BTC exchange rates for ETH
|
float
|
✓ | ✓ | |
GUSD
BTC exchange rates for GUSD
|
float
|
✓ | ✓ | |
PAX
BTC exchange rates for PAX
|
float
|
✓ | ✓ | |
BUSD
BTC exchange rates for BUSD
|
float
|
✓ | ✓ | |
USDC
BTC exchange rates for USDC
|
float
|
✓ | ✓ | |
DOGE
BTC exchange rates for DOGE
|
float
|
✓ | ✓ | |
LTC
BTC exchange rates for LTC
|
float
|
✓ | ✓ | |
MATIC
BTC exchange rates for MATIC
|
float
|
✓ | ✓ | |
USDC_m
BTC exchange rates for USDC_m
|
float
|
✓ | ✓ | |
BCH
BCH exchange rates for target currencies
|
float
|
✓ | ✓ | |
USD
BCH exchange rates for USD
|
float
|
✓ | ✓ | |
BTC
BCH exchange rates for BTC
|
float
|
✓ | ✓ | |
ETH
BCH exchange rates for ETH
|
float
|
✓ | ✓ | |
GUSD
BCH exchange rates for GUSD
|
float
|
✓ | ✓ | |
PAX
BCH exchange rates for PAX
|
float
|
✓ | ✓ | |
BUSD
BCH exchange rates for BUSD
|
float
|
✓ | ✓ | |
USDC
BCH exchange rates for USDC
|
float
|
✓ | ✓ | |
DOGE
BCH exchange rates for DOGE
|
float
|
✓ | ✓ | |
LTC
BCH exchange rates for LTC
|
float
|
✓ | ✓ | |
MATIC
BCH exchange rates for MATIC
|
float
|
✓ | ✓ | |
USDC_m
BCH exchange rates for USDC_m
|
float
|
✓ | ✓ | |
ETH
ETH exchange rates for target currencies
|
float
|
✓ | ✓ | |
USD
ETH exchange rates for USD
|
float
|
✓ | ✓ | |
BTC
ETH exchange rates for BTC
|
float
|
✓ | ✓ | |
BCH
ETH exchange rates for BCH
|
float
|
✓ | ✓ | |
GUSD
ETH exchange rates for GUSD
|
float
|
✓ | ✓ | |
PAX
ETH exchange rates for PAX
|
float
|
✓ | ✓ | |
BUSD
ETH exchange rates for BUSD
|
float
|
✓ | ✓ | |
USDC
ETH exchange rates for USDC
|
float
|
✓ | ✓ | |
DOGE
ETH exchange rates for DOGE
|
float
|
✓ | ✓ | |
LTC
ETH exchange rates for LTC
|
float
|
✓ | ✓ | |
MATIC
ETH exchange rates for MATIC
|
float
|
✓ | ✓ | |
USDC_m
ETH exchange rates for USDC_m
|
float
|
✓ | ✓ | |
GUSD
GUSD exchange rates for target currencies
|
float
|
✓ | ✓ | |
USD
GUSD exchange rates for USD
|
float
|
✓ | ✓ | |
BTC
GUSD exchange rates for BTC
|
float
|
✓ | ✓ | |
BCH
GUSD exchange rates for BCH
|
float
|
✓ | ✓ | |
ETH
GUSD exchange rates for ETH
|
float
|
✓ | ✓ | |
PAX
GUSD exchange rates for PAX
|
float
|
✓ | ✓ | |
BUSD
GUSD exchange rates for BUSD
|
float
|
✓ | ✓ | |
USDC
GUSD exchange rates for USDC
|
float
|
✓ | ✓ | |
DOGE
GUSD exchange rates for DOGE
|
float
|
✓ | ✓ | |
LTC
GUSD exchange rates for LTC
|
float
|
✓ | ✓ | |
MATIC
GUSD exchange rates for MATIC
|
float
|
✓ | ✓ | |
USDC_m
GUSD exchange rates for USDC_m
|
float
|
✓ | ✓ | |
PAX
PAX exchange rates for target currencies
|
float
|
✓ | ✓ | |
USD
PAX exchange rates for USD
|
float
|
✓ | ✓ | |
BTC
PAX exchange rates for BTC
|
float
|
✓ | ✓ | |
BCH
PAX exchange rates for BCH
|
float
|
✓ | ✓ | |
ETH
PAX exchange rates for ETH
|
float
|
✓ | ✓ | |
GUSD
PAX exchange rates for GUSD
|
float
|
✓ | ✓ | |
BUSD
PAX exchange rates for BUSD
|
float
|
✓ | ✓ | |
USDC
PAX exchange rates for USDC
|
float
|
✓ | ✓ | |
DOGE
PAX exchange rates for DOGE
|
float
|
✓ | ✓ | |
LTC
PAX exchange rates for LTC
|
float
|
✓ | ✓ | |
MATIC
PAX exchange rates for MATIC
|
float
|
✓ | ✓ | |
USDC_m
PAX exchange rates for USDC_m
|
float
|
✓ | ✓ | |
BUSD
BUSD exchange rates for target currencies
|
float
|
✓ | ✓ | |
USD
BUSD exchange rates for USD
|
float
|
✓ | ✓ | |
BTC
BUSD exchange rates for BTC
|
float
|
✓ | ✓ | |
BCH
BUSD exchange rates for BCH
|
float
|
✓ | ✓ | |
ETH
BUSD exchange rates for ETH
|
float
|
✓ | ✓ | |
GUSD
BUSD exchange rates for GUSD
|
float
|
✓ | ✓ | |
PAX
BUSD exchange rates for PAX
|
float
|
✓ | ✓ | |
USDC
BUSD exchange rates for USDC
|
float
|
✓ | ✓ | |
DOGE
BUSD exchange rates for DOGE
|
float
|
✓ | ✓ | |
LTC
BUSD exchange rates for LTC
|
float
|
✓ | ✓ | |
MATIC
BUSD exchange rates for MATIC
|
float
|
✓ | ✓ | |
USDC_m
BUSD exchange rates for USDC_m
|
float
|
✓ | ✓ | |
USDC
USDC exchange rates for target currencies
|
float
|
✓ | ✓ | |
USD
USDC exchange rates for USD
|
float
|
✓ | ✓ | |
BTC
USDC exchange rates for BTC
|
float
|
✓ | ✓ | |
BCH
USDC exchange rates for BCH
|
float
|
✓ | ✓ | |
ETH
USDC exchange rates for ETH
|
float
|
✓ | ✓ | |
GUSD
USDC exchange rates for GUSD
|
float
|
✓ | ✓ | |
PAX
USDC exchange rates for PAX
|
float
|
✓ | ✓ | |
BUSD
USDC exchange rates for BUSD
|
float
|
✓ | ✓ | |
DOGE
USDC exchange rates for DOGE
|
float
|
✓ | ✓ | |
LTC
USDC exchange rates for LTC
|
float
|
✓ | ✓ | |
MATIC
USDC exchange rates for MATIC
|
float
|
✓ | ✓ | |
USDC_m
USDC exchange rates for USDC_m
|
float
|
✓ | ✓ | |
DOGE
DOGE exchange rates for target currencies
|
float
|
✓ | ✓ | |
USD
DOGE exchange rates for USD
|
float
|
✓ | ✓ | |
BTC
DOGE exchange rates for BTC
|
float
|
✓ | ✓ | |
BCH
DOGE exchange rates for BCH
|
float
|
✓ | ✓ | |
ETH
DOGE exchange rates for ETH
|
float
|
✓ | ✓ | |
GUSD
DOGE exchange rates for GUSD
|
float
|
✓ | ✓ | |
PAX
DOGE exchange rates for PAX
|
float
|
✓ | ✓ | |
BUSD
DOGE exchange rates for BUSD
|
float
|
✓ | ✓ | |
USDC
DOGE exchange rates for USDC
|
float
|
✓ | ✓ | |
LTC
DOGE exchange rates for LTC
|
float
|
✓ | ✓ | |
MATIC
DOGE exchange rates for MATIC
|
float
|
✓ | ✓ | |
LTC
LTC exchange rates for target currencies
|
float
|
✓ | ✓ | |
USD
LTC exchange rates for USD
|
float
|
✓ | ✓ | |
BTC
LTC exchange rates for BTC
|
float
|
✓ | ✓ | |
BCH
LTC exchange rates for BCH
|
float
|
✓ | ✓ | |
ETH
LTC exchange rates for ETH
|
float
|
✓ | ✓ | |
GUSD
LTC exchange rates for GUSD
|
float
|
✓ | ✓ | |
PAX
LTC exchange rates for PAX
|
float
|
✓ | ✓ | |
BUSD
LTC exchange rates for BUSD
|
float
|
✓ | ✓ | |
USDC
LTC exchange rates for USDC
|
float
|
✓ | ✓ | |
DOGE
LTC exchange rates for DOGE
|
float
|
✓ | ✓ | |
MATIC
LTC exchange rates for MATIC
|
float
|
✓ | ✓ | |
USDC_m
LTC exchange rates for USDC_m
|
float
|
✓ | ✓ | |
MATIC
MATIC exchange rates for target currencies
|
float
|
✓ | ✓ | |
USD
MATIC exchange rates for USD
|
float
|
✓ | ✓ | |
BTC
MATIC exchange rates for BTC
|
float
|
✓ | ✓ | |
BCH
MATIC exchange rates for BCH
|
float
|
✓ | ✓ | |
ETH
MATIC exchange rates for ETH
|
float
|
✓ | ✓ | |
GUSD
MATIC exchange rates for GUSD
|
float
|
✓ | ✓ | |
PAX
MATIC exchange rates for PAX
|
float
|
✓ | ✓ | |
BUSD
MATIC exchange rates for BUSD
|
float
|
✓ | ✓ | |
USDC
MATIC exchange rates for USDC
|
float
|
✓ | ✓ | |
DOGE
MATIC exchange rates for DOGE
|
float
|
✓ | ✓ | |
LTC
MATIC exchange rates for LTC
|
float
|
✓ | ✓ | |
USDC_m
MATIC exchange rates for USDC_m
|
float
|
✓ | ✓ | |
USDC_m
USDC_m exchange rates for target currencies
|
float
|
✓ | ✓ | |
USD
USDC_m exchange rates for USD
|
float
|
✓ | ✓ | |
BTC
USDC_m exchange rates for BTC
|
float
|
✓ | ✓ | |
BCH
USDC_m exchange rates for BCH
|
float
|
✓ | ✓ | |
ETH
USDC_m exchange rates for ETH
|
float
|
✓ | ✓ | |
GUSD
USDC_m exchange rates for GUSD
|
float
|
✓ | ✓ | |
PAX
USDC_m exchange rates for PAX
|
float
|
✓ | ✓ | |
BUSD
USDC_m exchange rates for BUSD
|
float
|
✓ | ✓ | |
USDC
USDC_m exchange rates for USDC
|
float
|
✓ | ✓ | |
DOGE
USDC_m exchange rates for DOGE
|
float
|
✓ | ✓ | |
LTC
USDC_m exchange rates for LTC
|
float
|
✓ | ✓ | |
MATIC
USDC_m exchange rates for MATIC
|
float
|
✓ | ✓ | |
minerFees
The total amount of fees that the purchaser will pay to cover BitPay's UTXO sweep cost
for an invoice. The key is the currency and the value is an object containing the satoshis per byte, the total
fee, and the fiat amount. This is referenced as "Network Cost" on an invoice, see this support article for more information
|
object
|
✓ | ✓ | |
BTC
BTC miner fees
|
object
|
✓ | ✓ | |
satoshisPerByte
Satoshis per byte
|
int
|
✓ | ✓ | |
totalFee
Total fee, in Satoshis
|
int
|
✓ | ✓ | |
fiatAmount
Total fee, in fiat currency
|
float
|
✓ | ✓ | |
BCH
BCH miner fees
|
object
|
✓ | ✓ | |
satoshisPerByte
Satoshis per byte
|
int
|
✓ | ✓ | |
totalFee
Total fee, in Satoshis
|
int
|
✓ | ✓ | |
fiatAmount
Total fee, in fiat currency
|
float
|
✓ | ✓ | |
ETH
ETH miner fees
|
object
|
✓ | ✓ | |
satoshisPerByte
Satoshis per byte
|
int
|
✓ | ✓ | |
totalFee
Total fee, in Satoshis
|
int
|
✓ | ✓ | |
fiatAmount
Total fee, in fiat currency
|
float
|
✓ | ✓ | |
GUSD
GUSD miner fees
|
object
|
✓ | ✓ | |
satoshisPerByte
Satoshis per byte
|
int
|
✓ | ✓ | |
totalFee
Total fee, in Satoshis
|
int
|
✓ | ✓ | |
fiatAmount
Total fee, in fiat currency
|
float
|
✓ | ✓ | |
PAX
PAX miner fees
|
object
|
✓ | ✓ | |
satoshisPerByte
Satoshis per byte
|
int
|
✓ | ✓ | |
totalFee
Total fee, in Satoshis
|
int
|
✓ | ✓ | |
fiatAmount
Total fee, in fiat currency
|
float
|
✓ | ✓ | |
BUSD
BUSD miner fees
|
object
|
✓ | ✓ | |
satoshisPerByte
Satoshis per byte
|
int
|
✓ | ✓ | |
totalFee
Total fee, in Satoshis
|
int
|
✓ | ✓ | |
fiatAmount
Total fee, in fiat currency
|
float
|
✓ | ✓ | |
USDC
USDC miner fees
|
object
|
✓ | ✓ | |
satoshisPerByte
Satoshis per byte
|
int
|
✓ | ✓ | |
totalFee
Total fee, in Satoshis
|
int
|
✓ | ✓ | |
fiatAmount
Total fee, in fiat currency
|
float
|
✓ | ✓ | |
DOGE
DOGE miner fees
|
object
|
✓ | ✓ | |
satoshisPerByte
Satoshis per byte
|
int
|
✓ | ✓ | |
totalFee
Total fee, in Satoshis
|
int
|
✓ | ✓ | |
fiatAmount
Total fee, in fiat currency
|
float
|
✓ | ✓ | |
LTC
LTC miner fees
|
object
|
✓ | ✓ | |
satoshisPerByte
Satoshis per byte
|
int
|
✓ | ✓ | |
totalFee
Total fee, in Satoshis
|
int
|
✓ | ✓ | |
fiatAmount
Total fee, in fiat currency
|
float
|
✓ | ✓ | |
MATIC
MATIC miner fees
|
object
|
✓ | ✓ | |
satoshisPerByte
Satoshis per byte
|
int
|
✓ | ✓ | |
totalFee
Total fee, in Satoshis
|
int
|
✓ | ✓ | |
fiatAmount
Total fee, in fiat currency
|
float
|
✓ | ✓ | |
USDC_m
USDC_m miner fees
|
object
|
✓ | ✓ | |
satoshisPerByte
Satoshis per byte
|
int
|
✓ | ✓ | |
totalFee
Total fee, in Satoshis
|
int
|
✓ | ✓ | |
fiatAmount
Total fee, in fiat currency
|
float
|
✓ | ✓ | |
nonPayProPaymentReceived
This boolean will be available on an invoice object once an invoice is paid and indicate
if the transaction was made with a wallet using the payment protocol (
true ) or peer to peer
(false ). |
boolean
|
✓ | ✓ | |
shopper
This object will be available on the invoice if a shopper signs in on an invoice using
his BitPay ID. See the following blogpost for more information.
|
object
|
✓ | ||
user
If a shopper signs in on the invoice using his BitPay ID, this field will contain the
unique ID assigned by BitPay to this shopper.
|
string
|
✓ | ||
billId
This field will be in the invoice object only if the invoice was generated from a bill,
see the Bills resource for more information
|
string
|
✓ | ||
refundInfo
For a refunded invoice, this object will contain the details of executed refunds for the
corresponding invoice.
|
object
|
✓ | ||
supportRequest
For a refunded invoice, this field will contain the refund
requestId once
executed. |
string
|
✓ | ||
currency
For a refunded invoice, this field will contain the base currency selected for the
refund. Typically the same as the invoice
currency . |
string
|
✓ | ||
amounts
For a refunded invoice, this object will contain the crypto currency amount refunded by
BitPay to the consumer (in the selected
transactionCurrency ) and the equivalent refunded amount
from the invoice in the given currency (thus linked to the amount debited from the merchant
account to cover the refund) |
object
|
✓ | ||
{currency}
Value for the refunded amount in the invoice's
currency which is also the key. |
float
|
✓ | ||
{transactionCurrency}
Value for the refunded amount in the selected
transactionCurrency which is also the key. |
float
|
✓ | ||
jsonPayProRequired
Boolean set to
false by default. If set to true , this means
that the invoice will only accept payments from wallets which have implemented the BitPay JSON Payment Protocol |
boolean
|
✓ | ✓ | |
merchantName
A display string for merchant identification (ex. Wal-Mart Store #1452, Bowling Green,
KY).
|
string
|
✓ | ✓ | |
bitpayIdRequired
BitPay ID is a verification process that is required when a user is making payments or
receiving a refund over a given threshold, which may vary by region. This Boolean forces the invoice to
require BitPay ID regardless of the price.
|
boolean
|
✓ | ||
isCancelled
Indicates whether or not the invoice was cancelled.
|
boolean
|
✓ | ||
itemizedDetails
Array of objects containing line item details for display.
|
array
|
✓ | ✓ | |
amount
The amount of currency.
|
float
|
✓ | ✓ | |
description
Display string for the item.
|
string
|
✓ | ✓ | |
isFee
Indicates whether or not the item is considered a fee/tax or part of the main purchase.
|
boolean
|
✓ | ✓ | |
acceptanceWindow
Number of milliseconds that a user has to pay an invoice before it expires
(
0 -900000 ). If not set, invoice will default to the account
acceptanceWindow . If account acceptanceWindow is not set, invoice will default to 15
minutes (900,000 milliseconds). |
int
|
✓ | ✓ | |
transactionCurrency
The cryptocurrency used to pay the invoice. This field will only be available after a
transaction is applied to the invoice. Possible values are currently
"BTC" , "BCH" ,
"ETH" , "GUSD" , "PAX" , "BUSD" , "USDC" ,
"XRP" , "DOGE" , "DAI" and "WBTC" . |
string
|
✓ | ✓ | |
underpaidAmount
This parameter will be returned on the invoice object if the invoice was underpaid
(
"exceptionStatus": "paidPartial" ). It equals to the absolute difference between
amountPaid and paymentTotals for the corresponding transactionCurrency
used. |
float
|
✓ | ✓ | |
overpaidAmount
This parameter will be returned on the invoice object if the invoice was overpaid
(
"exceptionStatus": "paidOver" ). It equals to the absolute difference between
amountPaid and paymentTotals for the corresponding transactionCurrency
used. |
float
|
✓ | ✓ | |
supportedTransactionCurrencies
The currencies that may be used to pay this invoice. The object is keyed by currency
code. The values are objects with an
"enabled" boolean and option. An extra "reason"
parameter is added in the object if a cryptocurrency is disabled on a specific invoice. If you disable a
currency via the invoice parameter "paymentCurrencies" , this parameter will be set to
"merchantDisabledByParam" |
object
|
✓ | ✓ | |
BTC
|
object
|
✓ | ✓ | |
enabled
|
boolean
|
✓ | ✓ | |
reason
|
string
|
✓ | ✓ | |
BCH
|
object
|
✓ | ✓ | |
enabled
|
boolean
|
✓ | ✓ | |
reason
|
string
|
✓ | ✓ | |
ETH
|
object
|
✓ | ✓ | |
enabled
|
boolean
|
✓ | ✓ | |
reason
|
string
|
✓ | ✓ | |
GUSD
|
object
|
✓ | ✓ | |
enabled
|
boolean
|
✓ | ✓ | |
reason
|
string
|
✓ | ✓ | |
PAX
|
object
|
✓ | ✓ | |
enabled
|
boolean
|
✓ | ✓ | |
reason
|
string
|
✓ | ✓ | |
BUSD
|
object
|
✓ | ✓ | |
enabled
|
boolean
|
✓ | ✓ | |
reason
|
string
|
✓ | ✓ | |
USDC
|
object
|
✓ | ✓ | |
enabled
|
boolean
|
✓ | ✓ | |
reason
|
string
|
✓ | ✓ | |
XRP
|
object
|
✓ | ✓ | |
enabled
|
boolean
|
✓ | ✓ | |
reason
|
string
|
✓ | ✓ | |
DOGE
|
object
|
✓ | ✓ | |
enabled
|
boolean
|
✓ | ✓ | |
reason
|
string
|
✓ | ✓ | |
LTC
|
object
|
✓ | ✓ | |
enabled
|
boolean
|
✓ | ✓ | |
reason
|
string
|
✓ | ✓ | |
APE
|
object
|
✓ | ✓ | |
enabled
|
boolean
|
✓ | ✓ | |
reason
|
string
|
✓ | ✓ | |
EUROC
|
object
|
✓ | ✓ | |
enabled
|
boolean
|
✓ | ✓ | |
reason
|
string
|
✓ | ✓ | |
MATIC
|
object
|
✓ | ✓ | |
enabled
|
boolean
|
✓ | ✓ | |
reason
|
string
|
✓ | ✓ | |
MATIC_e
|
object
|
✓ | ✓ | |
enabled
|
boolean
|
✓ | ✓ | |
reason
|
string
|
✓ | ✓ | |
ETH_m
|
object
|
✓ | ✓ | |
enabled
|
boolean
|
✓ | ✓ | |
reason
|
string
|
✓ | ✓ | |
USDC_m
|
object
|
✓ | ✓ | |
enabled
|
boolean
|
✓ | ✓ | |
reason
|
string
|
✓ | ✓ | |
BUSD_m
|
object
|
✓ | ✓ | |
enabled
|
boolean
|
✓ | ✓ | |
reason
|
string
|
✓ | ✓ | |
DAI_m
|
object
|
✓ | ✓ | |
enabled
|
boolean
|
✓ | ✓ | |
reason
|
string
|
✓ | ✓ | |
WBTC_m
|
object
|
✓ | ✓ | |
enabled
|
boolean
|
✓ | ✓ | |
reason
|
string
|
✓ | ✓ | |
SHIB_m
|
object
|
✓ | ✓ | |
enabled
|
boolean
|
✓ | ✓ | |
reason
|
string
|
✓ | ✓ | |
paymentCodes
The URIs for sending a transaction to the invoice. The first key is the transaction
currency. The transaction currency maps to an object containing the payment URIs. The key of this object is
the BIP number and the value is the payment URI.
|
object
|
✓ | ✓ | |
universalCodes
Object containing wallet-specific URLs for payment protocol.
|
object
|
✓ | ✓ | |
paymentString
Payment protocol URL for selected wallet, defaults to BitPay URL if no wallet selected.
|
string
|
✓ | ✓ | |
verificationLink
Link to bring user to BitPay ID flow, only present when bitpayIdRequired is true.
|
string
|
✓ | ✓ | |
token
invoice resource token. This token is derived from the API token initially used to
create the invoice and is tied to the specific resource id created.
|
string
|
✓ | ✓ |