API overview

Overview of B2BINPAY DeFi REST API, authentication model, base URL, and response codes

The B2BINPAY DeFi API allows you to integrate B2BINPAY DeFi app features into your own systems.

You can manage accounts, create invoices, monitor transactions, and inspect callbacks using a unified REST interface.

circle-info

Before you start working with the B2BINPAY DeFi API, you need to generate API keys required for request authentication.

Refer to Configure a callback secret and API keys for step-by-step instructions.

circle-exclamation

General information

  • Base URL: https://api.defi.b2binpay.com/api/v1.

  • Format: All endpoints use JSON for requests and responses.

Required headers

  • x-api-key: {Your API key} — required for all endpoints.

  • Accept: application/json — required for all endpoints.

  • Content-Type: application/json — required for requests with a body.

HTTP response codes

  • 2xx — success (200 OK, 201 Created).

  • 400 — validation error (Invalid input).

  • 401Invalid or missing token or Invalid or expired token.

  • 403 — permission issues (for example, You are not a member of this account or deployment).

  • 404 — resource not found (transaction, invoice, account, etc.).

  • 409 — conflicts (for example, invoice with the same tracking ID already exists).

  • 503 — service unavailable (for example, failing health check).

Deployment ID

To obtain the deploymentId parameter value which is used in many API calls, use the GET [base]/api/v1/accounts/{accountId} method. Refer to Account methods for details.

Date-time values

All date-time values are specified as per ISO 8601-1:2019arrow-up-right, with milliseconds precision and timezone included: YYYY-MM-DDThh:mm:ss[.SSSSSS]±hh:mm.

Last updated

Was this helpful?