auto add shopify customer to crm tracking pipeline
parent
22c41ea006
commit
4a1e34c6c7
|
@ -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}")
|
||||
|
|
|
@ -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": [
|
||||
|
|
Loading…
Reference in New Issue