Skip to main content
POST
/
payments
/
initiate
Initiate payment session
curl --request POST \
  --url https://admin.aeoliancms.com/api/v1/payments/initiate \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "items": [
    {
      "variantId": "<string>",
      "quantity": 2
    }
  ],
  "currency": "<string>"
}
'
{
  "processor": "stripe",
  "sessionId": "<string>",
  "publishableKey": "<string>",
  "amount": 123,
  "currency": "<string>",
  "breakdown": {
    "subtotal": 123,
    "shipping": 123,
    "tax": 123,
    "total": 123
  }
}

Authorizations

Authorization
string
header
required

API key in format ak_<48-hex-chars>

Body

application/json
items
object[]
required
currency
string
required

Response

Payment session created

processor
enum<string>
Available options:
stripe
sessionId
string
publishableKey
string
amount
integer

Amount in cents

currency
string
breakdown
object