Product Classes
Use product classes to indicate the type of good or service. You also use them to add shipping information.
The product class is a field that you can add to your requests. It indicates whether your goods are physical or digital, or are for shipping or other charges.
Physical goods
For example, to specify a good as a physical good, you can add "product_class"="P"
, as follows:
"transaction_lines": [
{
"amount": 100,
"custom_id": "",
"ship_from_address": {
"country_code": "GB"
},
"description": "Product 1",
"product_class": "P",
"product_tax_code": {
"class": "TPP/Goods"
}
},
Digital goods
To specify a good as a digital good good, you can add "product_class"="D"
, as follows:
"transaction_lines": [
{
"amount": 100,
"custom_id": "",
"description": "Product 1",
"product_class": "D",
"product_tax_code": {
"class": "Digital"
}
},
More information about digital goods is provided in the Digital Goods topic.
Shipping
You can also model shipping charges for physical goods as explained in the Shipping and Other Charges topic.
Updated about 1 month ago