Update or edit existing customers
End Point
'CreateOrUpdate' API end point is used to update/edit existing customers.
POST
https://{tenant_name}.p4warehouse.com/api/CustomerApi/CreateOrUpdate
Headers
Name
Type
Description
ApiKey*
String
System API key
Request Body
Name
Type
Description
"Id"*
String
Customer Id number assinged by the system
{
"$id": "1",
"CustomerCode": "123456",
"ClientId": null,
"Client": null,
"CompanyName": "Demo",
"ContactPerson": "A.Smith",
"Email": null,
"Phone": null,
"TaxId": null,
"BillToName": null,
"BillToPhone": null,
"BillToAddress1": null,
"BillToAddress2": null,
"BillToCity": null,
"BillToStateProvince": null,
"BillToZipPostal": null,
"BillToCountry": null,
"DefaultCountOnShip": null,
"DefaultSignOnShip": null,
"DefaultCountOnDelivery": null,
"DefaultSignOnDelivery": null,
"TruckLoadConsolidationGroup": null,
"Description": "API test",
"Logo": null,
"PackslipDisclaimer": null,
"ProformaInvoiceDisclaimer": null,
"ReturnsDisclaimer": null,
"IsGeneratePickTicketBackOrder": null,
"IsPrintPackslipOnShip": null,
"IsPrintTruckLoadOnSign": null,
"OutboundProductExpiryAllowance": null,
"InboundProductExpiryAllowance": null,
"Addresses": [],
"PickTickets": [],
"CustomerReturns": [],
"CartonizationProfileId": null,
"CartonizationProfile": null,
"Info1": null,
"Info2": null,
"Info3": null,
"Info4": null,
"Info5": null,
"Info6": null,
"Info7": null,
"Info8": null,
"Info9": null,
"Info10": null,
"Id": "f9777821-1ae4-4953-a4cf-899572da1fbb",
"DateCreated": "2023-08-16T19:34:27.0205882+00:00",
"TypeName": "Pro4Soft.TenantData.Entities.Business.Fulfillment.Customer",
"TypeNameShort": "Customer"
}
Available fields
"CustomerCode": String
"CompanyName": String
"ContactPerson": String
"Email": String
"Phone": String
"TaxId": String
"BillToName": String
"BillToPhone": String
"BillToAddress1": String
"BillToAddress2": String
"BillToCity": String
"BillToStateProvince": String
"BillToZipPostal": String
"BillToCountry": String
"Description": String
"Info1": String
"Info2": String
"Info3": String
"Info4": String
"Info5": String
"Info6": String
"Info7": String
"Info8": String
"Info9": String
"Info10": String