Skip to content

Easyflow (1.0)

Easyflow API Document

This is the API documentation and must be used by everyone who wants to integrate with the Easyflow platform.

Download OpenAPI description
Overview
License

Languages
Servers
Mock server

https://docs.easyflow.digital/_mock/openapi/

Production environment URL

https://9iq81tsdy4.execute-api.sa-east-1.amazonaws.com/

Operations
Operations
Operations
Operations
Operations
Operations
Operations

Request

Returns a list of customers.

Query
emailstring
documentNumberstring
createdAt[startsAt]string
createdAt[endsAt]string
updatedAt[startsAt]string
updatedAt[endsAt]string
pagestringrequired

Page number to access

limitstringrequired

Number of items to be loaded per page

Headers
x-api-keystringrequired

Api key provided on integrations tab in Easyflow platform.

x-api-secretstringrequired

Api Secret provided on integrations tab in Easyflow platform.

business-idstringrequired

Business Identifier

curl -i -X GET \
  'https://docs.easyflow.digital/_mock/openapi/customers/list?email=string&documentNumber=string&createdAt%5BstartsAt%5D=string&createdAt%5BendsAt%5D=string&updatedAt%5BstartsAt%5D=string&updatedAt%5BendsAt%5D=string&page=string&limit=string' \
  -H 'business-id: string' \
  -H 'x-api-key: string' \
  -H 'x-api-secret: string'

Responses

Returns a list of customers.

Bodyapplication/json
statusCodeinteger
Example: 200
dataobject
Response
application/json
{ "statusCode": 200, "data": { "docs": [ … ], "limit": 0, "currentPage": 0, "hasNext": true, "nextPage": 0, "totalDocs": 0, "totalPages": 0 } }

Request

Use it to get order

Path
customerIdstringrequired
Headers
x-api-keystringrequired

Api key provided on integrations tab in Easyflow platform.

x-api-secretstringrequired

Api Secret provided on integrations tab in Easyflow platform.

curl -i -X GET \
  'https://docs.easyflow.digital/_mock/openapi/customers/{customerId}' \
  -H 'x-api-key: string' \
  -H 'x-api-secret: string'

Responses

returns the details of a customer

Bodyapplication/json
statusCodeinteger
Example: 200
dataobject
Response
application/json
{ "statusCode": 200, "data": { "customer": { … } } }

Request

Use it to remove customer

Path
customerIdstringrequired
Headers
x-api-keystringrequired

Api key provided on integrations tab in Easyflow platform.

x-api-secretstringrequired

Api Secret provided on integrations tab in Easyflow platform.

curl -i -X DELETE \
  'https://docs.easyflow.digital/_mock/openapi/customers/remove/{customerId}' \
  -H 'x-api-key: string' \
  -H 'x-api-secret: string'

Responses

returns true if you managed to delete the customer.

Bodyapplication/json
statusCodeinteger
Example: 200
dataobject
Response
application/json
{ "statusCode": 200, "data": { "deleted": true } }

Request

Route to create customer

Headers
x-api-keystringrequired

Api key provided on integrations tab in Easyflow platform.

x-api-secretstringrequired

Api Secret provided on integrations tab in Easyflow platform.

Bodyapplication/json
businessIdstringrequired
namestringrequired
emailstringrequired
addressobject
deliveryAddressobject
documentobjectrequired
document.​typestring
document.​numberstring
phoneobject
curl -i -X POST \
  https://docs.easyflow.digital/_mock/openapi/customers \
  -H 'Content-Type: application/json' \
  -H 'x-api-key: string' \
  -H 'x-api-secret: string' \
  -d '{
    "businessId": "string",
    "name": "string",
    "email": "string",
    "address": {
      "zipCode": "string",
      "street": "string",
      "complement": "string",
      "neighborhood": "string",
      "city": "string",
      "state": "string",
      "number": "string"
    },
    "deliveryAddress": {
      "zipCode": "string",
      "street": "string",
      "complement": "string",
      "neighborhood": "string",
      "city": "string",
      "state": "string",
      "number": "string"
    },
    "document": {
      "type": "string",
      "number": "string"
    },
    "phone": {
      "areaCode": "string",
      "ddd": "string",
      "number": "string",
      "isMobile": true
    }
  }'

Responses

returns customer if you managed to create the customer.

Bodyapplication/json
statusCodeinteger
Example: 200
dataobject
Response
application/json
{ "statusCode": 200, "data": { "customer": { … } } }

Request

Path
customerIdstringrequired
Headers
x-api-keystringrequired

Api key provided on integrations tab in Easyflow platform.

x-api-secretstringrequired

Api Secret provided on integrations tab in Easyflow platform.

Bodyapplication/json
namestring
addressobject
deliveryAddressobject
documentobject
phoneobject
curl -i -X PATCH \
  'https://docs.easyflow.digital/_mock/openapi/customers/update/{customerId}' \
  -H 'Content-Type: application/json' \
  -H 'x-api-key: string' \
  -H 'x-api-secret: string' \
  -d '{
    "name": "string",
    "address": {
      "zipCode": "string",
      "street": "string",
      "complement": "string",
      "neighborhood": "string",
      "city": "string",
      "state": "string",
      "number": "string"
    },
    "deliveryAddress": {
      "zipCode": "string",
      "street": "string",
      "complement": "string",
      "neighborhood": "string",
      "city": "string",
      "state": "string",
      "number": "string"
    },
    "document": {
      "type": "string",
      "number": "string"
    },
    "phone": {
      "areaCode": "string",
      "ddd": "string",
      "number": "string",
      "isMobile": true
    }
  }'

Responses

returns true if you managed to update the customer.

Bodyapplication/json
object
Response
application/json
{}
Operations