Sandbox
Simulate a deposit (sandbox only)
Changed onThe only way to originate a pay-in from the client side. It runs the real pipeline: detection, attribution, events, screening, conversion and crediting.
Exists on the sandbox host only. On production the path returns 404 not_found.
Idempotency-Key is required, exactly as on any other POST.
Fires the full event sequence for a pay-in. See Webhooks and events.
post/v1/test/customers/{customerId}/deposits/simulate
Request
- Base URLhttps://api.sandbox.alfredpay.io
- URLhttps://api.sandbox.alfredpay.io/v1/test/customers/{customerId}/deposits/simulate
- Auth
- HTTP bearer
- or API key in header api-key and API key in header api-secret
Headers
Idempotency-Keystring uuid required
Required on every state-changing POST, simulators included; the only exempt POST is …/verifications/preflight. Replay (same key, same body) returns the original response with Idempotent-Replayed: true; same key with a different body → 409 idempotency_conflict. Keys are UUIDs, scoped to the API key, retained for 24 hours.
Request body
Example request
{
"amount": {
"value": "10000.00"
}
}Response
Accepted
Example response
{
"amount": {
"value": "10000.00"
},
"amounts": {
"gross": {
"value": "10000.00"
},
"net_credited": {
"value": "10000.00"
}
},
"converted": {
"developerFee": {
"value": "10000.00"
}
}
}Changes
- info
endpoint added
- info