Initialize Payment Session
POST
/store/:storeCode/payment-collections/:id/payment-sessionsInitialize a payment session with a provider.
Path Parameters
storeCoderequiredstringStore slug in the URL (first argument to every SDK store method).
idrequiredstringPayment collection ID.
Query Parameters
fieldsstringComma-separated fields to include. Prefix with `*` to expand a relation (e.g. `id,*variants`).
Request Body
Schema
CopyHttpTypes.StoreInitializePaymentSession
Properties
provider_idrequiredstringPayment provider ID.
dataRecord<string, unknown>Provider-specific data.
contextRecord<string, unknown>Additional context for the provider.
Response
Status
200OK
Schema
CopyHttpTypes.StorePaymentCollectionResponse
Properties
payment_collectionrequiredStorePaymentCollectionPayment collection with the new session.