Php

One-Off Products

Vatly PHP SDK - One-Off Products

One-Off Products

One-off products are single-purchase items (not recurring subscriptions). Create and manage them in the Vatly dashboard, then use the API to retrieve them.

The One-Off Product Resource

Below you'll find all properties for the Vatly One-Off Product resource.

Properties

NameTypeDescription
idstringUnique identifier for the product (prod_...).
namestringDisplay name of the product.
description`stringnull`
amountintegerPrice in cents.
currencystringThree-letter ISO currency code.
testmodeboolWhether this is a test product.
statusstringThe status: approved, draft, or archived.
createdAtstringCreation timestamp (ISO 8601).

Retrieve a product

GET /v1/one-off-products/:id

Retrieve a one-off product by its ID.

$product = $vatly->oneOffProducts->get('prod_abc123');

echo $product->name;
echo $product->amount / 100 . ' ' . $product->currency;

List all products

GET /v1/one-off-products

Retrieve a paginated list of all one-off products.

Optional attributes

NameTypeDescription
limitintegerThe number of products to return (default: 10, max: 100).
startingAfterstringA cursor for pagination.
$products = $vatly->oneOffProducts->list();

foreach ($products as $product) {
    echo $product->name . ': ' . ($product->amount / 100) . ' ' . $product->currency;
}
Copyright © 2026