Get payment challenge
Retrieve a payment's original MPP or L402 challenge without creating another invoice.
GET
/gateway/payments/{id}/challengeRequired permission: Gateway → Read.
Path parameters
idstringRequiredPayment ID returned by Create a payment. Use the same ID for status checks, challenge retrieval and credential validation.
Errors
| Status | Code | What to do |
|---|---|---|
401 | unauthorized | Check your API key and Gateway → Read permission. |
404 | gateway_payment_not_found | Use a payment ID created in the key's account. |
410 | payment_expired | Request a new payment if the unpaid challenge has expired. |
See Error handling for other errors.