Activate payment
PaymentsAPI REFERENCE

Activate payment

POST/v1/payments/{paymentId}/activate

Public endpoint — no API key required.

Activate a payment (public, customer-facing)

Example request

A minimal request you can copy and run.

curl -X POST https://api.suward.com/v1/payments/<payment_id>/activate

Path Parameters

NameTypeRequiredDescription
paymentIdstringyesPayment ID

Response

NameTypeRequiredDescription
activatedAtintegernoUnix-milliseconds timestamp when the payment was activated. Null before activation.
activationFlowSecondsintegernoActivation grace period in seconds before the payment window starts counting. Null when not configured.
addressstringnoOn-chain deposit address the customer must send funds to. Null until the payment is activated and an address is assigned.
amountstringnoInteger string in the asset's smallest unit.
amountReceivedstringnoInteger string in the asset's smallest unit.
assetnoAsset the payment is denominated in, as an asset id-string (see GET /v1/assets). Null until an asset is selected.
createdAtintegernoUnix-milliseconds timestamp when the payment was created.
expiresAtintegernoUnix-milliseconds timestamp when the payment window closes; the payment expires if unpaid by then.
idstringnoUnique Suward identifier of the payment.
paymentWindowSecondsintegernoLength of the payment window in seconds — how long the payment stays open for funding once activated.
redirectnoResolved "return to store" redirect (base URL plus the query parameters to append) used to send the customer back after payment. Null when none was configured.
statusnoMain payment lifecycle status. See the status enum for the full meaning of each value.
subStatusnoFine-grained payment sub-status. See the sub-status enum for the full meaning of each value.
underpaymentTolerancestringnoInteger string in the asset's smallest unit.
updatedAtintegernoUnix-milliseconds timestamp when the payment was last updated.
paymentPageUrlstringnoAbsolute URL of the Suward-hosted checkout page where the customer pays this payment.
Response · JSON
{
"activatedAt": 0,
"activationFlowSeconds": 3600,
"address": "0xabc…def",
"amount": "100000000",
"amountReceived": "100000000",
"asset": "USDT_ETHEREUM",
"createdAt": 0,
"expiresAt": 0,
"id": "obj_abc123",
"paymentWindowSeconds": 3600,
"redirect": {},
"status": "pending",
"subStatus": "created",
"underpaymentTolerance": "0",
"updatedAt": 0,
"paymentPageUrl": "string"
}