Why I am getting bad request, while trying to create an order through product order api
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-23-2025 02:18 AM
I am trying to create a product order using the product order api, but getting 400 bad request. Please suggest
Request:
{
"requestedCompletionDate": "2025-10-02T08:13:59.506Z",
"requestedStartDate": "2025-09-23T08:13:59.506Z",
"orderDate": "2020-05-03T08:13:59.506Z",
"externalId": "PO-4ddd56",
"orderCurrency": "USD",
"note": [
{
"id": "1",
"author": "Jean Pontus",
"date": "2019-04-30T08:13:59.509Z",
"text": "This is a TMF product order illustration"
},
{
"id": "2",
"author": "Jean Pontus1",
"date": "2019-04-30T08:13:59.509Z",
"text": "This is a TMF product order illustration no 2"
}
],
"productOrderItem": [
{
"id": "100",
"quantity": 1,
"action": "add",
"actionReason": "adding service package OLI",
"product": {
"isBundle": false,
"@type": "Product",
"productSpecification": {
"id": "cfe5ef6a53702010cd6dddeeff7b12f6",
"name": "SD-WAN Service Package",
"@type": "ProductSpecificationRef"
},
"relatedParty": [
{
"firstName": "Charlie",
"lastName": "Brown",
"email": "charlie.brown@example.com",
"phone": "(626) 722-6969",
"@type": "RelatedParty",
"@referredType": "OrderLineItemContact"
}
],
"productRelationship": [
{
"id": "be6d13f45b5620102dff5e92dc81c781",
"relationshipType": "Requires"
}
]
},
"productOffering": {
"id": "69017a0f536520103b6bddeeff7b127d",
"name": "SD-WAN Bronze Promotion"
},
"productOrderItemRelationship": [
{
"id": "110",
"relationshipType": "HasChild"
},
{
"id": "120",
"relationshipType": "HasChild"
},
{
"id": "130",
"relationshipType": "HasChild"
}
],
"@type": "ProductOrderItem"
},
{
"id": "110",
"quantity": 1,
"action": "add",
"itemPrice": [
{
"description": "Access Fee",
"name": "Access Fee",
"priceType": "nonRecurring",
"price": {
"taxRate": 0,
"dutyFreeAmount": {
"unit": "USD",
"value": 100
},
"taxIncludedAmount": {
"unit": "USD",
"value": 220
}
}
}
],
"product": {
"isBundle": false,
"@type": "Product",
"productCharacteristic": [
{
"name": "Tenancy",
"valueType": "string",
"value": "Premium (>50 sites)"
}
],
"productSpecification": {
"id": "216663aa53702010cd6dddeeff7b12b5",
"name": "SD-WAN Controller v2",
"@type": "ProductSpecificationRef"
},
"place": {
"@type": "Place",
"id": "5671dd2ec3a53010188473ce3640dd81"
},
"relatedParty": [
{
"firstName": "Charlie",
"lastName": "Brown",
"email": "charlie.brown@example.com",
"phone": "(626) 722-6969",
"@type": "RelatedParty",
"@referredType": "OrderLineItemContact"
}
],
"productRelationship": [
{
"id": "be6d13f45b5620102dff5e92dc81c781",
"relationshipType": "Requires"
}
]
},
"productOffering": {
"id": "69017a0f536520103b6bddeeff7b127d",
"name": "SD-WAN Bronze Promotion"
},
"productOrderItemRelationship": [
{
"id": "100",
"relationshipType": "HasParent"
}
],
"@type": "ProductOrderItem"
},
{
"id": "120",
"action": "add",
"actionReason": "adding service package OLI",
"quantity": 1,
"itemPrice": [
{
"description": "Tariff plan monthly fee",
"name": "MonthlyFee",
"priceType": "recurring",
"recurringChargePeriod": "month",
"price": {
"taxRate": 0,
"dutyFreeAmount": {
"unit": "USD",
"value": 300
},
"taxIncludedAmount": {
"unit": "USD",
"value": 349
}
}
}
],
"product": {
"isBundle": false,
"@type": "Product",
"productCharacteristic": [
{
"name": "CPE Model",
"valueType": "string",
"value": "ASR"
},
{
"name": "WAN Optimization",
"valueType": "string",
"value": "Advance"
},
{
"name": "CPE Type",
"valueType": "string",
"value": "Physical"
},
{
"name": "Routing",
"valueType": "string",
"value": "Premium"
}
],
"productSpecification": {
"id": "39b627aa53702010cd6dddeeff7b1202",
"name": "SD-WAN Edge Device v2",
"@type": "ProductSpecificationRef"
},
"place": {
"@type": "Place",
"id": "5671dd2ec3a53010188473ce3640dd81"
},
"relatedParty": [
{
"firstName": "Charlie",
"lastName": "Brown",
"email": "charlie.brown@example.com",
"phone": "(626) 722-6969",
"@type": "RelatedParty",
"@referredType": "OrderLineItemContact"
}
],
"productRelationship": [
{
"id": "be6d13f45b5620102dff5e92dc81c781",
"relationshipType": "Requires"
}
]
},
"productOffering": {
"id": "69017a0f536520103b6bddeeff7b127d",
"name": "SD-WAN Bronze Promotion"
},
"productOrderItemRelationship": [
{
"id": "100",
"relationshipType": "HasParent"
}
],
"@type": "ProductOrderItem"
},
{
"id": "130",
"quantity": 1,
"action": "add",
"actionReason": "adding service package OLI",
"itemPrice": [
{
"description": "Tariff plan monthly security",
"name": "MonthlySecurity",
"priceType": "nonRecurring",
"price": {
"taxRate": 0,
"dutyFreeAmount": {
"unit": "USD",
"value": 30
},
"taxIncludedAmount": {
"unit": "USD",
"value": 30
}
}
}
],
"product": {
"isBundle": false,
"@type": "Product",
"productCharacteristic": [
{
"name": "Security Type",
"valueType": "string",
"value": "Premium"
}
],
"productSpecification": {
"id": "a6514bd3534560102f18ddeeff7b1247",
"name": "SD-WAN Connect LTE",
"@type": "ProductSpecificationRef"
},
"place": {
"@type": "Place",
"id": "5671dd2ec3a53010188473ce3640dd81"
},
"relatedParty": [
{
"firstName": "Charlie",
"lastName": "Brown",
"email": "charlie.brown@example.com",
"phone": "(626) 722-6969",
"@type": "RelatedParty",
"@referredType": "OrderLineItemContact"
}
],
"productRelationship": [
{
"id": "be6d13f45b5620102dff5e92dc81c781",
"relationshipType": "Requires"
}
]
},
"productOffering": {
"id": "69017a0f536520103b6bddeeff7b127d",
"name": "SD-WAN Bronze Promotion"
},
"productOrderItemRelationship": [
{
"id": "100",
"relationshipType": "HasParent"
}
],
"@type": "ProductOrderItem"
}
],
"relatedParty": [
{
"id": "eaf68911c35420105252716b7d40ddde",
"name": "Linda Cox",
"@type": "RelatedParty",
"@referredType": "CustomerContact"
},
{
"id": "ACCT0000009",
"name": "Avid Corporation",
"@type": "RelatedParty",
"@referredType": "Customer"
},
{
"id": "ACCT0000001",
"name": "Boxeo",
"@type": "RelatedParty",
"@referredType": "Consumer"
}
],
"@type": "ProductOrder"
}
Response:
{
"code": 23,
"reason": "Invalid body field",
"message": "Invalid body field",
"details": [
{
"message": "Invalid payload: Customer Account does not exist",
"datapath": "/relatedParty[1]/"
},
{
"message": "Invalid payload: Consumer does not exist",
"datapath": "/relatedParty[2]/"
},
{
"message": "Invalid payload: Product specification does not exist",
"datapath": "/productOrderItem[0]/product/productSpecification/"
},
{
"message": "Invalid payload: Product inventory does not exist",
"datapath": "/productOrderItem[0]/product/productRelationship[0]/"
},
{
"message": "Invalid payload: Product offering does not exist",
"datapath": "/productOrderItem[0]/productOffering/"
},
{
"message": "Invalid payload: Product specification does not exist",
"datapath": "/productOrderItem[1]/product/productSpecification/"
},
{
"message": "Invalid payload: Product inventory does not exist",
"datapath": "/productOrderItem[1]/product/productRelationship[0]/"
},
{
"message": "Invalid payload: Product offering does not exist",
"datapath": "/productOrderItem[1]/productOffering/"
},
{
"message": "Invalid payload: Product specification does not exist",
"datapath": "/productOrderItem[2]/product/productSpecification/"
},
{
"message": "Invalid payload: Product inventory does not exist",
"datapath": "/productOrderItem[2]/product/productRelationship[0]/"
},
{
"message": "Invalid payload: Product offering does not exist",
"datapath": "/productOrderItem[2]/productOffering/"
},
{
"message": "Invalid payload: Product specification does not exist",
"datapath": "/productOrderItem[3]/product/productSpecification/"
},
{
"message": "Invalid payload: Product inventory does not exist",
"datapath": "/productOrderItem[3]/product/productRelationship[0]/"
},
{
"message": "Invalid payload: Product offering does not exist",
"datapath": "/productOrderItem[3]/productOffering/"
},
{
"message": "Customer contact is not related to the account",
"datapath": "/relatedParty[0]/"
},
{
"message": "Catalog not found",
"datapath": "/productOrderItem[0]/product/productSpecification/"
},
{
"message": "Catalog not found",
"datapath": "/productOrderItem[0]/productOffering/"
},
{
"message": "Invalid payload: The place doesn't exist in the system",
"location": "productOrderItem[1]:5671dd2ec3a53010188473ce3640dd81"
}
]
}
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2025 06:16 AM
Hello @Gargichatterjee
Please check the below things for the debugging this issue
Incorrect JSON or XML structure (extra commas, missing braces, invalid escape characters).
Sending data in the wrong format (e.g., string instead of number).
Using unsupported content type (content-type header mismatch).
- Invalide Query Paramters, please check paramters.
- Payload size exceeding system limit.
- Typo in endpoint URL (/api/now/table vs /api/now/v1/table/).
If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.
Thank You!!
