Billing
GET
https://shippified.net /api/billing/usage Current plan, this-month order usage, monthly cap, and reset timestamp.
Code samples
cURL
curl -X GET "https://shippified.net/api/billing/usage"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 OK
{
"ok": true,
"plan": "free",
"used": 0,
"cap": null,
"resetsAt": null,
"windowStart": "string",
"stripeConfigured": true,
"subscriptionStatus": "string",
"subscriptionPeriodEnd": "string",
"subscriptionPriceId": "string"
}POST
https://shippified.net /api/billing/checkout Create a Stripe Checkout session for upgrading to Pro. Returns a hosted URL.
Request body
application/json
planstring
required
successUrlstring
cancelUrlstring
{
"plan": "monthly",
"successUrl": "string",
"cancelUrl": "string"
}Code samples
cURL
curl -X POST "https://shippified.net/api/billing/checkout" \
-H "Content-Type: application/json" \
-d '{"plan":"monthly","successUrl":"string","cancelUrl":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Checkout URL.
{
"url": "string",
"sessionId": "string"
}503 Stripe is not configured on this deployment.
POST
https://shippified.net /api/billing/portal Create a Stripe Customer Portal session for managing the current subscription.
Request body
application/json
returnUrlstring
{
"returnUrl": "string"
}Code samples
cURL
curl -X POST "https://shippified.net/api/billing/portal" \
-H "Content-Type: application/json" \
-d '{"returnUrl":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Portal URL.
503 Stripe is not configured.
POST
https://shippified.net /api/webhooks/stripe Stripe webhook endpoint. Verified via STRIPE_WEBHOOK_SECRET. NOT for client use.
Code samples
cURL
curl -X POST "https://shippified.net/api/webhooks/stripe"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Event handled.
400 Signature verification failed.
Updated