Retrieve a PaymentSession as a server
Use the SDK for application integration. This read-only reference covers Commerce, Customer Auth, Membership and Events.
All HTTP operationsPortOne retrieval performs provider-authoritative convergence and therefore requires write scope; read-only server credentials may retrieve Toss sessions only.
publishableKeyserverSecretKeyX-Publishable-Key<token>Tenant publishable key for authentication (sent via X-Publishable-Key header)
AuthorizationBearer <token>Public integration credential: opaque sk01_ secret API key only; PAT and Customer JWT are not supported by this scheme. Requires tenant binding and the read or write scope named by the operation.
Accept?"application/vnd.01software.portone-action-capabilities.v1+json"Opt in to Standard V2 action capability literals with this exact single media type. Lists, wildcards, parameters, and q-values do not opt in and receive the released exact action projection.
"application/vnd.01software.portone-action-capabilities.v1+json"application/json- body
paymentSessionId*string1 <= length <= 255Retrieve a PaymentSession as a server result
- response
id*string1 <= lengthmoney*expiresAt*|date-timeprovider*"toss""toss"providerStatus*string"requires_payment_method""requires_action"sessionRole*"active""active"presentationStatus*"actionable""actionable"finalizationStatus*"not_ready""not_ready"nextAction*reconciliation*order*|nullExamples may be generated from schemas; they are illustrative, not recorded successful API calls. Example snippets may omit required authentication headers.
curl -X POST 'https://api.01.software/api/payment-sessions/server/retrieve' \ -H 'Content-Type: application/json' \ -d '{ "paymentSessionId": "string"}'{ "id": "string", "money": { "amountMinor": 0, "currency": "string" }, "expiresAt": "2019-08-24T14:15:22Z", "provider": "toss", "providerStatus": "requires_payment_method", "sessionRole": "active", "presentationStatus": "actionable", "finalizationStatus": "not_ready", "nextAction": { "type": "toss_widget", "clientKey": "string", "paymentMethodVariantKey": "string", "agreementVariantKey": "string", "providerOrderId": "string", "providerCustomerKey": "string", "orderName": "string", "customerName": "string", "customerEmail": "user@example.com" }, "reconciliation": { "status": "none" }, "order": null}