API integration
Last updated
Last updated
Content-Type:application/json
api_secret: 6ed0a...3bad
api_key: eyJ....MDkPOST /jsonApi/upload/invoices
Content-Type:application/json
[{
// body of post payload. See below
}] "companyCode": {
"type": "string"
},
"profitCenter": {
"type": "string"
},
"customerName": {
"type": "string"
},
"customerNumber": {
"type": "string",
"required": true
},
"accountingDocNumber": {
"type": "string"
},
"invoiceNumber": {
"type": "string",
"required": true
},
"postDate": {
"type": "date"
},
"dueDate": {
"type": "date"
},
"paymentTerms": {
"type": "string"
},
"documentType": {
"type": "string"
},
"postingKey": {
"type": "string"
},
"debitCreditIndicator": {
"type": "string"
},
"balanceAmount": {
"type": "string"
},
"billAddr": {
"type": "json"
},
"shipAddr": {
"type": "json"
},
"currency": {
"type": "string"
},
"invoiceAmount": {
"type": "integer",
"required": true
},
"reasonCode": {
"type": "string"
},
"reasonCodeDescription": {
"type": "string"
},
"fiscalYear": {
"type": "string"
},
"invoiceDate": {
"type": "date"
},
"reference1": {
"type": "string"
},
"reference2": {
"type": "string"
},
"localAmount": {
"type": "integer"
},
"itemText": {
"type": "string"
},
"fiscalPeriod": {
"type": "string"
},
"issueDate": {
"type": "date"
},
"soldTo": {
"type": "string"
},
"lineItem": {
"type": "string"
},
"referenceDocNo": {
"type": "string"
},
"status": {
"type": "string"
}{
customerNumber: "23123123",
invoiceNumber: "21321",
invoiceAmount: 12112
}POST /jsonApi/upload/customers
Content-Type:application/json
[{
// body of customer. See below
}] "companyname": {
"type": "string"
},
"firstname": {
"type": "string"
},
"lastname": {
"type": "string"
},
"phoneno": {
"type": "string"
},
"emailaddress1": {
"type": "string",
"required": true
},
"customerno": {
"type": "string",
"required": true
},
"cocode": {
"type": "string"
}[{
"companyname" : "Payorcrm LLC",
"firstname" : "John",
"lastname": "Doe",
"phoneno": "+11122334455",
"emailaddress1": "[email protected]",
"customerno" : "231231201",
"cocode": "XY22"
}]