Get product

Get a product by the system product ID

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

Get a product by the system product identifier, which is the integer id or system identifier of the product object.

To create an order for this product, in the order object of the request body, set this value as the product_id.

When you perform a GET request for a product object, the response object contains the attributes as described here.

The URLs in the examples in API documentation contain the {env} variable. Replace this variable with test for the test environment and app for the production environment.

General attributes

AttributeDescription
idThe unique system ID of the product.
product_idThe merchant's identifier for the product.
product_typeOne of single_payment, instalment, subscription, or metered.
product_statusIf the product is active, you can use it in orders. The other option is inactive.
lock_priceIf true, the pricing cannot be changed in orders. Defaults to false.
discount.percentageIf the product has a percentage discount, this attribute is present and it is the percentage discount.
discount.amountIf the product has a discount amount, this attribute is present and it is the discount amount.

Single payment product

These are the specific attributes to note for a single-payment product.

AttributeDescription
product_typeFor a single-payment product, this is single_payment.
lock_payment_configThis attribute is not used for single_payment products.

Instalment product

These are the specific attributes to note for an instalment product.

AttributeDescription
product_typeThe product type is instalment.
lock_payment_configIf true, the user cannot change the instalment payments configuration in the order.
scheduled_intervalFrequency of the payments in scheduled units.
scheduled_durationThe number of instalment payments. BillPro subtracts the deposit amount from the total and splits the balance into this number of instalment payments.
scheduled_unitThe period unit of the instalment payments, such as MONTH.
deposit_amountThe amount of the initial payment. This can be 0 if there is no deposit. In this case, BillPro registers the customer's card.

Subscription product

These are the specific attributes to note for a subscription product.

AttributeDescription
product_typeThe product type is subscription.
lock_payment_configIf true, the user cannot change the subscription interval in the order.
scheduled_intervalFrequency of the subscription in scheduled units.
scheduled_unitThe period unit of the subscription, such as MONTH.
fee_for_initial_payment_onlyIf true, the fee applies to the initial payment only.
discount_for_initial_payment_onlyIf true, the discount applies to the initial payment only.
deposit_amountThe amount of the initial payment.

Metered product

The attributes in the following table are the most relevant to a metered product.

AttributeDescription
product_typeThe product type is metered.
lock_payment_configThis attribute is not used for metered products.
scheduled_intervalThis attribute is empty for metered products.
scheduled_unitThis attribute is always set to MONTH for metered products but it is not used.
Path Params
int32
required

The system created identifier of the product to display

Query Params
int32

If you have more than one profile, you must supply the ID of the profile to use

Responses

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json