skills/paystack-products/SKILL.md
Paystack Products API — create and manage product inventories on your integration. Track stock quantities, set pricing, and link products to payment pages. Use this skill whenever building e-commerce product catalogs, managing inventory with Paystack, creating shippable products, tracking stock levels and sold quantities, or adding products to payment pages. Also use when you see references to /product endpoint, PROD_ prefixed codes, product stock management, or product pricing in subunits.
npx skillsauth add rexedge/paystack paystack-productsInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
The Products API lets you create and manage product inventories on your integration.
Depends on: paystack-setup for the
paystackRequesthelper.
Related: paystack-payment-pages for adding products to hosted pages.
| Method | Endpoint | Description |
| --- | --- | --- |
| POST | /product | Create a product |
| GET | /product | List products |
| GET | /product/:id | Fetch a product |
| PUT | /product/:id | Update a product |
| Param | Type | Required | Description |
| --- | --- | --- | --- |
| name | string | Yes | Product name |
| description | string | Yes | Product description |
| price | integer | Yes | Price in subunits (kobo/pesewas) |
| currency | string | Yes | Currency code |
| unlimited | boolean | No | true for unlimited stock (default: false) |
| quantity | integer | No | Stock count (when unlimited is false) |
const product = await paystackRequest<{
product_code: string;
slug: string;
id: number;
}>("/product", {
method: "POST",
body: JSON.stringify({
name: "Wireless Headphones",
description: "Premium noise-cancelling wireless headphones",
price: 2500000, // ₦25,000
currency: "NGN",
unlimited: false,
quantity: 50,
}),
});
// product.data.product_code → "PROD_ddot3upakgl3ejt"
const products = await paystackRequest("/product?perPage=20&page=1");
// Each product includes:
// - id, name, description, product_code, slug
// - currency, price, quantity, quantity_sold
// - active, in_stock, unlimited
const product = await paystackRequest(`/product/${productId}`);
await paystackRequest(`/product/${productId}`, {
method: "PUT",
body: JSON.stringify({
name: "Wireless Headphones Pro",
description: "Updated premium headphones",
price: 3000000,
currency: "NGN",
unlimited: false,
quantity: 100,
}),
});
// 1. Create products
const headphones = await paystackRequest("/product", {
method: "POST",
body: JSON.stringify({
name: "Headphones",
description: "Wireless headphones",
price: 2500000,
currency: "NGN",
quantity: 50,
}),
});
const case_ = await paystackRequest("/product", {
method: "POST",
body: JSON.stringify({
name: "Headphone Case",
description: "Protective carrying case",
price: 500000,
currency: "NGN",
quantity: 100,
}),
});
// 2. Create a product payment page
const page = await paystackRequest("/page", {
method: "POST",
body: JSON.stringify({
name: "Audio Shop",
type: "product",
description: "Premium audio equipment",
}),
});
// 3. Add products to the page
await paystackRequest(`/page/${page.data.id}/product`, {
method: "POST",
body: JSON.stringify({
product: [headphones.data.id, case_.data.id],
}),
});
// Page available at: https://paystack.com/pay/{slug}
development
Paystack webhook integration — signature validation with HMAC SHA512, event parsing, IP whitelisting, retry policy, and all supported event types. Use this skill whenever setting up a webhook endpoint for Paystack, validating x-paystack-signature headers, handling charge.success or transfer.success events, debugging webhook delivery failures, implementing idempotent event processing, or building any server-side Paystack event listener. Also use when encountering webhook timeout issues or needing the list of Paystack webhook IP addresses.
tools
Paystack Verification API — KYC verification tools for resolving bank accounts, validating account ownership, and looking up card BIN information. Use this skill whenever verifying bank account details before transfers, confirming account holder names, validating customer identity for compliance, looking up card brand/type/bank from BIN, or implementing KYC flows. Also use when you see references to /bank/resolve, /bank/validate, /decision/bin endpoints, or need to match account numbers to names.
development
Paystack Transfers API — send money to bank accounts and mobile wallets. Initiate single and bulk transfers, finalize OTP-verified transfers, list, fetch, and verify transfer status. Use this skill whenever implementing payouts, disbursements, vendor payments, withdrawal flows, or any feature that sends money from your Paystack balance to recipients. Also use when you see references to transfer_code, TRF_ prefixed codes, the /transfer endpoint, or need to handle transfer OTP verification.
development
Paystack Transfer Recipients API — create, list, fetch, update, and delete transfer recipients (beneficiaries) for payouts. Supports NUBAN (Nigeria), GHIPSS (Ghana), Mobile Money, BASA (South Africa), and authorization-based recipients. Use this skill whenever adding bank accounts or mobile wallets as payout destinations, creating transfer recipients before initiating transfers, managing beneficiary lists, or doing bulk recipient creation. Also use when you see references to recipient_code, RCP_ prefixed codes, or the /transferrecipient endpoint.