Paycose

Wallet API Reference, enriched with practical guides.

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

API Reference