# Create Payee Address Source: https://docs.paywint.com/api-reference/payees/address/create-address POST /api/user-api/address/payee/create Create an address record for a payee. An address represents a location associated with a payee and may be used across multiple Paywint services. This endpoint allows you to: - Store billing or delivery address details - Support paywint card issuance workflows - Associate a location with future payment products - Maintain structured address records - Designate a primary (default) address A payee may have multiple addresses, but only one can be marked as default. # Delete Payee Address Source: https://docs.paywint.com/api-reference/payees/address/delete-address DELETE /api/user-api/address/payee/delete Delete an address associated with a payee. This endpoint allows you to: - Remove outdated or invalid location records - Maintain clean beneficiary records - Prevent incorrect billing or fulfillment usage - Promote another address as default if required If the deleted address was marked as default, another saved address may automatically be promoted. # Get Payee Address Source: https://docs.paywint.com/api-reference/payees/address/get-address POST /api/user-api/address/payee/get Retrieve a specific address associated with a payee. This endpoint allows you to: - Confirm billing or location information - Validate address details before issuing a paywint card - Display stored address data in your system - Verify default address status # List Payee Address Source: https://docs.paywint.com/api-reference/payees/address/list-address GET /api/user-api/address/payee/list/{payee_id} Retrieve all addresses saved for a payee. This endpoint allows you to: - Display multiple billing or location records - Support selection of address during product issuance - Review default and alternate addresses - Maintain complete and organized payee records - Prepare for future Paywint services tied to address data # Overview Source: https://docs.paywint.com/api-reference/payees/address/overview Manage address records associated with a payee. The **Payee Address API** allows you to create and manage address records associated with an existing payee. A payee address represents the physical mailing or address linked to a recipient identity. Payee records must exist before an address can be attached. *** ## What This API Provides The Payee Address API enables your integration to: * Add an address to an existing payee * Retrieve a stored payee address * Update address details * Delete an address when it is no longer valid All address fields should follow standard US postal formatting when applicable. *** ## Available APIs Attach a new address to an existing payee. Retrieve all addresses associated with a payee. Retrieve a specific address by ID. Modify an existing address record. Mark an address as the default address for the payee. Remove an address from a payee. *** ## Typical Integration Flow Create the payee using the Payee API before attaching an address. Call [Create Payee Address](/api-reference/payees/address/create-address) with properly formatted address fields. Update address details if the recipient relocates or information changes. Delete addresses that are no longer valid. *** ## Best Practices * Store state values using two-letter abbreviations (example: `CA`, `NY`, `TX`). * Use ISO country codes (example: `US`). * Validate ZIP codes before submission. * Avoid storing multiple conflicting addresses for the same payee unless required by your business logic. # Set Default Payee Address Source: https://docs.paywint.com/api-reference/payees/address/set-default-address PUT /api/user-api/address/payee/set-default Designate an address as the default for a payee. The default address may be used for: - Paywint card billing purposes - Card issuance - Primary delivery handling - Default compliance reference This endpoint allows you to: - Change the primary address - Ensure consistent operational processing - Override previous default settings Only one address per payee may be designated as default at any time. # Update Payee Address Source: https://docs.paywint.com/api-reference/payees/address/update-address PATCH /api/user-api/address/payee/update Update an existing address associated with a payee. This endpoint allows you to: - Modify billing or location details - Correct street, city, state, or ZIP code - Keep records aligned with compliance requirements - Update default designation if needed - Maintain accurate location data for Paywint services # Create Payee Source: https://docs.paywint.com/api-reference/payees/create POST /api/user-api/payee/create Creates a new payee under your account. This endpoint allows you to: - Register a payout recipient before initiating transfers - Store payee information for repeat payments - Save recipients for future payouts - Organize and manage payout beneficiaries # Delete Payee Source: https://docs.paywint.com/api-reference/payees/delete DELETE /api/user-api/payee/delete/{payee_id} Delete a payee from your account. This endpoint allows you to: - Remove inactive or outdated beneficiaries - Maintain clean payout records - Prevent additional transfers to that payee - Reduce operational and compliance risk Once deleted, the payee cannot be used for future payouts unless recreated. # Get Payee Source: https://docs.paywint.com/api-reference/payees/get GET /api/user-api/payee/get/{payee_id} Retrieve a specific payee saved under your account. This endpoint allows you to: - Confirm payee details before sending funds - Validate recipient information for compliance - Display beneficiary information in your system # List Payees Source: https://docs.paywint.com/api-reference/payees/list GET /api/user-api/payee/list Retrieve all payees saved under your account. This endpoint allows you to: - Display all payout recipients - Review and manage beneficiary records - Audit previously added payees # Overview Source: https://docs.paywint.com/api-reference/payees/overview Create and manage reusable payee records for a specific user through the Paywint Developer API. The **Payee Management API** allows you to create and manage reusable recipient records for a specific Paywint user. A **payee** represents the recipient identity referenced during payment creation.\ This API manages recipient records. *** ## What This API Provides The Payee API enables your integration to: * Create a reusable payee tied to a specific user * Store at least one verified contact method (email or phone with country code) * Retrieve a payee by ID * List all payees associated with a user (paginated) * Update payee details * Delete unused payees Each payee must include: * `name` (recipient display name) * At least one contact method An optional `metadata` field may be used to store application-specific reference data. *** ## Available APIs Register a new payee before initiating a payment. Modify the payee name or associated metadata. Retrieve a specific payee by ID. Retrieve all payees associated with a user. Remove an existing payee record. *** ## Typical Integration Flow Call [Create Payee](/api-reference/payees/create) with the user ID, name, and contact details. Persist the returned `payee_id` in your system for future transactions. Provide the `payee_id` when calling payment endpoints. Update or delete payees as recipient information changes. *** ## Best Practices * Validate email and phone format before submission. * Avoid creating duplicate payees when an existing record can be reused. # Update Payee Name Source: https://docs.paywint.com/api-reference/payees/update PUT /api/user-api/payee/update Update the display name of an existing payee. This endpoint allows you to: - Correct a payee’s name - Align beneficiary records with accounting systems Only the stored payee name is updated. The payee identity remains unchanged. # Create Checkout SDK Token Source: https://docs.paywint.com/api-reference/payment/checkout/create-checkout-token POST /api/checkout/token/developer Generates a short-lived, tamper-proof checkout token for initializing Paywint Inline Checkout. This endpoint performs the following actions: - Authenticates the developer using `X-Api-Key` and `X-Api-Secret` - Resolves or creates a per-initiator signing secret - Issues a signed checkout token embedding initiator and payer context - Returns the token and its expiry for use by the frontend SDK The returned token must be supplied on all SDK-facing calls as: # Create Payment Link Source: https://docs.paywint.com/api-reference/payment/checkout/create-payment-link POST /api/user-api/payment/create-payment-link Generates a secure payment link to collect wallet-based payments from customers or external users. This endpoint: - Creates a new pending payment request for the user - Provides a shareable URL that can be sent to others for payment collection - Returns the generated payment ID and link # Inline Checkout SDK Source: https://docs.paywint.com/api-reference/payment/checkout/inline-checkout-sdk Embed Paywint Inline Checkout directly in your application. The Paywint Inline Checkout SDK renders a managed checkout component inside your page. Your backend creates a short-lived [checkout token](/api-reference/payment/checkout/create-checkout-token), then your frontend passes that token to the SDK with the payment configuration. ## Load the SDK Load the Paywint Checkout SDK and initialize the checkout mount point. ```html theme={null}
``` Replace `https://YOUR_PAYWINT_SDK_HOST/checkout.js` with the checkout SDK URL provided for your environment. | Environment | Checkout.js URL | | ------------ | ------------------------------------------------ | | `Production` | `https://script.paywint.com/checkout.js` | | `Sandbox` | `https://sandbox.script.paywint.com/checkout.js` | ## Configuration Pass the configuration object as the second argument to `init(selector, config, eventsCB)`. | Field | Type | Required | Description | | -------------------- | ------------------ | ----------- | ---------------------------------------------------------------------------------------- | | `token` | `string` | Yes | Checkout token created by your backend. | | `payOptions` | `string[]` | Yes | Payment methods to show. Supported values include `card` and `wallet`. | | `amount` | `number` | Yes | Payment amount. The SDK validates that this matches the token context. | | `currency` | `string` | Recommended | ISO currency code, for example `USD`. | | `invoice_number` | `string` | Optional | Your invoice or order reference. | | `description` | `string` | Optional | Description shown in checkout and returned in events where applicable. | | `hide_submit_button` | `boolean \| null` | Optional | Set to `true` when you want to submit from your own host button using `triggerSubmit()`. | | `style` | `object \| string` | Optional | CSS variable overrides for the checkout component. | ## Payer Address Use `updatePayorAddress()` after `init()` resolves. You can call it again whenever the payer edits their billing address in your host page. ```js theme={null} pwCheckout.updatePayorAddress({ payer_first_name: "Jane", payer_last_name: "Doe", payer_address_line_1: "123 Main Street", payer_city: "New York", payer_state: "NY", payer_zip: "10001", payer_country: "US" }); ``` ## Custom Submit Button If your integration hides the SDK submit button, call `triggerSubmit()` from your own button after `init()` completes. ```js theme={null} document.getElementById("host-submit-button")?.addEventListener("click", () => { pwCheckout.triggerSubmit(); }); ``` ## Events Pass an event callback as the third argument to `init()`. The SDK calls this function as checkout state changes. ```js theme={null} pwCheckout.init("#checkout-root", pwCheckoutConfig, (event) => { console.log(event.event, event.message, event.data); }); ``` Common event payloads include an `event` name, a human-readable `message`, and optional `data` for the payment or verification step. ## Styling The `style` configuration accepts an object of CSS variable overrides. Keys may be provided with or without the leading `--`. ```js theme={null} style: { "pw-border-color": "#d9e6f4", "pw-border-width": "2px", "pw-active-border-color": "#025865", "pw-disabled-border-color": "#f8fff0", "pw-disabled-opacity": "0.5", "pw-background-color": "#ffffff", "pw-text-color": "#1e293b", "pw-input-label-text-color": "#1e293b", "pw-subtext-text-color": "#64748b", "pw-muted-background-color": "rgb(127 127 127 / 0.12)", "pw-error-text-color": "#ff5757", "pw-success-surface-start-background-color": "#f0fdf4", "pw-success-surface-end-background-color": "#dcfce7", "pw-success-icon-background-color": "#dcfce7", "pw-success-icon-color": "#16a34a", "pw-success-text-color": "#16a34a", "pw-input-border-color": "1px solid #cbd5e1", "pw-input-radius": "8px", "pw-input-height": "40px", "pw-input-font-size": "18px", "pw-input-background-color": "#ffffff", "pw-submit-button-background-color": "#000000", "pw-submit-button-text-color": "#ffffff", "pw-submit-button-radius": "8px", "pw-file-upload-background-color": "#ffffff", "pw-file-upload-text-color": "#000000", "pw-file-upload-button-radius": "8px", "pw-file-upload-button-height": "44px", "pw-file-upload-border-color": "#000000", "pw-file-upload-border-width": "2px", "pw-file-upload-border-style": "dotted", "pw-checkout-font": "Inter, sans-serif", "pw-otp-gap": "10px", "pw-otp-width": "50px", "pw-otp-height": "40px", "pw-otp-font-size": "18px", "pw-otp-border-color": "1px solid #cbd5e1", "pw-otp-radius": "8px", "pw-otp-background-color": "#ffffff", "pw-otp-text-color": "#1e293b", "pw-otp-placeholder-text-color": "#94a3b8", "pw-otp-focus-border-color": "#025865" } ``` When `pw-checkout-font` is provided, the SDK does not load its default Inter font stylesheet. Load your custom font on the host page if the font is not already available. ## SDK Methods | Method | Description | | ---------------------------------- | -------------------------------------------------------------------------------------------------------------------- | | `init(selector, config, eventsCB)` | Mounts checkout into an element matching the selector. The selector must be an ID selector such as `#checkout-root`. | | `updatePayorAddress(address)` | Updates payer billing address data after checkout has initialized. | | `triggerSubmit()` | Programmatically submits checkout. Use this for host-controlled submit buttons. | # Overview Source: https://docs.paywint.com/api-reference/payment/checkout/overview Securely accept payments online. Use a prebuilt checkout page to start accepting online payments. Embed the Paywint checkout inside your website using an iFrame.\ This option keeps customers inside your UI while Paywint handles all sensitive data and compliance. Embedded checkout form Your backend calls [Create Payment Link](/api-reference/payment/checkout/create-payment-link) with the amount and payer information. Paywint returns a payment\_link URL representing the checkout session. You load the payment\_link inside an \