DuevanceAPI documentation

Overview

What Duevance does, the hosts, ids, environments and money.

Duevance takes card payments for merchants through one JSON API. You send a charge; Duevance picks an acquirer, fails over between acquirers when that is provably safe, and tells you the outcome in the response and in webhooks.

Hosts

HostWhat it serves
https://api.duevance.comThe API (/v1/…) and acquirer callbacks
https://pay.duevance.comThe hosted payment page and the 3-D Secure pages buyers are sent to
https://dev.duevance.comThis documentation

Every request to the API is signed with your key's secret (see Authentication). There is one API host for both environments: the key decides.

Test and live

Every key belongs to one project and one environment:

  • dv_test_… keys work in test mode. Charges go to the fake acquirer, which answers by magic card numbers and amounts. No money moves.
  • dv_live_… keys work in live mode against real acquirers.

Objects never cross environments or projects: a test key can't see a live payment, and the reverse. Asking for an object of another project or environment answers 404, exactly as if it didn't exist.

Ids

Every object has a prefixed id that sorts by creation time:

PrefixObject
pay_Payment
ref_Refund
pm_Payment instrument (a stored card)
cs_Checkout session
whe_Webhook endpoint
evt_Event
key_API key (sent as dv_test_key_… or dv_live_key_…)

No sequential number ever appears in a response, a cursor or a URL.

Money

Amounts are integers in minor units of the currency: 1999 with EUR is 19.99 €, 500 with JPY is ¥500. A decimal such as 19.99 is refused with a 422, never rounded. Amounts run from 1 to 99 999 999.

Requests and responses

  • Bodies are JSON (Content-Type: application/json). Unknown fields are refused with a 422 naming the field, so a typo never passes silently.
  • Every string has a maximum length, given on each endpoint's page.
  • Timestamps are RFC 3339 in UTC, such as 2026-12-03T10:00:00Z.
  • Every error has the same envelope (see Errors).
  • Lists are paginated with opaque cursors (see Payments).

Next

Follow the quickstart to make a signed test charge in a few minutes.