Create order
POST
https://apisandbox.younium.com/v1/order
Below is an example of creating an order in Younium. Account number is used as the key for account lookup.
The example will add two products to the order. The first with product number P-000001, using the charge plan named Standard. Also, the quantity of the charge named Monthly Fee will be set to 5. The second product that will be added is the product with product number P-000002 using the default settings for the product:
{
account: {
key: 'accountNumber',
accountNumber: 'A-000001'
},
effectiveStartDate: '2019-03-01',
products: [
{
key: 'productNumber',
productNumber: 'P-000001',
chargeplan: {
key: 'name',
name: 'Standard'
},
charges: [
{
key: 'name',
name: 'Monthly Fee',
quantity: 5
}]
},
{
key: 'productNumber',
productNumber: 'P-000002'
}
]
}