curl --request PATCH \
--url https://api.paygentic.io/v0/invoices/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"status": "pending"
}'
{
"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>"
}
Update an invoice status (e.g., mark as paid)
curl --request PATCH \
--url https://api.paygentic.io/v0/invoices/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"status": "pending"
}'
{
"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>"
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Unique identifier for an invoice
Invoice updated successfully
The response is of type object
.