For End Users
For Merchant Developers
Quick guide
Create an account, get a secret key, and make your first PaymentGateway API request.
Authentication
Authenticate API requests with a secret key — test or live mode, the X-Country header, key formats and authentication errors.
Core concepts
The resource model, identifiers, livemode, pagination, idempotency, the API version, expand, and multi-tenancy basics every integrator should know.
Errors
Error handling now lives in Setup → Errors.
API versions
The Paycose API is versioned by date. Each secret key and webhook endpoint is pinned to a version; today there is one, 2026-11-01.
Errors
The error body, error types and codes, the param field, request ids, retries and the live error catalog.
Pagination
Page through list endpoints with cursors, and narrow them with limit, filters, sorting and search.
Expand
Get related objects in the same response with expand[] — the syntax, nested paths, what each endpoint expands, and what happens with a bad path.
Idempotency
Retry POST requests safely with the Idempotency-Key header — how keys are matched, what is replayed, and the errors you can get.
Metadata
Attach your own key-value data to Paycose objects — where metadata is stored, how updates replace it, and the keys to avoid.
Account verification
Verify your account as an individual or a business before taking live payments.
Provider capability matrix
What each payment provider supports across the unified API — capture, refunds, disputes, settlement, and billing mode.
Webhook events by provider
Which webhook events each provider emits, which ones drive your payment state, and provider-specific caveats — starting with Stripe and Omise.
Charge events
What data you get for charge.created, charge.paid, charge.captured, charge.failed, charge.canceled, charge.expired, charge.refunded, and charge.requires_action.
Charge dispute events
What data you get for charge.dispute.created, .updated, .closed, .funds_withdrawn, and .funds_reinstated.
Checkout session events
What data you get for checkout.session.completed and checkout.session.expired.
Payment intent events
What data you get for payment_intent.succeeded, payment_intent.canceled and payment_intent.payment_failed.
Payment link events
What data you get for payment_link.created and payment_link.updated.
Refund events
What data you get for refund.created, refund.updated, and refund.failed.
Payout events
What data you get for payout.created, payout.approved, payout.pending, payout.sent, payout.paid, payout.canceled, and payout.failed.
Bank account events
What data you get for bank_account.created and bank_account.deleted.
Provider credential events
What data you get for provider.credentials_invalid and provider.credentials_restored.
Subscription events
What data you get for subscription.created, .updated, .resumed, .paused, .canceled, and .trial_will_end.
Subscription schedule events
subscription_schedule.* events are reserved for a future feature and not sent yet.
Invoice events
What data you get for invoice.created, .finalized, .finalization_failed, .sent, .paid, .payment_failed, .payment_action_required, .overdue, .updated, .uncollectible, .void, and .creditnote.updated.
Billing portal events
What data you get for billing_portal.configuration.created, .configuration.updated, and .session.created.
Credit note events
What data you get for credit_note.created, credit_note.issued, credit_note.applied, credit_note.voided, and credit_note.updated.
Customer events
What data you get for customer.created, .updated, .deleted, and customer.tax_id.created/.updated/.deleted.
Payment method events
What data you get for payment_method.created, payment_method.updated, and payment_method.deleted.
Product events
What data you get for product.created, product.updated, and product.deleted.
Price events
What data you get for price.created, price.updated, and price.deleted.
Coupon events
What data you get for coupon.created, coupon.updated, and coupon.deleted.
Promotion code events
What data you get for promotion_code.created, .updated, and .deleted.
Discount events
discount.applied and discount.removed are reserved and not sent yet.
Shipping rate events
What data you get for shipping_rate.created, .updated, and .deleted.
Tax rate events
What data you get for tax_rate.created and tax_rate.updated.
Quote events
What data you get for quote.created, quote.finalized, quote.accepted, and quote.canceled.
Checkout SDK
Checkout SDK
Embeddable checkout for React, Vue, Svelte, SvelteKit, Nuxt, Solid, Angular, Next.js, jQuery and vanilla JS — card entry stays inside a cross-origin iframe.
SDK Configuration
Reference for EmbeddedCheckoutConfig, EmbeddedCheckoutOptions, configure(), styles, and the SDK error types.
Payment Providers
How the SDK resolves a card provider per session, which providers are live, and the separate createProvider/registerProvider API registry.
Embed & Vanilla API
The no-bundler path — the CheckoutSDK script-tag global, the jQuery plugin, and the 3DS return contract.
Framework Adapters
React, Next.js, Vue, Nuxt, Svelte, SvelteKit, Solid, and Angular usage of EmbeddedCheckout.
API Reference
Accounts
13 endpoints
Balance transactions
2 endpoints
Charges
6 endpoints
Customers
6 endpoints
Disputes
4 endpoints
Payment intents
7 endpoints
Setup intents
2 endpoints
Payment methods
5 endpoints
Refunds
6 endpoints
Payouts
5 endpoints
Payout batches
7 endpoints
Bank accounts
4 endpoints
Bank codes
2 endpoints
Files
3 endpoints
Products
5 endpoints
Prices
6 endpoints
Coupons
5 endpoints
Promotion codes
6 endpoints
Tax rates
4 endpoints
Tax IDs
7 endpoints
Shipping rates
5 endpoints
Fees
4 endpoints
Checkouts
4 endpoints
Payment links
5 endpoints
Invoices
17 endpoints
Invoice line items
3 endpoints
Credit notes
5 endpoints
Quotes
12 endpoints
Receipts
2 endpoints
Subscriptions
13 endpoints
Meters
8 endpoints
Meter events
1 endpoint
Meter event adjustments
1 endpoint
Test clocks
8 endpoints
Billing portal
5 endpoints
Application fees
6 endpoints
Forex quotes
4 endpoints
Webhook endpoints
6 endpoints
Webhook events
1 endpoint
Countries
2 endpoints
Currencies
2 endpoints
Crypto deposit addresses
3 endpoints
Crypto deposits
2 endpoints
Crypto networks
1 endpoint
Crypto payout destinations
4 endpoints
Address
1 endpoint
Events
3 endpoints
Logos
1 endpoint
Radars
11 endpoints
Reviews
3 endpoints
Tax codes
2 endpoints
X402 facilitators
4 endpoints

