Add
This endpoint allows you to create products. You can specify details such as category, name, price, currency, VAT type, and additional product information. The product will be added to your catalog and can be used in transactions, recurring payments, Invoice+, etc.
POST
https://restapidev.payplus.co.il/api/v1.0/Products/Addסביבה
כותרות (Headers)
stringחובה
API Key
stringחובה
Secret Key
גוף הבקשה
| שדה | סוג | תיאור |
|---|---|---|
nameחובה | string | Product name. This is a required field and should be unique for each product for better identification. |
priceחובה | integer (int) | Sell price |
valid | boolean | Sets if the product is valid or not. If set to false, the product will not be available accross the system. |
value | string | Cost price |
barcode | string | Barcode of the product. This is an optional field, but it can be used to identify the product in a more convenient way. |
vat_typeחובה | integer (int) | 0 - VAT Included 1 - VAT Not Included 2 - VAT Exempt |
description | string | Product description, can be used for additional information about the product. |
category_uids | string[] | Array of strings, each string is a different category_uid. This allows you to assign your product to multiple categories. If not set, the product will be assigned to system's default category. |
currency_codeחובה | string | |
guide_document_url | string | Mostly used for invoies to send manual docmentation of a product when customer buying product |
percentage_discount | integer (flout) | Percentage discount for the product. This is a discount that will be applied to the product price as a percentage. |
fixed_amount_discount | integer (flout) | Fixed amount discount for the product. This is a discount that will be applied to the product price. |