cURL
curl --request POST \ --url https://sandbox-api.billingrails.com/v1/products \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "name": "<string>", "code": "<string>", "sku": "<string>", "status": "active", "model": "<string>", "currency": "<string>", "amount": 1, "description": "<string>", "image_url": "<string>" }'
{ "product": { "object": "product", "id": "prod_IhMUl3rrZ3", "created_at": "2025-02-14T17:33:40.843Z", "status": "active", "name": "Premium Plan", "code": "premium_plan", "sku": "PREM-001", "description": "Premium subscription plan", "vendor": "Billingrails", "model": "subscription", "currency": "NGN", "amount": 5000, "image_url": "https://example.com/premium.jpg" } }
Creates a product.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Product payload
The body is of type object.
object
Product created
The response is of type object.