Multiple Goods

You may want to model multiple goods in a transaction.

To include more than one line item in a transaction, you need to add a transaction line for each good. Here is an example for a single good:

{
  transaction": {
			"currency_code": "EUR",
			"buyer_name": "Eric Papin",
			"ship_to_address": {
			"address_detail": "Palais de l'Élysée",
			"building_number": "55",
			"street_name": "Rue du Faubourg Saint-Honoré",
			"city": "Paris",
			"postal_code": "75008 ",
			"country_code": "FR"
			},
			"transaction_lines": [
			 {
				"product_class": "P",
				"quantity": 1,
				"description": "Oak smoked kippers (1kg)",
				"amount": "29.00",
				"custom_id": "51315A00-DC44-408E-A575-8CE42A32AE1B",
				"import_address": {
				"country_code": "FR"
				},
				"ship_from_address": {
						"address_detail": "Prickly Thistle Business Park",
						"street_name": "Orton Place",
						"city": "Glasgow",
				"postal_code": "G51 2HF",
				"country_code": "GB"
			},
			"product_cn_code": "0305420000"
    },
  ]
 }
}

Here is an example for multiple goods:

{
"transaction": {
		"currency_code": "EUR",
		"buyer_name": "Eric Papin",
		"ship_to_address": {
				"address_detail": "Palais de l'Élysée",
				"building_number": "55",
				"street_name": "Rue du Faubourg Saint-Honoré",
				"city": "Paris",
				"postal_code": "75008 ",
				"country_code": "FR"
				},
				"transaction_lines": [
				{
					"product_class": "P",
					"quantity": 2,
					"description": "Oak smoked kippers (1kg)",
					"amount": "29.00",
					"custom_id": "51315A00-DC44-408E-A575-8CE42A32AE1B",
					"import_address": {
					"country_code": "FR"
					},
					"ship_from_address": {
					"address_detail": "Prickly Thistle Business Park",
					"street_name": "Orton Place",
					"city": "Glasgow",
			"postal_code": "G51 2HF",
			"country_code": "GB"
		},
		"product_cn_code": "0305420000"
		},
	{
		"product_class": "P",
		"quantity": 1,
		"description": "Loch Lomond 18 Year Old Highland Single Malt Scotch Whisky (70cl)",
		"amount": "65.79",
		"custom_id": "24E6F0A5-4D39-41C1-9484-2197DD84EC2C",
		"import_address": {
		"country_code": "FR"
		},
		"ship_from_address": {
		"address_detail": "Prickly Thistle Business Park",
		"street_name": "Orton Place",
		"city": "Glasgow",
		"postal_code": "G51 2HF",
		"country_code": "GB"
},
"product_cn_code": "22083030000"
    },
  ]
 }
}