SaveCreditMemo (POST)

Overview

This POST API allows pushing Credit Memo posted in ERP to GEP SMART for further processing.

 

URL Format: https://api-smartqc.gep.com/SmartInterfaceAPI/api/CreditMemo/CreditMemoDetails

Request
{
   "basicDetails": {
      "documentName": "string",
      "documentNumber": "string",
      "documentStatus": "string",
      "documentCreator": "string",
      "createdOn": "string",
      "documentLobDetails": [
         {
            "entityCode": "string",
            "entityType": "string"
         }
      ],
      "operationName": "string"
   },
   "partnerMemoNumber": "string",
   "partnerInvoiceNumber": "string",
   "invoiceReferenceNumber": "string",
   "partnerName": "string",
   "partnerMemoDate": "2020-05-28T09:55:59.830Z",
   "memoReceivedDate": "2020-05-28T09:55:59.830Z",
   "orderNumber": "string",
   "partnerInvoiceDate": "2020-05-28T09:55:59.830Z",
   "documentOrigin": "string",
   "billtoLocation": {
      "locationName": "string",
      "locationNumber": "string",
      "address": {
         "addressline1": "string",
         "addressline2": "string",
         "addressline3": "string",
         "city": "string",
         "zipCode": "string",
         "stateInfo": {
            "stateAbbrevationCode": "string",
            "stateName": "string"
         },
         "countryInfo": {
            "countryCode": "string",
            "countryName": "string"
         },
         "phoneNo1": "string",
         "extenstionNo1": "string",
         "phoneNo2": "string",
         "extenstionNo2": "string",
         "mobileNo": "string",
         "faxNo": "string",
         "county": "string"
      },
      "deliverTo": "string",
      "registrationDetails": [
         {
            "companyIdentificationDisplayName": "string",
            "companyIdentification": "string"
         }
      ]
   },
   "supplierContact": {
      "clientContactCode": "string",
      "emailAddress": "string",
      "firstName": "string",
      "lastName": "string"
   },
   "buyerContact": {
      "clientContactCode": "string",
      "emailAddress": "string",
      "firstName": "string",
      "lastName": "string"
   },
   "availableInvoiceTaxAmount": 0,
   "billable": true,
   "isMultiDocInvoice": true,
   "currency": "string",
   "tax": 0,
   "headerEntities": [
      {
         "entityCode": "string",
         "entityType": "string"
      }
   ],
   "erpOrderType": 0,
   "sourceSystemName": "string",
   "orderTotal": 0,
   "orderDate": "2020-05-28T09:55:59.830Z",
   "precision": 0,
   "buyerVATNumber": "string",
   "supplierVATNumber": "string",
   "customAttributes": [
      {
         "questionnaireTitle": "string",
         "questionnaireResponseValues": [
            {
               "childQuestionSets": [
                  null
               ],
               "columnText": "string",
               "responseValue": "string",
               "rowId": "string"
            }
         ]
      }
   ],
   "clientPartnerCode": "string",
   "clientContactCode": "string",
   "remitToLocation": {
      "locationName": "string",
      "locationNumber": "string",
      "address": {
         "addressline1": "string",
         "addressline2": "string",
         "addressline3": "string",
         "city": "string",
         "zipCode": "string",
         "stateInfo": {
            "stateAbbrevationCode": "string",
            "stateName": "string"
         },
         "countryInfo": {
            "countryCode": "string",
            "countryName": "string"
         },
         "phoneNo1": "string",
         "extenstionNo1": "string",
         "phoneNo2": "string",
         "extenstionNo2": "string",
         "mobileNo": "string",
         "faxNo": "string",
         "county": "string"
      },
      "deliverTo": "string",
      "registrationDetails": [
         {
            "companyIdentificationDisplayName": "string",
            "companyIdentification": "string"
         }
      ]
   },
   "paymentTermsDetails": {
      "noOfDays": 0,
      "discount": 0,
      "discountDays": 0,
      "paymentTermCode": "string",
      "paymentTermName": "string"
   },
   "itemTotalAmount": 0,
   "shipping": 0,
   "additionalCharges": 0,
   "totalAmount": 0,
   "comments": [
      {
         "commentText": "string",
         "accessType": "string"
      }
   ],
   "attachment": {
      "fileName": "string",
      "fileUri": "string",
      "extension": "string",
      "contentTransferEncoding": "string",
      "attachment¬Data": "string"
   },
   "creditMemoItems": [
      {
         "buyerItemNumber": "string",
         "itemLineNumber": 0,
         "description": "string",
         "itemType": "string",
         "unitPrice": 0,
         "quantity": 0,
         "uom": "string",
         "invoiceLineNumber": 0,
         "poLineItemNumber": 0,
         "itemTotalAmount": 0,
         "creditAmount": 0,
         "supplierPartId": "string",
         "additionalCharges": 0,
         "tax": 0,
         "shippingCharges": 0,
         "manufacturerName": "string",
         "manufacturerPartNumber": "string",
         "billable": "string",
         "comments": [
            {
               "commentText": "string",
               "accessType": "string"
            }
         ],
         "externalTax": 0,
         "creditMemoItemTaxes": [
            {
               "taxLevelType": "string",
               "taxCode": "string",
               "taxValue": 0,
               "taxMode": "string",
               "taxType": "string",
               "taxDescription": "string",
               "taxModeType": "string"
            }
         ],
         "externalTaxes": [
            {
               "taxCode": "string",
               "taxType": "string",
               "taxMode": "string",
               "taxValue": 0,
               "taxRate": 0,
               "authorityName": "string",
               "taxAddress": {
                  "addressline1": "string",
                  "addressline2": "string",
                  "addressline3": "string",
                  "city": "string",
                  "zipCode": "string",
                  "stateInfo": {
                     "stateAbbrevationCode": "string",
                     "stateName": "string"
                  },
                  "countryInfo": {
                     "countryCode": "string",
                     "countryName": "string"
                  },
                  "phoneNo1": "string",
                  "extenstionNo1": "string",
                  "phoneNo2": "string",
                  "extenstionNo2": "string",
                  "mobileNo": "string",
                  "faxNo": "string",
                  "county": "string"
               },
               "locationCode": "string",
               "taxRateCode": "string",
               "effectiveTaxLevel": "string",
               "officialName": "string",
               "taxBase": "string"
            }
         ],
         "customAttributes": [
            {
               "questionnaireTitle": "string",
               "questionnaireResponseValues": [
                  {
                     "childQuestionSets": [
                        null
                     ],
                     "columnText": "string",
                     "responseValue": "string",
                     "rowId": "string"
                  }
               ]
            }
         ],
         "documentItemShippingDetails": [
            {
               "shiptoLocation": {
                  "locationName": "string",
                  "locationNumber": "string",
                  "address": {
                     "addressline1": "string",
                     "addressline2": "string",
                     "addressline3": "string",
                     "city": "string",
                     "zipCode": "string",
                     "stateInfo": {
                        "stateAbbrevationCode": "string",
                        "stateName": "string"
                     },
                     "countryInfo": {
                        "countryCode": "string",
                        "countryName": "string"
                     },
                     "phoneNo1": "string",
                     "extenstionNo1": "string",
                     "phoneNo2": "string",
                     "extenstionNo2": "string",
                     "mobileNo": "string",
                     "faxNo": "string",
                     "county": "string"
                  },
                  "deliverTo": "string",
                  "registrationDetails": [
                     {
                        "companyIdentificationDisplayName": "string",
                        "companyIdentification": "string"
                     }
                  ]
               },
               "delivertoLocation": {
                  "locationName": "string",
                  "locationNumber": "string",
                  "address": {
                     "addressline1": "string",
                     "addressline2": "string",
                     "addressline3": "string",
                     "city": "string",
                     "zipCode": "string",
                     "stateInfo": {
                        "stateAbbrevationCode": "string",
                        "stateName": "string"
                     },
                     "countryInfo": {
                        "countryCode": "string",
                        "countryName": "string"
                     },
                     "phoneNo1": "string",
                     "extenstionNo1": "string",
                     "phoneNo2": "string",
                     "extenstionNo2": "string",
                     "mobileNo": "string",
                     "faxNo": "string",
                     "county": "string"
                  },
                  "deliverTo": "string",
                  "registrationDetails": [
                     {
                        "companyIdentificationDisplayName": "string",
                        "companyIdentification": "string"
                     }
                  ]
               },
               "shippingMethod": "string"
            }
         ],
         "creditMemoSplitItems": [
            {
               "documentSplitItemEntities": [
                  {
                     "entityType": "string",
                     "entityCode": "string",
                     "entityDisplayName": "string"
                  }
               ],
               "splitItemTotal": 0,
               "customAttributes": [
                  {
                     "questionnaireTitle": "string",
                     "questionnaireResponseValues": [
                        {
                           "childQuestionSets": [
                              null
                           ],
                           "columnText": "string",
                           "responseValue": "string",
                           "rowId": "string"
                        }
                     ]
                  }
               ],
               "splitType": "string",
               "quantity": 0,
               "percentage": 0
            }
         ]
      }
   ]
}

 

Response
{
   "data": {},
   "statusCode": "string",
   "errorDetails": [
      {
         "key": "string",
         "errors": [
            {
               "errorCode": "string",
               "errorDescription": "string"
            }
         ]
      }
   ],
   "successDetails": [
      {
         "key": "string"
      }
   ]
}

 

Examples

Success Scenario – Request

{
   "BasicDetails": {
      "DocumentName": "Order based Credit Memo for PO90938174 1",
      "DocumentNumber": "SCRM_Orderbase_1",
      "CreatedOn": "2019-04-18T13:50:03",
      "DocumentLobDetails": [
         {
            "EntityCode": "KNA-SAP"
         }
      ],
      "OperationName": "new"
   },
   "PartnerMemoNumber": "CM830173",
   "PartnerName": "SUNBELT RENTALS INC",
   "PartnerMemoDate": "2019-04-18T13:50:03",
   "MemoReceivedDate": "2020-04-24T08:57:18.587",
   "OrderNumber": "PO90938174",
   "PartnerInvoiceDate": "2020-05-14T06:32:51.6220872",
   "DocumentOrigin": "supplier",
   "BilltoLocation": {
      "LocationName": "GBS Center",
      "LocationNumber": "NUUS",
      "Address": {
         "Addressline1": "PO Box 8881011",
         "Addressline2": "",
         "Addressline3": "",
         "City": "Grand Rapids",
         "ZipCode": "49588",
         "StateInfo": {
            "StateAbbrevationCode": "MI"
         },
         "CountryInfo": {
            "CountryCode": "US"
         }
      },
      "RegistrationDetails": []
   },
   "SupplierContact": {
      "EmailAddress": "123@gep.com",
      "FirstName": "Carla",
      "LastName": "Wells"
   },
   "BuyerContact": {
      "EmailAddress": "123@gep.com",
      "FirstName": "Debra",
      "LastName": "Underwood"
   },
   "AvailableInvoiceTaxAmount": 0,
   "Billable": false,
   "IsMultiDocInvoice": false,
   "Currency": "USD",
   "Tax": 0,
   "HeaderEntities": [
      {
         "EntityCode": "NUUS"
      },
      {
         "EntityCode": "0100"
      },
      {
         "EntityCode": "132"
      }
   ],
   "ERPOrderType": 0,
   "SourceSystemName": "KNA-SAP",
   "OrderTotal": 50300,
   "OrderDate": "2019-01-18T17:52:26",
   "Precision": 0,
   "CustomAttributes": [],
   "ClientPartnerCode": "0080005119",
   "ClientContactCode": "zaktxl03",
   "RemitToLocation": {
      "LocationName": "SUNBELT RENTALS INC",
      "Address": {
         "Addressline1": "Please Enter Address",
         "Addressline2": "409211",
         "City": "ATLANTA",
         "ZipCode": "30384-9211",
         "StateInfo": {
            "StateAbbrevationCode": "GA"
         },
         "CountryInfo": {
            "CountryCode": "US",
            "CountryName": "United States"
         },
         "PhoneNo1": "(606) 928-8118",
         "PhoneNo2": "",
         "FaxNo": ""
      },
      "RegistrationDetails": []
   },
   "PaymentTermsDetails": {
      "NoOfDays": 0,
      "Discount": 0,
      "DiscountDays": 0,
      "PaymentTermCode": "NT75"
   },
   "ItemTotalAmount": -10000,
   "Shipping": -100,
   "AdditionalCharges": 0,
   "TotalAmount": 0,
   "Comments": [
      {
         "CommentText": "The MEMO SCRM-08:19-05855 HAS BEEN SCRM-08:19-05855 by Vishwas\n"
      }
   ],
   "CreditMemoItems": [
      {
         "BuyerItemNumber": "002500000010001082",
         "ItemLineNumber": 1,
         "Description": "Glass Phone",
         "ItemType": "Material",
         "UnitPrice": -4000,
         "Quantity": 8,
         "UOM": "EA",
         "InvoiceLineNumber": 0,
         "POLineItemNumber": 1,
         "ItemTotalAmount": 0,
         "CreditAmount": -10000,
         "SupplierPartId": "",
         "AdditionalCharges": 0,
         "Tax": 0,
         "ShippingCharges": 0,
         "Billable": "no",
         "Comments": [],
         "ExternalTax": 0,
         "DocumentItemShippingDetails": [],
         "CreditMemoSplitItems": [
            {
               "DocumentSplitItemEntities": [
                  {
                     "EntityType": "Business Region",
                     "EntityCode": "",
                     "EntityDisplayName": ""
                  },
                  {
                     "EntityType": "Source System",
                     "EntityCode": "",
                     "EntityDisplayName": ""
                  },
                  {
                     "EntityType": "Item Category",
                     "EntityCode": "Blank",
                     "EntityDisplayName": "Standard"
                  },
                  {
                     "EntityType": "Company Code",
                     "EntityCode": "NUUS",
                     "EntityDisplayName": "NUUS - Kellogg USA, Inc"
                  },
                  {
                     "EntityType": "GL Code",
                     "EntityCode": "",
                     "EntityDisplayName": ""
                  },
                  {
                     "EntityType": "Cost Center",
                     "EntityCode": "",
                     "EntityDisplayName": ""
                  },
                  {
                     "EntityType": "Network",
                     "EntityCode": "",
                     "EntityDisplayName": ""
                  },
                  {
                     "EntityType": "Internal Order",
                     "EntityCode": "",
                     "EntityDisplayName": ""
                  },
                  {
                     "EntityType": "Plant",
                     "EntityCode": "0393",
                     "EntityDisplayName": "Mfg - Lancaster, PA"
                  },
                  {
                     "EntityType": "Purchasing Org",
                     "EntityCode": "0100",
                     "EntityDisplayName": "NA Indirect"
                  },
                  {
                     "EntityType": "Purchasing Group",
                     "EntityCode": "132",
                     "EntityDisplayName": "Lancaster Stores"
                  },
                  {
                     "EntityType": "Account Assignment",
                     "EntityCode": "",
                     "EntityDisplayName": ""
                  },
                  {
                     "EntityType": "Material Group Level 1",
                     "EntityCode": "--",
                     "EntityDisplayName": "--"
                  },
                  {
                     "EntityType": "Material Group Level 2",
                     "EntityCode": "--",
                     "EntityDisplayName": "--"
                  },
                  {
                     "EntityType": "Material Group Level 3",
                     "EntityCode": "ELECCNTRL",
                     "EntityDisplayName": "ELECTRIC CONTROL"
                  }
               ],
               "SplitItemTotal": 0,
               "CustomAttributes": [],
               "Quantity": 0,
               "Percentage": 0
            }
         ]
      }
   ]
}

 

Success Scenario – Response

{
   "data": null,
   "statusCode": "200",
   "errorDetails": [],
   "successDetails": [
      {
         "key": "SCRM_Orderbase_1"
      }
   ]
}

 

Error Scenario – Request
 

{
   "BasicDetails": {
      "DocumentName": "Order based Credit Memo for PO90938174 1",
      "DocumentNumber": "SCRM_Orderbase_2",
      "CreatedOn": "2019-04-18T13:50:03",
      "DocumentLobDetails": [
         {
            "EntityCode": "KNA-SAP"
         }
      ],
      "OperationName": "new"
   },
   "MemoReceivedDate": "2020-04-24T08:57:18.587",
   "OrderNumber": "PO90938174",
   "PartnerInvoiceDate": "2020-05-14T06:32:51.6220872",
   "DocumentOrigin": "supplier",
   "BilltoLocation": {
      "LocationName": "GBS Center",
      "LocationNumber": "NUUS",
      "Address": {
         "Addressline1": "PO Box 8881011",
         "Addressline2": "",
         "Addressline3": "",
         "City": "Grand Rapids",
         "ZipCode": "49588",
         "StateInfo": {
            "StateAbbrevationCode": "MI"
         },
         "CountryInfo": {
            "CountryCode": "US"
         }
      },
      "RegistrationDetails": []
   },
   "SupplierContact": {
      "EmailAddress": "123@gep.com",
      "FirstName": "Carla",
      "LastName": "Wells"
   },
   "BuyerContact": {
      "EmailAddress": "123@gep.com",
      "FirstName": "Debra",
      "LastName": "Underwood"
   },
   "AvailableInvoiceTaxAmount": 0,
   "Billable": false,
   "IsMultiDocInvoice": false,
   "Currency": "USD",
   "Tax": 0,
   "HeaderEntities": [
      {
         "EntityCode": "NUUS"
      },
      {
         "EntityCode": "0100"
      },
      {
         "EntityCode": "132"
      }
   ],
   "ERPOrderType": 0,
   "SourceSystemName": "KNA-SAP",
   "OrderTotal": 50300,
   "OrderDate": "2019-01-18T17:52:26",
   "Precision": 0,
   "CustomAttributes": [],
   "ClientPartnerCode": "0080005119",
   "ClientContactCode": "zaktxl03",
   "RemitToLocation": {
      "LocationName": "SUNBELT RENTALS INC",
      "Address": {
         "Addressline1": "Please Enter Address",
         "Addressline2": "409211",
         "City": "ATLANTA",
         "ZipCode": "30384-9211",
         "StateInfo": {
            "StateAbbrevationCode": "GA"
         },
         "CountryInfo": {
            "CountryCode": "US",
            "CountryName": "United States"
         },
         "PhoneNo1": "(606) 928-8118",
         "PhoneNo2": "",
         "FaxNo": ""
      },
      "RegistrationDetails": []
   },
   "PaymentTermsDetails": {
      "NoOfDays": 0,
      "Discount": 0,
      "DiscountDays": 0,
      "PaymentTermCode": "NT75"
   },
   "ItemTotalAmount": -10000,
   "Shipping": -100,
   "AdditionalCharges": 0,
   "TotalAmount": 0,
   "Comments": [
      {
         "CommentText": "The MEMO SCRM-08:19-05855 HAS BEEN SCRM-08:19-05855 by Vishwas\n"
      }
   ],
   "CreditMemoItems": [
      {
         "BuyerItemNumber": "002500000010001082",
         "ItemLineNumber": 1,
         "Description": "Glass Phone",
         "ItemType": "Material",
         "UnitPrice": -4000,
         "Quantity": 8,
         "UOM": "EA",
         "InvoiceLineNumber": 0,
         "POLineItemNumber": 1,
         "ItemTotalAmount": 0,
         "CreditAmount": -10000,
         "SupplierPartId": "",
         "AdditionalCharges": 0,
         "Tax": 0,
         "ShippingCharges": 0,
         "Billable": "no",
         "Comments": [],
         "ExternalTax": 0,
         "DocumentItemShippingDetails": [],
         "CreditMemoSplitItems": [
            {
               "DocumentSplitItemEntities": [
                  {
                     "EntityType": "Business Region",
                     "EntityCode": "",
                     "EntityDisplayName": ""
                  },
                  {
                     "EntityType": "Source System",
                     "EntityCode": "",
                     "EntityDisplayName": ""
                  },
                  {
                     "EntityType": "Item Category",
                     "EntityCode": "Blank",
                     "EntityDisplayName": "Standard"
                  },
                  {
                     "EntityType": "Company Code",
                     "EntityCode": "NUUS",
                     "EntityDisplayName": "NUUS - Kellogg USA, Inc"
                  },
                  {
                     "EntityType": "GL Code",
                     "EntityCode": "",
                     "EntityDisplayName": ""
                  },
                  {
                     "EntityType": "Cost Center",
                     "EntityCode": "",
                     "EntityDisplayName": ""
                  },
                  {
                     "EntityType": "Network",
                     "EntityCode": "",
                     "EntityDisplayName": ""
                  },
                  {
                     "EntityType": "Internal Order",
                     "EntityCode": "",
                     "EntityDisplayName": ""
                  },
                  {
                     "EntityType": "Plant",
                     "EntityCode": "0393",
                     "EntityDisplayName": "Mfg - Lancaster, PA"
                  },
                  {
                     "EntityType": "Purchasing Org",
                     "EntityCode": "0100",
                     "EntityDisplayName": "NA Indirect"
                  },
                  {
                     "EntityType": "Purchasing Group",
                     "EntityCode": "132",
                     "EntityDisplayName": "Lancaster Stores"
                  },
                  {
                     "EntityType": "Account Assignment",
                     "EntityCode": "",
                     "EntityDisplayName": ""
                  },
                  {
                     "EntityType": "Material Group Level 1",
                     "EntityCode": "--",
                     "EntityDisplayName": "--"
                  },
                  {
                     "EntityType": "Material Group Level 2",
                     "EntityCode": "--",
                     "EntityDisplayName": "--"
                  },
                  {
                     "EntityType": "Material Group Level 3",
                     "EntityCode": "ELECCNTRL",
                     "EntityDisplayName": "ELECTRIC CONTROL"
                  }
               ],
               "SplitItemTotal": 0,
               "CustomAttributes": [],
               "Quantity": 0,
               "Percentage": 0
            }
         ]
      }
   ]
}

 

Error Scenario – Response

{
   "data": null,
   "statusCode": "400",
   "errorDetails": [
      {
         "key": "SCRM_Orderbase_2",
         "errors": [
            {
               "errorCode": "MandatoryException",
               "errorDescription": "There was an error in processing the Credit Memo as Partner Memo Date is mandatory."
            }
         ]
      }
   ],
   "successDetails": []
}


 

Data Elements

SaveCreditMemo

Property

Required?

Data type

Description

Validations/Exceptions

Data

 

Attachments object

 

 

StatusCode

 

String

 

 

ErrorDetails

 

List of ErrorModel object

 

 

SuccessDetails

 

List of SuccessModel object

 

 

Data

Property

Required?

Data type

Description

Validations/Exceptions

BasicDetails

 

basicDetails object

 Basic details of an object

 

DocumentLobDetails

 

documentLobDetails object

 Document LOB details

 

partnerMemoNumber

 

string

Partner Memo Number

 

partnerInvoiceNumber

 

 string

 Partner invoice number

 

invoiceReferenceNumber

 

String

Invoice Reference Number

 

partnerName

 

 String

 Partner name

 

partnerMemoDate

 

 DateTime

 Partner memo date

 

memoReceivedDate

 

 DateTime

 Received date of memo

 

orderNumber

 

 String

 Order number

 

partnerInvoiceDate

 

 DateTime

 Partner invoice date

 

documentOrigin

 

 String

 Origin of the document

 

billtoLocation

 

billtoLocation object

 Bill to location

 

supplierContact

 

supplierContact object

Supplier Contact

 

buyerContact

 

buyerContact object

Buyer Contact

 

availableInvoiceTaxAmount

 

Int

 Invoice tax amount

 

Billable

 

 True

 

 

isMultiDocInvoice

 

 True

 

 

Currency

 

 String

 Amount details

 

Tax

 

Int

 

 

headerEntities

 

headerEntities object

 Header level entities

 

erpOrderType

 

Int

 ERP order type

 

sourceSystemName

 

 String

 Source system name

 

orderTotal

 

Int

 Order total

 

orderDate

 

DateTime

 Date of an order

 

Precision

 

Int

 Precision

 

buyerVATNumber

 

String

Buyer VAT Number

 

supplierVATNumber

 

String

Supplier VAT Number

 

customAttributes

 

customAttributes

 Customize attributes

 

clientPartnerCode

 

 String

 Client partner code

 

clientContactCode

 

 String

 Client contact code

 

remitToLocation

 

remitToLocation

 

 

paymentTermsDetails

 

paymentTermsDetails object

 Details for payment terms

 

itemTotalAmount

 

Int

 Total amount of an item

 

Shipping

 

Int

 Shipping details

 

additionalCharges

 

Int

 Additional charges

 

totalAmount

 

Int

 Total amount

 

Comments

 

comments object

 Reason

 

attachment

 

attachment object

 Attachment

 

creditMemoItems

 

creditMemoItems object

 

 

BasicDetails

Property

Required?

Data type

Description

Validations/Exceptions

documentName

 

string

Name of the document

 

documentNumber

 

string

Number of the document

 

documentStatus

 

string

Status of the document

 

documentCreator

 

string

Creator of the document

 

createdOn

 

string

Date on which the document is created

 

documentBu

 

documentBu object

 

 

documentLobDetails

 

documentLobDetails object

 

 

operationName

 

string

 

 

DocumentLobDetails

Property

Required?

Data type

Description

Validations/Exceptions

 entityCode

 

 string

 Entity code

 

 entityType

 

 string

 EntityType

 

BilltoLocation

Property

Required?

Data type

Description

Validations/Exceptions

locationName

 

 string

 Name of the location

 

locationNumber

 

 string

 Location number

 

address

 

address object

 Address

 

deliverTo

 

deliverTo

string

 

registrationDetails

 

registrationDetails object

 Registration details

 

Address

Property

Required?

Data type

Description

Validations/Exceptions

 addressline1

 

 string

 

 

 addressline2

 

 string

 

 

 addressline3

 

 string

 

 

 city

 

 string

 City name

 

 zipCode

 

 string

 Zip code

 

stateInfo

 

stateInfo object

 

 

countryInfo

 

countryInfo object

 

 

phoneNo1

 

 string

 

 

extenstionNo1

 

 string

 

 

phoneNo2

 

 string

 

 

extenstionNo2

 

 string

 

 

mobileNo

 

 string

 Mobile number

 

faxNo

 

 string

 Fax number

 

county

 

 string

 Country name

 

StateInfo

Property

Required?

Data type

Description

Validations/Exceptions

stateAbbrevationCode

 

String

State abbreviation code

 

stateName

 

String

Name of the state

 

CountryInfo

Property

Required?

Data type

Description

Validations/Exceptions

countryCode

 

String

Country code

 

countryName

 

String

Name of the country

 

RegistrationDetails

Property

Required?

Data type

Description

Validations/Exceptions

companyIdentificationDisplayName

 

String

 

 

companyIdentification

 

String

 

 

SupplierContact

Property

Required?

Data type

Description

Validations/Exceptions

clientContactCode

 

String

 

 

emailAddress

 

String

 

 

firstName

 

String

 

 

lastName

 

String

 

 

BuyerContact

Property

Required?

Data type

Description

Validations/Exceptions

clientContactCode

 

String

 

 

emailAddress

 

String

 

 

firstName

 

String

 

 

lastName

 

String

 

 

HeaderEntities

Property

Required?

Data type

Description

Validations/Exceptions

 entityCode

 

 string

Entity code

 

 entityType

 

 true

Entity Type

 

CustomAttributes

Property

Required?

Data type

Description

Validations/Exceptions

questionnaireTitle

 

String

Title of the questionnaire

 

questionnaireResponseValues

 

List of questionnaireResponseValues

Response value for the questionnaire

 

QuestionnaireResponseValues

Property

Required?

Data type

Description

Validations/Exceptions

 childQuestionSets

 

 List of customattributes

 

 

 columnText

 

 string

 

 

 responseValue

 

 string

 

 

 rowId

 

 string

 

 

RemitToLocation

Property

Required?

Data type

Description

Validations/Exceptions

locationName

 

 string

 Location name

 

locationNumber

 

 string

 Location number

 

Address

 

address object

 Address

 

deliverTo

 

string

deliverTo

 

registrationDetails

 

registrationDetails object

 Registration details

 

PaymentTermsDetails

Property

Required?

Data type

Description

Validations/Exceptions

noOfDays

 

int

 Number of days

 

 discount

 

int

 

 

 discountDays

 

int

 Discount days

 

 paymentTermCode

 

 string

 Payment term code

 

 paymentTermName

 

 string

 Payment term name

 

Comments

Property

Required?

Data type

Description

Validations/Exceptions

 commentText

 

 string

 

 

 accessType

 

 string

 

 

Attachment

Property

Required?

Data type

Description

Validations/Exceptions

filename

 

String

File name

 

fileUri

 

string

File URL

 

attachmentData

 

 string

Data in attachment

 

Extension

 

string

Extension

 

contentTransferEncoding

 

string

Content Transfer Encoding

 

CreditMemoItems

Property

Required?

Data type

Description

Validations/Exceptions

 itemNumber

 

 string

 Item number

 

 itemLineNumber

 

 int

 Line item number

 

 Description

 

 string

 Description for the credit memo items

 

 itemType

 

 string

 Item type

 

 unitPrice

 

 int

 Unit price

 

 Quantity

 

 int

 Volume

 

 Uom

 

 string

 Unit of measurement

 

 invoiceLineNumber

 

 int

 Line number for invoice

 

 poLineItemNumber

 

 int

 Line item number for purchase order

 

 itemTotalAmount

 

 int

 Item total amount

 

creditAmount

 

 int

 Credit amount

 

supplierPartId

 

 string

 

 

additionalCharges

 

 int

 Additional charges

 

Tax

 

 int

 Tax

 

shippingCharges

 

 int

 Shipping charges

 

manufacturerName

 

 string

 Manufacture name

 

manufacturerPartNumber

 

 string

 Manufacture part number

 

billable

 

 string

 

 

comments

 

List of comments object

 Reason

 

externalTax

 

decimal

 External tax

 

creditMemoItemTaxes

 

List of creditMemoItemTax

CreditMemo Item Taxes

 

ExternalTaxes

 

List of externalTaxes

External Taxes

 

customAttributes

 

List of customAttributes

Custom Attributes

 

documentItemShippingDetails

 

List of documentItemShippingDetails object

 Shipping details for document item

 

creditMemoSplitItems

 

List of creditMemoSplitItems

 Credit memo split items

 

CreditMemoItemTaxes

Property

Required?

Data type

Description

Validations/Exceptions

taxLevelType

 

 string

 Tax Level Type

 

taxCode

 

 string

Tax Code

 

taxValue

 

Decimal

 Tax Value

 

taxMode

 

string

 Tax Mode

 

taxType

 

string

Tax Type

 

taxDescription

 

string

 Tax Description

 

taxModeType

 

string

 Tax Mode Type

 

ExternalTaxes

Property

Required?

Data type

Description

Validations/Exceptions

taxRate

 

 Decimal

 Tax Rate

 

taxCode

 

 string

Tax Code

 

taxValue

 

Decimal

 Tax Value

 

taxMode

 

string

 Tax Mode

 

taxType

 

String

Tax Type

 

authorityName

 

String

Authority Name

 

locationCode

 

String

Location Code

 

taxRateCode

 

String

Tax Rate Code

 

effectiveTaxLevel

 

String

Effective Tax Level

 

officialName

 

String

Official Name

 

taxBase

 

String

Tax Base

 

taxAddress

 

taxAddress object

 Tax Address

 

TaxAddress

Property

Required?

Data type

Description

Validations/Exceptions

 addressline1

 

 string

 

 

 addressline2

 

 string

 

 

 addressline3

 

 string

 

 

 city

 

 string

 City name

 

 zipCode

 

 string

 Zip code

 

stateInfo

 

stateInfo object

 

 

countryInfo

 

countryInfo object

 

 

phoneNo1

 

 string

 

 

extenstionNo1

 

 string

 

 

phoneNo2

 

 string

 

 

extenstionNo2

 

 string

 

 

mobileNo

 

 string

 Mobile number

 

faxNo

 

 string

 Fax number

 

county

 

 string

 Country name

 

DocumentItemShippingDetails

Property

Required?

Data type

Description

Validations/Exceptions

shiptoLocation

 

shiptoLocation object

 

 

delivertoLocation

 

delivertoLocation object

 

 

shippingMethod

 

 string

 

 

ShiptoLocation

Property

Required?

Data type

Description

Validations/Exceptions

locationName

 

 string

 Location name

 

locationNumber

 

 string

 Location number

 

Address

 

address object

 Address

 

deliverTo

 

string

Deliver To

 

registrationDetails

 

registrationDetails object

 Registration details

 

DelivertoLocation

Property

Required?

Data type

Description

Validations/Exceptions

locationName

 

 string

 Location name

 

locationNumber

 

 string

 Location number

 

Address

 

address object

 Address

 

deliverTo

 

string

Deliver To

 

registrationDetails

 

registrationDetails object

 Registration details

 

CreditMemoSplitItems

Property

Required?

Data type

Description

Validations/Exceptions

documentSplitItemEntities

 

List of documentSplitItemEntities

 

 

splitItemTotal

 

Decimal

 

 

customAttributes

 

List of  Custom attributes object

 

 

splitType

 

Decimal

 

 

Quantity

 

Decimal

 

 

percentage

 

Decimal

 

 

DocumentSplitItemEntities

Property

Required?

Data type

Description

Validations/Exceptions

 entityCode

 

 string

Entity code

 

 entityType

 

 string

Entity type

 

 entityDisplayName

 

 string

Display name for an entity

 

ErrorDetails

Property

Required?

Data type

Description

Validations/Exceptions

Key

 

String

 

 

Errors

 

List of Error object

 

 

Errors

Property

Required?

Data type

Description

Validations/Exceptions

ErrorCode

 

String

 

 

ErrorDescription

 

String

 

 

SuccessDetails

Property

Required?

Data type

Description

Validations/Exceptions

Key

 

String