Easyflow API Document
Request
Listen to order events to keep your integration always synchronized.
Webhooks are the safest and most reliable way to stay updated in real time.
Your application will receive a notification whenever the status of a order changes.
- ORDER_CREATED — Order created.
- ORDER_UPDATED — Order updated.
- ORDER_PAID — Order fully paid.
- ORDER_PARTIALLY_PAID — Order partially paid.
- ORDER_CANCELED — Order canceled.
- ORDER_REFUNDED — Order refunded.
- ORDER_CHARGEDBACK — Order chargeback received.
Webhook payload received by your server in the event of an event.
- Mock serverhttps://docs.easyflow.digital/_mock/openapi/Order Event
- Production environment URLhttps://9iq81tsdy4.execute-api.sa-east-1.amazonaws.com/Order Event
{ "event": "string", "data": { "id": "string", "status": "pending", "valueInCents": 0, "createdAt": "2019-08-24T14:15:22Z", "buyer": { … }, "business": { … }, "coupon": { … }, "items": [ … ], "payments": [ … ] } }
Request
Listen to subscription events to keep your integration always synchronized.
Webhooks are the safest and most reliable way to stay updated in real time.
Your application will receive a notification whenever the status of a subscription changes.
- subscription.created — Subscription created.
- subscription.updated — Subscription updated.
- subscription.activated — Subscription activated.
- subscription.canceled — Subscription canceled.
- subscription.deactivated — Subscription deactivated.
- subscription.expired — Subscription expired.
- subscription.inactivated — Subscription inactivated.
Webhook payload received by your server in the event of an event.
Name of the event received.
- Mock serverhttps://docs.easyflow.digital/_mock/openapi/Subscription Event
- Production environment URLhttps://9iq81tsdy4.execute-api.sa-east-1.amazonaws.com/Subscription Event
{ "event": "subscription.created", "data": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string", "createdAt": "2019-08-24T14:15:22Z", "expiration": "2019-08-24T14:15:22Z", "installments": 0, "numberRecurrences": 0, "repeatIndefinitely": true, "periodicity": "Monthly", "status": "active", "paymentMethod": "credit-card", "recurrencePaymentStatus": "pending", "recurrenceValueInCents": 0, "customValue": { … }, "retry": { … }, "customer": { … }, "participants": [ … ] } }
Request
Listen to subscription recurrence events to keep your integration always synchronized.
Your application will receive a notification whenever the status of an individual recurrence (payment attempt) within a subscription changes.
- subscriptionRecurrence.canceled — Recurrence payment canceled.
- subscriptionRecurrence.delayed — Recurrence payment delayed.
- subscriptionRecurrence.failed — Recurrence payment failed.
- subscriptionRecurrence.paid — Recurrence payment successfully paid.
Payload de webhook contendo os dados do evento de Recorrência de Assinatura.
Nome do evento recebido.
- Mock serverhttps://docs.easyflow.digital/_mock/openapi/Subsctiption Recurrence Event
- Production environment URLhttps://9iq81tsdy4.execute-api.sa-east-1.amazonaws.com/Subsctiption Recurrence Event
{ "event": "subscriptionRecurrence.canceled", "data": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "subscriptionId": "d079718b-ff63-45dd-947b-4950c023750f", "status": "pending", "billingDate": "2019-08-24T14:15:22Z", "createdAt": "2019-08-24T14:15:22Z", "dueDate": "2019-08-24T14:15:22Z", "paidAt": "2019-08-24T14:15:22Z", "recurrence": 0, "recurrenceValueInCents": 0, "retry": { … }, "payments": [ … ] } }