Cancelar
Cancelar un artículo
Esta sección presenta un ejemplo de cómo el Cancelar servicio cancela un artículo.
Orden de piezas creada
Supongamos que el pedido de piezas presentado a continuación fue creado.
El pedido contiene 8 líneas de artículos, y su estado es en progreso. Esto significa que cualquier línea de artículo puede ser cancelada.
{
"pac_order_id": "051MX1Ie7kw9jR0dwDIo5G",
"sales_order_no": "1030383077",
"creation_date": "2023-07-18T20:56:02Z",
"dealer_po_no": "PO TEST",
"dealer_no": "0000702933",
"order_type": "regular",
"shipping_carrier": {
"shipping_condition": "S0",
"shipping_condition_descr": "Régulier terrestre"
},
"payment_terms": "F030",
"payment_terms_descr": "Fin. (PA&A) - Net 30 Jours",
"partners": [
{
"type": "BP",
"no": "0000702933",
"name": "PERFORMANCE NC - GRANBY",
"address": {
"street": "125 PIERRE-PARADIS",
"city": "ST-ALPHONSE DE GRANBY",
"state": "QC",
"country": "CA",
"postal_code": "J0E 2A0"
}
},
{
"type": "SH",
"no": "0000702933",
"name": "PERFORMANCE NC - GRANBY",
"address": {
"street": "125 PIERRE-PARADIS",
"city": "ST-ALPHONSE DE GRANBY",
"state": "QC",
"country": "CA",
"postal_code": "J0E 2A0"
}
}
],
"pricings": [
{
"condition_type": "gross_amt",
"total_amount": "2686.29",
"currency": "CAD"
},
{
"condition_type": "tax_amt",
"total_amount": "405.27",
"currency": "CAD"
},
{
"condition_type": "subtotal_amt",
"total_amount": "2706.31",
"currency": "CAD"
},
{
"condition_type": "surcharge_amt",
"total_amount": "20.02",
"currency": "CAD"
}
],
"header_texts": [
{
"code": "shipping_instruction",
"descr": "Delivery at door 245"
}
],
"header_statuses": [
{
"type": "success",
"code": "in_process",
"descr": "Votre commande est en cours de traitement"
},
{
"type": "warning",
"code": "",
"descr": "Porter une attention spéciale au statut de certaines pièces"
},
{
"type": "warning",
"code": "",
"descr": "Si votre commande est bloquée, pour info supplémentaire ouvrir un cas"
}
],
"items": [
{
"ordered_line": {
"item_id": "0050568414A81EEE89B5B027E8D4F215",
"item_no": "000100",
"product_code": "250300016",
"product_descr": "GOUJON_SPHÉRIQUE M5 X 15",
"order_qty": 1,
"dealer_po_item_no": "A-0010",
"dealer_product_code": "BRP-250300016",
"sales_uom": "PC",
"min_order_qty": 1,
"is_sales_bom": false,
"product_line": "PWC",
"product_type": "30",
"texts": [
{
"code": "memo_field",
"descr": "Multi valid"
}
]
},
"shipping_lines": [
{
"item_no": "000101",
"product_code": "250300016",
"product_descr": "GOUJON_SPHÉRIQUE M5 X 15",
"ship_qty": 1,
"sales_uom": "PC",
"price_uom": "PC",
"package_uom": "PC",
"in_package": {
"qty": 1,
"uom": "PC"
},
"package_count": 1,
"msrp_unit_price": 12.99,
"wholesale_unit_price": 7.79,
"net_unit_price": 7.79,
"currency": "CAD",
"is_substitute_product": false,
"substituted_product_code": null,
"product_line": "PWC",
"product_type": "30",
"plant": {
"name": "BRP - SAINT-JEAN-SUR-RICHELIEU",
"city": "ST-JEAN-SUR-RICHELIEU",
"state": "QC",
"country": "CA"
},
"pricings": [
{
"condition_type": "gross_amt",
"total_amount": 7.79,
"currency": "CAD"
},
{
"condition_type": "tax_amt",
"total_amount": 1.17,
"currency": "CAD"
},
{
"condition_type": "subtotal_amt",
"total_amount": 7.79,
"currency": "CAD"
}
],
"deliveries": [
{
"status_code": "allocated",
"status_date": "2023-07-18T16:56:21Z",
"status_descr": "",
"qty": 1,
"availability_date": "2023-07-20",
"no": "",
"item_no": "",
"delivery_qty": 0,
"creation_date": null,
"carrier_name": "",
"billings": []
}
],
"statuses": [
{
"type": "success",
"code": "in_process",
"descr": "Votre pièce est en cours de traitement"
}
]
}
]
},
{
"ordered_line": {
"item_id": "0050568414A81EEE89B5B050CD53B21B",
"item_no": "000200",
"product_code": "420430408",
"product_descr": "JOINT TORIQUE",
"order_qty": 1,
"dealer_po_item_no": "A-0020",
"dealer_product_code": "BRP-420430408",
"sales_uom": "PC",
"min_order_qty": 1,
"is_sales_bom": false,
"product_line": "SSV",
"product_type": "30",
"texts": [
{
"code": "memo_field",
"descr": "Multi valid"
}
]
},
"shipping_lines": [
{
"item_no": "000201",
"product_code": "420430408",
"product_descr": "JOINT TORIQUE",
"ship_qty": 1,
"sales_uom": "PC",
"price_uom": "PC",
"package_uom": "PC",
"in_package": {
"qty": 1,
"uom": "PC"
},
"package_count": 1,
"msrp_unit_price": 7.59,
"wholesale_unit_price": 4.55,
"net_unit_price": 4.55,
"currency": "CAD",
"is_substitute_product": false,
"substituted_product_code": null,
"product_line": "SSV",
"product_type": "30",
"plant": {
"name": "BRP - SAINT-JEAN-SUR-RICHELIEU",
"city": "ST-JEAN-SUR-RICHELIEU",
"state": "QC",
"country": "CA"
},
"pricings": [
{
"condition_type": "gross_amt",
"total_amount": 4.55,
"currency": "CAD"
},
{
"condition_type": "tax_amt",
"total_amount": 0.68,
"currency": "CAD"
},
{
"condition_type": "subtotal_amt",
"total_amount": 4.55,
"currency": "CAD"
}
],
"deliveries": [
{
"status_code": "allocated",
"status_date": "2023-07-18T16:56:21Z",
"status_descr": "",
"qty": 1,
"availability_date": "2023-07-20",
"no": "",
"item_no": "",
"delivery_qty": 0,
"creation_date": null,
"carrier_name": "",
"billings": []
}
],
"statuses": [
{
"type": "success",
"code": "in_process",
"descr": "Votre pièce est en cours de traitement"
}
]
}
]
},
{
"ordered_line": {
"item_id": "0050568414A81EEE89B5B050CD54121B",
"item_no": "000300",
"product_code": "706205165",
"product_descr": "BRAS_SUSPENSION INF G B-442 PEINT",
"order_qty": 1,
"dealer_po_item_no": "A-0030",
"dealer_product_code": "BRP-706205165",
"sales_uom": "PC",
"min_order_qty": 1,
"is_sales_bom": false,
"product_line": "SSV",
"product_type": "30",
"texts": [
{
"code": "memo_field",
"descr": "Multi valid"
}
]
},
"shipping_lines": [
{
"item_no": "000301",
"product_code": "706205165",
"product_descr": "BRAS_SUSPENSION INF G B-442 PEINT",
"ship_qty": 1,
"sales_uom": "PC",
"price_uom": "PC",
"package_uom": "PC",
"in_package": {
"qty": 1,
"uom": "PC"
},
"package_count": 1,
"msrp_unit_price": 0,
"wholesale_unit_price": 0,
"net_unit_price": 0,
"currency": "CAD",
"is_substitute_product": false,
"substituted_product_code": null,
"product_line": "SSV",
"product_type": "30",
"plant": {
"name": "BRP - SAINT-JEAN-SUR-RICHELIEU",
"city": "ST-JEAN-SUR-RICHELIEU",
"state": "QC",
"country": "CA"
},
"pricings": [],
"deliveries": [
{
"status_code": "rejected",
"status_date": "2023-07-18T16:56:21Z",
"status_descr": "Annulé par le client",
"qty": 1,
"availability_date": "2023-07-19",
"no": "",
"item_no": "",
"delivery_qty": 0,
"creation_date": null,
"carrier_name": "",
"billings": []
}
],
"statuses": [
{
"type": "success",
"code": "completed",
"descr": "Votre pièce a été annulée"
}
]
}
]
},
{
"ordered_line": {
"item_id": "0050568414A81EEE89B5B050CD54B21B",
"item_no": "000400",
"product_code": "268000048",
"product_descr": "VANNE DE RENVERSE ASSEMBLEE",
"order_qty": 1,
"dealer_po_item_no": null,
"dealer_product_code": null,
"sales_uom": "PC",
"min_order_qty": 1,
"is_sales_bom": true,
"product_line": "PWC",
"product_type": "30",
"texts": [
{
"code": "memo_field",
"descr": "Multi valid"
}
]
},
"shipping_lines": [
{
"item_no": "000501",
"product_code": "268000183",
"product_descr": "VANNE DE RENVERSE ASSEMBLEE",
"ship_qty": 1,
"sales_uom": "PC",
"price_uom": "PC",
"package_uom": "PC",
"in_package": {
"qty": 1,
"uom": "PC"
},
"package_count": 1,
"msrp_unit_price": 289.99,
"wholesale_unit_price": 173.98,
"net_unit_price": 173.98,
"currency": "CAD",
"is_substitute_product": true,
"substituted_product_code": "268000158",
"product_line": "PWC",
"product_type": "30",
"plant": {
"name": "BRP - SAINT-JEAN-SUR-RICHELIEU",
"city": "ST-JEAN-SUR-RICHELIEU",
"state": "QC",
"country": "CA"
},
"pricings": [
{
"condition_type": "gross_amt",
"total_amount": 173.98,
"currency": "CAD"
},
{
"condition_type": "tax_amt",
"total_amount": 26.05,
"currency": "CAD"
},
{
"condition_type": "subtotal_amt",
"total_amount": 173.98,
"currency": "CAD"
}
],
"deliveries": [
{
"status_code": "allocated",
"status_date": "2023-07-18T16:56:21Z",
"status_descr": "",
"qty": 1,
"availability_date": "2023-07-20",
"no": "",
"item_no": "",
"delivery_qty": 0,
"creation_date": null,
"carrier_name": "",
"billings": []
}
],
"statuses": [
{
"type": "success",
"code": "in_process",
"descr": "Votre pièce est en cours de traitement"
}
]
},
{
"item_no": "000601",
"product_code": "268000182",
"product_descr": "ENTRETOISE",
"ship_qty": 2,
"sales_uom": "PC",
"price_uom": "PC",
"package_uom": "PC",
"in_package": {
"qty": 1,
"uom": "PC"
},
"package_count": 2,
"msrp_unit_price": 14.99,
"wholesale_unit_price": 8.24,
"net_unit_price": 8.24,
"currency": "CAD",
"is_substitute_product": false,
"substituted_product_code": null,
"product_line": "PWC",
"product_type": "30",
"plant": {
"name": "BRP - SAINT-JEAN-SUR-RICHELIEU",
"city": "ST-JEAN-SUR-RICHELIEU",
"state": "QC",
"country": "CA"
},
"pricings": [
{
"condition_type": "gross_amt",
"total_amount": 16.48,
"currency": "CAD"
},
{
"condition_type": "tax_amt",
"total_amount": 2.47,
"currency": "CAD"
},
{
"condition_type": "subtotal_amt",
"total_amount": 16.48,
"currency": "CAD"
}
],
"deliveries": [
{
"status_code": "allocated",
"status_date": "2023-07-18T16:56:21Z",
"status_descr": "",
"qty": 2,
"availability_date": "2023-07-20",
"no": "",
"item_no": "",
"delivery_qty": 0,
"creation_date": null,
"carrier_name": "",
"billings": []
}
],
"statuses": [
{
"type": "success",
"code": "in_process",
"descr": "Votre pièce est en cours de traitement"
}
]
}
]
},
{
"ordered_line": {
"item_id": "0050568414A81EEE89B5B07081D3F21C",
"item_no": "000700",
"product_code": "505072156",
"product_descr": "SKI PILOT 5.7 ASSEMBLE DROIT BLEU",
"order_qty": 1,
"dealer_po_item_no": null,
"dealer_product_code": null,
"sales_uom": "PC",
"min_order_qty": 1,
"is_sales_bom": true,
"product_line": "SNO",
"product_type": "30",
"texts": [
{
"code": "memo_field",
"descr": "Multi valid"
}
]
},
"shipping_lines": [
{
"item_no": "000801",
"product_code": "505072854",
"product_descr": "SKI PILOT 5.7 GAUCHE NOIR",
"ship_qty": 1,
"sales_uom": "PC",
"price_uom": "PC",
"package_uom": "PC",
"in_package": {
"qty": 1,
"uom": "PC"
},
"package_count": 1,
"msrp_unit_price": 199.99,
"wholesale_unit_price": 119.98,
"net_unit_price": 119.98,
"currency": "CAD",
"is_substitute_product": true,
"substituted_product_code": "505072942",
"product_line": "SNO",
"product_type": "30",
"plant": {
"name": "BRP - SAINT-JEAN-SUR-RICHELIEU",
"city": "ST-JEAN-SUR-RICHELIEU",
"state": "QC",
"country": "CA"
},
"pricings": [
{
"condition_type": "gross_amt",
"total_amount": 119.98,
"currency": "CAD"
},
{
"condition_type": "tax_amt",
"total_amount": 17.97,
"currency": "CAD"
},
{
"condition_type": "subtotal_amt",
"total_amount": 119.98,
"currency": "CAD"
}
],
"deliveries": [
{
"status_code": "backorder",
"status_date": "2023-07-18T16:56:21Z",
"status_descr": "",
"qty": 1,
"availability_date": "2023-10-20",
"no": "",
"item_no": "",
"delivery_qty": 0,
"creation_date": null,
"carrier_name": "",
"billings": []
}
],
"statuses": [
{
"type": "warning",
"code": "in_process",
"descr": "Une certaine quantité de la pièce a un statut spécial"
},
{
"type": null,
"code": null,
"descr": null
}
]
},
{
"item_no": "000901",
"product_code": "505072855",
"product_descr": "SKI PILOT 5.7 DROIT NOIR",
"ship_qty": 1,
"sales_uom": "PC",
"price_uom": "PC",
"package_uom": "PC",
"in_package": {
"qty": 1,
"uom": "PC"
},
"package_count": 1,
"msrp_unit_price": 189.99,
"wholesale_unit_price": 113.98,
"net_unit_price": 113.98,
"currency": "CAD",
"is_substitute_product": true,
"substituted_product_code": "505072943",
"product_line": "PWC",
"product_type": "30",
"plant": {
"name": "BRP - SAINT-JEAN-SUR-RICHELIEU",
"city": "ST-JEAN-SUR-RICHELIEU",
"state": "QC",
"country": "CA"
},
"pricings": [
{
"condition_type": "gross_amt",
"total_amount": 113.98,
"currency": "CAD"
},
{
"condition_type": "tax_amt",
"total_amount": 17.07,
"currency": "CAD"
},
{
"condition_type": "subtotal_amt",
"total_amount": 113.98,
"currency": "CAD"
}
],
"deliveries": [
{
"status_code": "backorder",
"status_date": "2023-07-18T16:56:21Z",
"status_descr": "",
"qty": 1,
"availability_date": "2023-10-20",
"no": "",
"item_no": "",
"delivery_qty": 0,
"creation_date": null,
"carrier_name": "",
"billings": []
}
],
"statuses": [
{
"type": "warning",
"code": "in_process",
"descr": "Une certaine quantité de la pièce a un statut spécial"
},
{
"type": null,
"code": null,
"descr": null
}
]
}
]
},
{
"ordered_line": {
"item_id": "0050568414A81EEE89B5B07081D5521C",
"item_no": "001000",
"product_code": "703501166",
"product_descr": "ENS DIFFERENTIEL",
"order_qty": 1,
"dealer_po_item_no": null,
"dealer_product_code": null,
"sales_uom": "PC",
"min_order_qty": 1,
"is_sales_bom": true,
"product_line": "SSV",
"product_type": "30",
"texts": [
{
"code": "memo_field",
"descr": "Multi valid"
}
]
},
"shipping_lines": [
{
"item_no": "001101",
"product_code": "705402841",
"product_descr": "ENGRENAGE 10 DENTS",
"ship_qty": 1,
"sales_uom": "PC",
"price_uom": "PC",
"package_uom": "PC",
"in_package": {
"qty": 1,
"uom": "PC"
},
"package_count": 1,
"msrp_unit_price": 209.99,
"wholesale_unit_price": 125.98,
"net_unit_price": 125.98,
"currency": "CAD",
"is_substitute_product": false,
"substituted_product_code": null,
"product_line": "SSV",
"product_type": "30",
"plant": {
"name": "BRP - SAINT-JEAN-SUR-RICHELIEU",
"city": "ST-JEAN-SUR-RICHELIEU",
"state": "QC",
"country": "CA"
},
"pricings": [
{
"condition_type": "gross_amt",
"total_amount": 125.98,
"currency": "CAD"
},
{
"condition_type": "tax_amt",
"total_amount": 18.87,
"currency": "CAD"
},
{
"condition_type": "subtotal_amt",
"total_amount": 125.98,
"currency": "CAD"
}
],
"deliveries": [
{
"status_code": "allocated",
"status_date": "2023-07-18T16:56:21Z",
"status_descr": "",
"qty": 1,
"availability_date": "2023-07-20",
"no": "",
"item_no": "",
"delivery_qty": 0,
"creation_date": null,
"carrier_name": "",
"billings": []
}
],
"statuses": [
{
"type": "success",
"code": "in_process",
"descr": "Votre pièce est en cours de traitement"
}
]
},
{
"item_no": "001201",
"product_code": "705402842",
"product_descr": "ENGRENAGE 36 DENTS",
"ship_qty": 1,
"sales_uom": "PC",
"price_uom": "PC",
"package_uom": "PC",
"in_package": {
"qty": 1,
"uom": "PC"
},
"package_count": 1,
"msrp_unit_price": 399.99,
"wholesale_unit_price": 239.98,
"net_unit_price": 239.98,
"currency": "CAD",
"is_substitute_product": false,
"substituted_product_code": null,
"product_line": "SSV",
"product_type": "30",
"plant": {
"name": "BRP - SAINT-JEAN-SUR-RICHELIEU",
"city": "ST-JEAN-SUR-RICHELIEU",
"state": "QC",
"country": "CA"
},
"pricings": [
{
"condition_type": "gross_amt",
"total_amount": 239.98,
"currency": "CAD"
},
{
"condition_type": "tax_amt",
"total_amount": 35.94,
"currency": "CAD"
},
{
"condition_type": "subtotal_amt",
"total_amount": 239.98,
"currency": "CAD"
}
],
"deliveries": [
{
"status_code": "allocated",
"status_date": "2023-07-18T16:56:21Z",
"status_descr": "",
"qty": 1,
"availability_date": "2023-07-20",
"no": "",
"item_no": "",
"delivery_qty": 0,
"creation_date": null,
"carrier_name": "",
"billings": []
}
],
"statuses": [
{
"type": "success",
"code": "in_process",
"descr": "Votre pièce est en cours de traitement"
}
]
},
{
"item_no": "001301",
"product_code": "705402182",
"product_descr": "DIFFERENTIEL",
"ship_qty": 1,
"sales_uom": "PC",
"price_uom": "PC",
"package_uom": "PC",
"in_package": {
"qty": 1,
"uom": "PC"
},
"package_count": 1,
"msrp_unit_price": 1039.99,
"wholesale_unit_price": 779.98,
"net_unit_price": 779.98,
"currency": "CAD",
"is_substitute_product": false,
"substituted_product_code": null,
"product_line": "SSV",
"product_type": "30",
"plant": {
"name": "BRP - SAINT-JEAN-SUR-RICHELIEU",
"city": "ST-JEAN-SUR-RICHELIEU",
"state": "QC",
"country": "CA"
},
"pricings": [
{
"condition_type": "gross_amt",
"total_amount": 779.98,
"currency": "CAD"
},
{
"condition_type": "tax_amt",
"total_amount": 116.8,
"currency": "CAD"
},
{
"condition_type": "subtotal_amt",
"total_amount": 779.98,
"currency": "CAD"
}
],
"deliveries": [
{
"status_code": "allocated",
"status_date": "2023-07-18T16:56:21Z",
"status_descr": "",
"qty": 1,
"availability_date": "2023-07-20",
"no": "",
"item_no": "",
"delivery_qty": 0,
"creation_date": null,
"carrier_name": "",
"billings": []
}
],
"statuses": [
{
"type": "success",
"code": "in_process",
"descr": "Votre pièce est en cours de traitement"
}
]
},
{
"item_no": "001401",
"product_code": "705401602",
"product_descr": "VIS",
"ship_qty": 8,
"sales_uom": "PC",
"price_uom": "PC",
"package_uom": "PAC",
"in_package": {
"qty": 8,
"uom": "PC"
},
"package_count": 8,
"msrp_unit_price": 7.79,
"wholesale_unit_price": 4.67,
"net_unit_price": 4.67,
"currency": "CAD",
"is_substitute_product": false,
"substituted_product_code": null,
"product_line": "SSV",
"product_type": "30",
"plant": {
"name": "BRP - SAINT-JEAN-SUR-RICHELIEU",
"city": "ST-JEAN-SUR-RICHELIEU",
"state": "QC",
"country": "CA"
},
"pricings": [
{
"condition_type": "gross_amt",
"total_amount": 37.36,
"currency": "CAD"
},
{
"condition_type": "tax_amt",
"total_amount": 5.59,
"currency": "CAD"
},
{
"condition_type": "subtotal_amt",
"total_amount": 37.36,
"currency": "CAD"
}
],
"deliveries": [
{
"status_code": "allocated",
"status_date": "2023-07-18T16:56:21Z",
"status_descr": "",
"qty": 8,
"availability_date": "2023-07-20",
"no": "",
"item_no": "",
"delivery_qty": 0,
"creation_date": null,
"carrier_name": "",
"billings": []
}
],
"statuses": [
{
"type": "success",
"code": "in_process",
"descr": "Votre pièce est en cours de traitement"
}
]
}
]
},
{
"ordered_line": {
"item_id": "0050568414A81EEE89B5B095561CD21E",
"item_no": "001500",
"product_code": "715008170",
"product_descr": "CHASSE NEIGE_72 PO KIT GROUPÉ",
"order_qty": 1,
"dealer_po_item_no": null,
"dealer_product_code": null,
"sales_uom": "PC",
"min_order_qty": 1,
"is_sales_bom": true,
"product_line": "SSV",
"product_type": "40",
"texts": [
{
"code": "memo_field",
"descr": "Multi valid"
}
]
},
"shipping_lines": [
{
"item_no": "001601",
"product_code": "715008116",
"product_descr": "CHÂSSIS_POUSSOIR KIT VCC",
"ship_qty": 1,
"sales_uom": "PC",
"price_uom": "PC",
"package_uom": "PC",
"in_package": {
"qty": 1,
"uom": "PC"
},
"package_count": 1,
"msrp_unit_price": 679.99,
"wholesale_unit_price": 438.98,
"net_unit_price": 447.76,
"currency": "CAD",
"is_substitute_product": false,
"substituted_product_code": null,
"product_line": "SSV",
"product_type": "40",
"plant": {
"name": "BRP - SAINT-JEAN-SUR-RICHELIEU",
"city": "ST-JEAN-SUR-RICHELIEU",
"state": "QC",
"country": "CA"
},
"pricings": [
{
"condition_type": "gross_amt",
"total_amount": 438.98,
"currency": "CAD"
},
{
"condition_type": "tax_amt",
"total_amount": 67.05,
"currency": "CAD"
},
{
"condition_type": "subtotal_amt",
"total_amount": 447.76,
"currency": "CAD"
},
{
"condition_type": "surcharge_amt",
"total_amount": 8.78,
"currency": "CAD"
}
],
"deliveries": [
{
"status_code": "allocated",
"status_date": "2023-07-18T16:56:21Z",
"status_descr": "",
"qty": 1,
"availability_date": "2023-07-20",
"no": "",
"item_no": "",
"delivery_qty": 0,
"creation_date": null,
"carrier_name": "",
"billings": []
}
],
"statuses": [
{
"type": "success",
"code": "in_process",
"descr": "Votre pièce est en cours de traitement"
}
]
},
{
"item_no": "001701",
"product_code": "715004485",
"product_descr": "CHASSE NEIGE_72 PO KIT",
"ship_qty": 1,
"sales_uom": "PC",
"price_uom": "PC",
"package_uom": "PC",
"in_package": {
"qty": 1,
"uom": "PC"
},
"package_count": 1,
"msrp_unit_price": 679.99,
"wholesale_unit_price": 441.98,
"net_unit_price": 450.82,
"currency": "CAD",
"is_substitute_product": false,
"substituted_product_code": null,
"product_line": "SSV",
"product_type": "40",
"plant": {
"name": "BRP - SAINT-JEAN-SUR-RICHELIEU",
"city": "ST-JEAN-SUR-RICHELIEU",
"state": "QC",
"country": "CA"
},
"pricings": [
{
"condition_type": "gross_amt",
"total_amount": 441.98,
"currency": "CAD"
},
{
"condition_type": "tax_amt",
"total_amount": 67.51,
"currency": "CAD"
},
{
"condition_type": "subtotal_amt",
"total_amount": 450.82,
"currency": "CAD"
},
{
"condition_type": "surcharge_amt",
"total_amount": 8.84,
"currency": "CAD"
}
],
"deliveries": [
{
"status_code": "allocated",
"status_date": "2023-07-18T16:56:21Z",
"status_descr": "",
"qty": 1,
"availability_date": "2023-07-20",
"no": "",
"item_no": "",
"delivery_qty": 0,
"creation_date": null,
"carrier_name": "",
"billings": []
}
],
"statuses": [
{
"type": "success",
"code": "in_process",
"descr": "Votre pièce est en cours de traitement"
}
]
},
{
"item_no": "001801",
"product_code": "715007745",
"product_descr": "SUPPORT_CHASSE NEIGE KIT UR",
"ship_qty": 1,
"sales_uom": "PC",
"price_uom": "PC",
"package_uom": "PC",
"in_package": {
"qty": 1,
"uom": "PC"
},
"package_count": 1,
"msrp_unit_price": 184.99,
"wholesale_unit_price": 119.98,
"net_unit_price": 122.38,
"currency": "CAD",
"is_substitute_product": false,
"substituted_product_code": null,
"product_line": "SSV",
"product_type": "40",
"plant": {
"name": "BRP - SAINT-JEAN-SUR-RICHELIEU",
"city": "ST-JEAN-SUR-RICHELIEU",
"state": "QC",
"country": "CA"
},
"pricings": [
{
"condition_type": "gross_amt",
"total_amount": 119.98,
"currency": "CAD"
},
{
"condition_type": "tax_amt",
"total_amount": 18.33,
"currency": "CAD"
},
{
"condition_type": "subtotal_amt",
"total_amount": 122.38,
"currency": "CAD"
},
{
"condition_type": "surcharge_amt",
"total_amount": 2.4,
"currency": "CAD"
}
],
"deliveries": [
{
"status_code": "allocated",
"status_date": "2023-07-18T16:56:21Z",
"status_descr": "",
"qty": 1,
"availability_date": "2023-07-20",
"no": "",
"item_no": "",
"delivery_qty": 0,
"creation_date": null,
"carrier_name": "",
"billings": []
}
],
"statuses": [
{
"type": "success",
"code": "in_process",
"descr": "Votre pièce est en cours de traitement"
}
]
}
]
},
{
"ordered_line": {
"item_id": "0050568414A81EEE89B5B0BF61D71229",
"item_no": "001900",
"product_code": "703500508",
"product_descr": "ENSEMBLE DE BOYAUX DE FREIN",
"order_qty": 1,
"dealer_po_item_no": null,
"dealer_product_code": null,
"sales_uom": "PC",
"min_order_qty": 1,
"is_sales_bom": true,
"product_line": "ATV",
"product_type": "30",
"texts": [
{
"code": "memo_field",
"descr": "Multi valid"
}
]
},
"shipping_lines": [
{
"item_no": "002001",
"product_code": "706200507",
"product_descr": "ARRET DE BOYAU GAUCHE",
"ship_qty": 1,
"sales_uom": "PC",
"price_uom": "PC",
"package_uom": "PC",
"in_package": {
"qty": 1,
"uom": "PC"
},
"package_count": 1,
"msrp_unit_price": 13.49,
"wholesale_unit_price": 7.42,
"net_unit_price": 7.42,
"currency": "CAD",
"is_substitute_product": false,
"substituted_product_code": null,
"product_line": "ATV",
"product_type": "30",
"plant": {
"name": "BRP - SAINT-JEAN-SUR-RICHELIEU",
"city": "ST-JEAN-SUR-RICHELIEU",
"state": "QC",
"country": "CA"
},
"pricings": [
{
"condition_type": "gross_amt",
"total_amount": 7.42,
"currency": "CAD"
},
{
"condition_type": "tax_amt",
"total_amount": 1.11,
"currency": "CAD"
},
{
"condition_type": "subtotal_amt",
"total_amount": 7.42,
"currency": "CAD"
}
],
"deliveries": [
{
"status_code": "allocated",
"status_date": "2023-07-18T16:56:21Z",
"status_descr": "",
"qty": 1,
"availability_date": "2023-07-20",
"no": "",
"item_no": "",
"delivery_qty": 0,
"creation_date": null,
"carrier_name": "",
"billings": []
}
],
"statuses": [
{
"type": "success",
"code": "in_process",
"descr": "Votre pièce est en cours de traitement"
}
]
},
{
"item_no": "002101",
"product_code": "706200508",
"product_descr": "ARRET DE BOYAU DROIT",
"ship_qty": 1,
"sales_uom": "PC",
"price_uom": "PC",
"package_uom": "PC",
"in_package": {
"qty": 1,
"uom": "PC"
},
"package_count": 1,
"msrp_unit_price": 13.49,
"wholesale_unit_price": 7.42,
"net_unit_price": 7.42,
"currency": "CAD",
"is_substitute_product": false,
"substituted_product_code": null,
"product_line": "ATV",
"product_type": "30",
"plant": {
"name": "BRP - SAINT-JEAN-SUR-RICHELIEU",
"city": "ST-JEAN-SUR-RICHELIEU",
"state": "QC",
"country": "CA"
},
"pricings": [
{
"condition_type": "gross_amt",
"total_amount": 7.42,
"currency": "CAD"
},
{
"condition_type": "tax_amt",
"total_amount": 1.11,
"currency": "CAD"
},
{
"condition_type": "subtotal_amt",
"total_amount": 7.42,
"currency": "CAD"
}
],
"deliveries": [
{
"status_code": "allocated",
"status_date": "2023-07-18T16:56:21Z",
"status_descr": "",
"qty": 1,
"availability_date": "2023-07-20",
"no": "",
"item_no": "",
"delivery_qty": 0,
"creation_date": null,
"carrier_name": "",
"billings": []
}
],
"statuses": [
{
"type": "success",
"code": "in_process",
"descr": "Votre pièce est en cours de traitement"
}
]
},
{
"item_no": "002201",
"product_code": "415052400",
"product_descr": "ATTACHE COLLIER",
"ship_qty": 6,
"sales_uom": "PC",
"price_uom": "PC",
"package_uom": "PAC",
"in_package": {
"qty": 6,
"uom": "PC"
},
"package_count": 6,
"msrp_unit_price": 5.09,
"wholesale_unit_price": 3.05,
"net_unit_price": 3.05,
"currency": "CAD",
"is_substitute_product": false,
"substituted_product_code": null,
"product_line": "BT",
"product_type": "30",
"plant": {
"name": "BRP - SAINT-JEAN-SUR-RICHELIEU",
"city": "ST-JEAN-SUR-RICHELIEU",
"state": "QC",
"country": "CA"
},
"pricings": [
{
"condition_type": "gross_amt",
"total_amount": 18.3,
"currency": "CAD"
},
{
"condition_type": "tax_amt",
"total_amount": 2.74,
"currency": "CAD"
},
{
"condition_type": "subtotal_amt",
"total_amount": 18.3,
"currency": "CAD"
}
],
"deliveries": [
{
"status_code": "allocated",
"status_date": "2023-07-18T16:56:21Z",
"status_descr": "",
"qty": 6,
"availability_date": "2023-07-20",
"no": "",
"item_no": "",
"delivery_qty": 0,
"creation_date": null,
"carrier_name": "",
"billings": []
}
],
"statuses": [
{
"type": "success",
"code": "in_process",
"descr": "Votre pièce est en cours de traitement"
}
]
},
{
"item_no": "002301",
"product_code": "233261414",
"product_descr": "ECROU EPAUL.HEX.ELASTIQUE M6",
"ship_qty": 10,
"sales_uom": "PC",
"price_uom": "PC",
"package_uom": "PAC",
"in_package": {
"qty": 10,
"uom": "PC"
},
"package_count": 10,
"msrp_unit_price": 1.69,
"wholesale_unit_price": 0.93,
"net_unit_price": 0.93,
"currency": "CAD",
"is_substitute_product": false,
"substituted_product_code": null,
"product_line": "BT",
"product_type": "30",
"plant": {
"name": "BRP - SAINT-JEAN-SUR-RICHELIEU",
"city": "ST-JEAN-SUR-RICHELIEU",
"state": "QC",
"country": "CA"
},
"pricings": [
{
"condition_type": "gross_amt",
"total_amount": 9.3,
"currency": "CAD"
},
{
"condition_type": "tax_amt",
"total_amount": 1.39,
"currency": "CAD"
},
{
"condition_type": "subtotal_amt",
"total_amount": 9.3,
"currency": "CAD"
}
],
"deliveries": [
{
"status_code": "allocated",
"status_date": "2023-07-18T16:56:21Z",
"status_descr": "",
"qty": 10,
"availability_date": "2023-07-20",
"no": "",
"item_no": "",
"delivery_qty": 0,
"creation_date": null,
"carrier_name": "",
"billings": []
}
],
"statuses": [
{
"type": "success",
"code": "in_process",
"descr": "Votre pièce est en cours de traitement"
}
]
},
{
"item_no": "002401",
"product_code": "207661644",
"product_descr": "VIS HEXAGONALE EPAULEMENT M6 X 16",
"ship_qty": 25,
"sales_uom": "PC",
"price_uom": "PC",
"package_uom": "PAC",
"in_package": {
"qty": 25,
"uom": "PC"
},
"package_count": 25,
"msrp_unit_price": 0.85,
"wholesale_unit_price": 0.51,
"net_unit_price": 0.51,
"currency": "CAD",
"is_substitute_product": false,
"substituted_product_code": null,
"product_line": "PTN",
"product_type": "30",
"plant": {
"name": "BRP - SAINT-JEAN-SUR-RICHELIEU",
"city": "ST-JEAN-SUR-RICHELIEU",
"state": "QC",
"country": "CA"
},
"pricings": [
{
"condition_type": "gross_amt",
"total_amount": 12.75,
"currency": "CAD"
},
{
"condition_type": "tax_amt",
"total_amount": 1.91,
"currency": "CAD"
},
{
"condition_type": "subtotal_amt",
"total_amount": 12.75,
"currency": "CAD"
}
],
"deliveries": [
{
"status_code": "allocated",
"status_date": "2023-07-18T16:56:21Z",
"status_descr": "",
"qty": 25,
"availability_date": "2023-07-20",
"no": "",
"item_no": "",
"delivery_qty": 0,
"creation_date": null,
"carrier_name": "",
"billings": []
}
],
"statuses": [
{
"type": "success",
"code": "in_process",
"descr": "Votre pièce est en cours de traitement"
}
]
},
{
"item_no": "002501",
"product_code": "233201414",
"product_descr": "ECROU EPAUL.HEX.ELASTIQUE M10",
"ship_qty": 10,
"sales_uom": "PC",
"price_uom": "PC",
"package_uom": "PAC",
"in_package": {
"qty": 10,
"uom": "PC"
},
"package_count": 10,
"msrp_unit_price": 1.69,
"wholesale_unit_price": 1.01,
"net_unit_price": 1.01,
"currency": "CAD",
"is_substitute_product": false,
"substituted_product_code": null,
"product_line": "BT",
"product_type": "30",
"plant": {
"name": "BRP - SAINT-JEAN-SUR-RICHELIEU",
"city": "ST-JEAN-SUR-RICHELIEU",
"state": "QC",
"country": "CA"
},
"pricings": [
{
"condition_type": "gross_amt",
"total_amount": 10.1,
"currency": "CAD"
},
{
"condition_type": "tax_amt",
"total_amount": 1.51,
"currency": "CAD"
},
{
"condition_type": "subtotal_amt",
"total_amount": 10.1,
"currency": "CAD"
}
],
"deliveries": [
{
"status_code": "allocated",
"status_date": "2023-07-18T16:56:21Z",
"status_descr": "",
"qty": 10,
"availability_date": "2023-07-20",
"no": "",
"item_no": "",
"delivery_qty": 0,
"creation_date": null,
"carrier_name": "",
"billings": []
}
],
"statuses": [
{
"type": "success",
"code": "in_process",
"descr": "Votre pièce est en cours de traitement"
}
]
}
]
}
]
}Cancelar artículo de línea
El concesionario decidió cancelar el artículo de línea A-0020 con el número de parte 420430408.
Si no hay error, el Cancelar servicio devuelve el pedido de piezas actualizado donde la parte entrega el estado ahora es rechazado.
Puedes cancelar más de un artículo en la llamada a la Cancelar servicio.
curl --location 'https://cloud-api.brp.com/dcp/v4/parts/order/cancel' \
--header 'Authorization-Dealer: DEALER_TOKEN' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer REPLACE_ME'
--data '{
"pac_order_id": "051MX1Ie7kw9jR0dwDIo5G",
"dealer_no": "0000702933",
"items": [
{
"item_id": "0050568414A81EEE89B5B050CD53B21B"
}
]
}'Cancelar el mismo artículo de línea
Si el mismo artículo de línea se cancela nuevamente, se devuelve una respuesta de error para indicar que el artículo no se puede cancelar.
curl --location 'https://cloud-api.brp.com/dcp/v4/parts/order/cancel' \
--header 'Authorization-Dealer: DEALER_TOKEN' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer REPLACE_ME'
--data '{
"pac_order_id": "051MX1Ie7kw9jR0dwDIo5G",
"dealer_no": "0000702933",
"items": [
{
"item_id": "0050568414A81EEE89B5B050CD53B21B"
}
]
}'Cancelar el último artículo de línea
En este escenario, se cancela el último artículo de línea.
Supongamos que este pedido de piezas con un artículo es creado.
{
"pac_order_id": "051MX1Gf7kw9}6frYQTh6m",
"sales_order_no": "1030383178",
"creation_date": "2023-07-21T16:25:36Z",
"dealer_po_no": "PO TEST",
"dealer_no": "0000702933",
"order_type": "regular",
"shipping_carrier": {
"shipping_condition": "S0",
"shipping_condition_descr": "Standard Ground"
},
"payment_terms": "F030",
"payment_terms_descr": "Fin. (PA&A) - Due in 30 days",
"partners": [
{
"type": "BP",
"no": "0000702933",
"name": "PERFORMANCE NC - GRANBY",
"address": {
"street": "125 PIERRE-PARADIS",
"city": "ST-ALPHONSE DE GRANBY",
"state": "QC",
"country": "CA",
"postal_code": "J0E 2A0"
}
},
{
"type": "SH",
"no": "0000702933",
"name": "PERFORMANCE NC - GRANBY",
"address": {
"street": "125 PIERRE-PARADIS",
"city": "ST-ALPHONSE DE GRANBY",
"state": "QC",
"country": "CA",
"postal_code": "J0E 2A0"
}
}
],
"pricings": [
{
"condition_type": "gross_amt",
"total_amount": 7.79,
"currency": "CAD"
},
{
"condition_type": "tax_amt",
"total_amount": 1.17,
"currency": "CAD"
},
{
"condition_type": "subtotal_amt",
"total_amount": 7.79,
"currency": "CAD"
}
],
"header_texts": [
{
"code": "shipping_instruction",
"descr": "Delivery at door 245"
}
],
"header_statuses": [
{
"type": "success",
"code": "",
"descr": "Your order has been created successfully"
},
{
"type": "warning",
"code": "",
"descr": "Pay special attention to the status of certain part"
}
],
"items": [
{
"ordered_line": {
"item_id": "0050568414291EEE89FC6A7589A7AB1B",
"item_no": "000100",
"product_code": "250300016",
"product_descr": "STUD_BALL M5 X 15",
"order_qty": 1,
"dealer_po_item_no": "A-0010",
"dealer_product_code": "BRP-250300016",
"sales_uom": "PC",
"min_order_qty": 1,
"is_sales_bom": false,
"product_line": "PWC",
"product_type": "30",
"texts": [
{
"code": "memo_field",
"descr": "Multi valid"
}
]
},
"shipping_lines": [
{
"item_no": "000101",
"product_code": "250300016",
"product_descr": "STUD_BALL M5 X 15",
"ship_qty": 1,
"sales_uom": "PC",
"price_uom": "PC",
"package_uom": "PC",
"in_package": {
"qty": 1,
"uom": "PC"
},
"package_count": 1,
"msrp_unit_price": 12.99,
"wholesale_unit_price": 7.79,
"net_unit_price": 7.79,
"currency": "CAD",
"is_substitute_product": false,
"substituted_product_code": null,
"product_line": "PWC",
"product_type": "30",
"plant": {
"name": "BRP - SAINT-JEAN-SUR-RICHELIEU",
"city": "ST-JEAN-SUR-RICHELIEU",
"state": "QC",
"country": "CA"
},
"pricings": [
{
"condition_type": "gross_amt",
"total_amount": 7.79,
"currency": "CAD"
},
{
"condition_type": "tax_amt",
"total_amount": 1.17,
"currency": "CAD"
},
{
"condition_type": "subtotal_amt",
"total_amount": 7.79,
"currency": "CAD"
}
],
"deliveries": [
{
"status_code": "backorder",
"status_date": "2023-07-21T12:25:38Z",
"status_descr": "",
"qty": 1,
"availability_date": "2023-10-30",
"no": "",
"item_no": "",
"delivery_qty": 0,
"creation_date": null,
"carrier_name": "",
"billings": []
}
],
"statuses": [
{
"type": "success",
"code": null,
"descr": "Your part has been created successfully"
}
]
}
]
}
]
}El único artículo de la línea está cancelado, lo que resulta en la cancelación del pedido.
curl --location 'https://qa-cloud-api.brp.com/dcp/v4/parts/order/cancel' \
--header 'Authorization-Dealer: DEALER_TOKEN' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer REPLACE_ME' \
--data '{
"pac_order_id": "051MX1Gf7kw9}6frYQTh6m",
"dealer_no": "0000702933",
"items": [
{
"item_id": "0050568414291EEE89FC6A7589A7AB1B"
}
]
}'