Get a sandbox API key — one call, no API key needed

Returns a lun_test_ key in one call: no approval, no API key and no wallet. email is required: the e-mail of the person who will test. About a minute later, LuniumPay support sends that address one message with what LuniumPay is, the 3-step integration, the manual and PDF, the flowchart and VendaCripto (a ready-made app to buy or sell crypto with PIX, no integration). One message per address, with an unsubscribe link. Missing or invalid email: 400 email_obrigatorio (acao=corrigir, campo=email). All six financial journeys are simulated with fictitious funds using the normal endpoints. GET /sandbox returns the supported flows, scenario matrix and simulation controls. POST /sandbox/cashin/{cashin_id}/pay confirms a non-payable test charge. Cash-in, custody and payouts are durable; cash-out retention is two hours. Signed webhooks use the normal delivery pipeline with sandbox:true. No financial provider is called. Catalogs and prices are synthetic snapshots, not live quotes. See https://docs.luniumpay.com/sandbox .

post/keys/sandbox

Request

  • Base URL: https://api.luniumpay.com
  • URL: https://api.luniumpay.com/keys/sandbox
  • Auth: API key in header X-API-Key

Request body

emailstring email required

Required. E-mail of the person who will test, e.g. you@company.com. LuniumPay support sends this address one message with the integration guide (what LuniumPay is, the 3 steps, manual and PDF, flowchart, VendaCripto). One message per address, with an unsubscribe link.

namestring

Optional label to recognise the key later.

webhook_urlstring uri

Optional HTTPS webhook.

lead_tokenstring

Optional opaque token returned by consented POST /leads. Links this TEST key to the contact. Invalid or unavailable attribution never blocks key creation. Never put this token in a URL or log.

Response

Sandbox key created

api_keystring
sandboxtrue
gatilhosobject

The deterministic triggers, described above.

diferencas_para_producaostring[]

Example response

{
  "api_key": "lun_test_1df82296e3459819702c6a6087aab1c7"
}

Changes

No recorded changes to this operation across all 3 revisions of this API.