GET
/
invoices
/
{id}
Get an invoice
curl --request GET \
  --url https://api.paygentic.io/v0/invoices/{id} \
  --header 'Authorization: Bearer <token>'
{
  "id": "<string>",
  "object": "invoice",
  "subscriptionId": "<string>",
  "merchantId": "<string>",
  "customerId": "<string>",
  "amount": 123,
  "currency": "<string>",
  "status": "pending",
  "invoiceNumber": "<string>",
  "description": "<string>",
  "metadata": {},
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z",
  "paidAt": "2023-11-07T05:31:56Z",
  "transactionId": "<string>"
}

Authorizations

Authorization
string
header
required

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

Path Parameters

id
string
required

Unique identifier for an invoice

Response

200
application/json

Invoice details

The response is of type object.