nodana

Validate a payment

Validate a customer's payment credential before serving a paid operation.

POST/gateway/payments/{id}/validate

Required permission: Gateway → Write.

Path parameters

idstringRequired

Payment ID returned by Create a payment. Use the same ID for status checks, challenge retrieval and credential validation.

Body parameters

credentialstringRequired

The full value of the customer's payment Authorization header. Send it in the JSON body; the request's bearer header contains your Nodana API key.

Use the original payment ID as {id} in the path. The payment retains its protocol. Send the customer's credential in the JSON body; the bearer header contains your Nodana API key.

Errors

StatusCodeWhat to do
400invalid_payment_credentialForward the full payment credential for the matching payment.
401unauthorizedCheck your API key and gateway permissions.
404gateway_payment_not_foundUse a payment ID created in the key's account.
410payment_expiredRequest a new payment if the unpaid challenge has expired.

To retrieve the original challenge, use Get payment challenge.

See Accept payments for the complete integration flow and Error handling for other errors.