auto add shopify customer to crm tracking pipeline

main
alex 2024-08-12 20:26:31 +02:00
parent 22c41ea006
commit 4a1e34c6c7
2 changed files with 38 additions and 0 deletions

View File

@ -58,6 +58,8 @@ def CreateCrmCustomer():
"FirstName": customerName,
"Email": customerEmail,
"LeadOrigin": "Shopify Customer added by GroupTask",
"Pipeline": 2,
"DealPhase": 2,
})
print(f"CreateCrmCustomer response status code {response.status_code}")

View File

@ -244,6 +244,42 @@
}
}
},
"/crm/customer/delete/{id}": {
"delete": {
"produces": [
"application/json"
],
"tags": [
"crm"
],
"summary": "Delete crm customer",
"operationId": "crmDeleteCrmCustomer",
"parameters": [
{
"description": "Customer id",
"name": "id",
"in": "path"
}
],
"responses": {
"200": {
"description": "Crm customer deleted"
},
"400": {
"description": "Invalid request query"
},
"401": {
"description": "No permissions"
},
"404": {
"description": "Crm customer not found"
},
"500": {
"description": "Failed to delete crm customer"
}
}
}
},
"/crm/customer/update/{id}": {
"post": {
"produces": [