Skip to content

Get Payment

Retrieve a single payment, including its linked license, product, and subscription.

GET /v1/payments/:id

Path Parameters

ParameterDescription
idPayment ID

Response

json
{
  "data": {
    "id": "pay_xxx",
    "licenseId": "lic_xxx",
    "subscriptionId": "sub_xxx",
    "amount": 99.00,
    "currency": "USD",
    "status": "completed",
    "paymentMethod": "stripe",
    "invoicePdfUrl": null,
    "customerEmail": "[email protected]",
    "stripePaymentIntentId": "pi_xxx",
    "stripeCheckoutSessionId": "cs_xxx",
    "polarOrderId": null,
    "createdAt": "2026-06-01T10:00:00Z",
    "license": {
      "id": "lic_xxx",
      "licenseKey": "MYPLUGIN-XXXX-XXXX-XXXX-XXXX",
      "status": "active",
      "customerEmail": "[email protected]"
    },
    "product": {
      "id": "prd_xxx",
      "name": "My Plugin"
    },
    "subscription": {
      "id": "sub_xxx",
      "status": "active",
      "planId": "plan_xxx",
      "currentPeriodEnd": "2027-06-01T10:00:00Z"
    }
  }
}

The license, product, and subscription objects are present only when the payment is linked to one.

Example

bash
curl -X GET "https://api.packedge.dev/v1/payments/pay_xxx" \
  -H "Authorization: Bearer pk_your_api_key"