Need help with your APIs? I offer API discovery, governance & evangelism services. Explore services →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Xendit Invoices API

Xendit-hosted invoices / payment links.

Xendit Invoices API is one of 8 APIs that Xendit publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include Invoices. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, and an API reference.

This API exposes 4 operations across 3 paths, and defines 3 schemas. It is described by OpenAPI 3.0.3, at version 1.0.

Requests are made against a single base URL, https://api.xendit.co.

4 operations 3 paths 3 schemas 2 GET2 POST

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.0.3
API Version
1.0
Base URL
https://api.xendit.co
Authentication
HTTP Basic
Contact
Resource Areas
1

Authentication & Security 1

Xendit Invoices API declares 1 security scheme for authenticating requests. It accepts HTTP basic authentication (basicAuth). By default, every request must be authenticated.

  • basicAuth — HTTP Basic authentication. Use your Xendit secret API key as the username and leave the password empty. The key is Base64-encoded into the Authorization header…

Paths & Operations 4

Across 3 paths, the API surfaces 4 operations — 2 GET, 2 POST. Each is listed below with its method, path, parameters, and response codes.

Invoices 4

Xendit-hosted invoices / payment links.

POST
/v2/invoices
Create an invoice
createInvoice body → 200400401
GET
/v2/invoices
List invoices
getInvoices 3 params → 200401
GET
/v2/invoices/{invoice_id}
Get an invoice
getInvoiceById 1 param → 200401404
POST
/invoices/{invoice_id}/expire!
Expire an invoice
expireInvoice 1 param → 200401404

Schemas 3

The contract defines 3 schemas that model the data the API accepts and returns. The most detailed are Invoice (10 properties), InvoiceInput (8 properties), Error (2 properties). Each schema is shown below with its type and property counts.

InvoiceInput
object
8 properties 2 required
Error
object
2 properties
Invoice
object
10 properties

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

xendit-invoices-api-openapi.yml Raw ↑

Other APIs Xendit publishes across the network.

Xendit Balance API
Xendit Customers API
Xendit Payment Requests API
Xendit Payment Tokens API
Xendit Payouts API
Xendit Refunds API
Xendit Transactions API