POST
/
api
/
v1
/
merchants
/
invoice
/
fetch
curl --request POST \
  --url https://payvra.com/api/v1/merchants/invoice/fetch \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "invoiceId": "<string>"
}'
{
  "id": "<string>",
  "merchantId": "<string>",
  "paymentUrl": "<string>",
  "status": "PENDING",
  "address": "<string>",
  "txHash": "<string>",
  "amount": 123,
  "amountCurrency": "<string>",
  "rate": 123,
  "payAmount": 123,
  "cryptoCurrency": {
    "symbol": "<string>"
  },
  "network": {
    "network": "<string>"
  },
  "feePaidByPayer": true,
  "underPaidCover": 123,
  "isWhiteLabel": true,
  "returnUrl": "<string>",
  "expiresAt": "2023-11-07T05:31:56Z",
  "createdAt": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
invoiceId
string
required

ID of the payment invoice to fetch

Response

200
application/json
Payment invoice retrieved successfully
id
string
merchantId
string
paymentUrl
string
status
enum<string>
Available options:
PENDING,
CONFIRMING,
UNDER_PAID,
PAID,
FAILED,
EXPIRED
address
string
txHash
string
amount
number
amountCurrency
string
rate
number
payAmount
number
cryptoCurrency
object
network
object
feePaidByPayer
boolean
underPaidCover
number
isWhiteLabel
boolean
returnUrl
string
expiresAt
string
createdAt
string