billing
Sync After Checkout
Sync subscription data after successful checkout. Call this from the success page.
post/billing/sync-after-checkout
Request
- Base URL: https://api.aiapplyd.com/api/v1
- URL: https://api.aiapplyd.com/api/v1/billing/sync-after-checkout
- Auth: HTTP bearer
Response
Sync completed
Example response
{
"data": {
"amountCents": 999,
"subscription": {
"cancelAt": "2025-02-01T00:00:00.000Z",
"canceledAt": "2025-01-15T00:00:00.000Z",
"currentPeriodEnd": "2025-02-01T00:00:00.000Z",
"currentPeriodStart": "2025-01-01T00:00:00.000Z",
"interval": "month",
"planName": "Hired in 30",
"planTier": "hired_in_30",
"priceId": "price_1234567890",
"productName": "Hired in 30",
"status": "active",
"subscriptionId": "sub_1234567890",
"tokensPerPeriod": 2800000
},
"synced": true,
"tokensAdded": 50000,
"tokensBalance": 100000
},
"meta": {
"duration": 150,
"requestId": "req_abc123",
"timestamp": "2026-10-13T10:27:20.268Z",
"version": "v1"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.