---
title: "Integrations by R&D Copilot"
description: "Define versioned flows, connect systems and operate runs through the Integrations API."
canonical: "https://integrations.rdcopilot.com/"
language: en
updated: 2026-11-22
---

# Connect your software. Follow every run.

Set the steps, inspect their inputs and retry a failed call without redoing finished work.

[Request a proposal](https://rdcopilot.com/contact/?product=integrations) [Read the docs](https://integrations.rdcopilot.com/docs/)

What the animation shows:

1.  The shop's webhook sends order CV-1045, and a run starts.
2.  The run calls the ERP to create the sales order.
3.  The ERP gives no answer within 30 s, so attempt 1 times out.
4.  After a 1 s pause the run opens attempt 2 itself, with the order it already holds.
5.  The ERP answers in 2 s and returns sales order CV-1045.
6.  CRM and WMS start together.
7.  WMS answers in 2 s. CRM is still answering, and the run waits for it before it checks the total.
8.  Waiting for CRM: the run checks the total once CRM answers.

## Integrations

Order processing · v1

### Flow

1.  Sends to: Create in ERP
2.  Sends to: Start CRM and WMS
3.  Sends to: Update CRM, Prepare in WMS
4.  Sends to: Check order total
5.  Sends to: Check order total
6.  Sends to: Approve order, Cancellation window
7.  Sends to: Cancellation window
8.  Sends to: Order processed

Create in ERP

Call

Sends to

Start CRM and WMS

Receives from

New order

1.  New order, Trigger, Sends to: Create in ERP
2.  Create in ERP, Call, Sends to: Start CRM and WMS
3.  Start CRM and WMS, Parallel, Sends to: Update CRM, Prepare in WMS
4.  Update CRM, Call, Sends to: Check order total
5.  Prepare in WMS, Call, Sends to: Check order total
6.  Check order total, Branch, Sends to: Approve order (Above 2,500.00 RON), Cancellation window (2,500.00 RON or less)
7.  Approve order, Approval, Sends to: Cancellation window
8.  Cancellation window, Wait, Sends to: Order processed
9.  Order processed, End

### Create in ERP

Type

Call

Input mapping

`input.order.number`

Sends to

Start CRM and WMS

Receives from

New order

Retries

2

Time limit

30 s

Pause between attempts

1 s

Retries

Time limit (s)

Pause between attempts (s)

Attempts

CV-1045

-   ERP 1 / 3, 0 s to 30 s
-   ERP 2 / 3, 31 s to 33 s
-   CRM, 33 s to 35 s, now
-   WMS, 33 s to 35 s

Retry settings

StepCreate in ERP

Retries2

Time limit30 s

Pause between attempts1 s

Create in ERP

run-e2d8a7

Completed

Type

Call

Attempts

2 of 3

Time limit

30 s

Result

CV-1045

## A failed step, retried from where it stopped

The first ERP attempt reaches its 30 s limit. After a 1 s pause the run opens a second attempt on its own, with the order the trigger already received.

run-e2d8a7RunningOrder CV-1045 · 1,071.21 RON

1.  New orderCompleted
    
    09:11:22
    
    -   Kept: its output is reused, not repeated
    
2.  Create in ERPCompleted
    
    09:11:22
    
    -   Attempt 1 · 09:11:22 · timed out after 30 s
    -   Attempt 2 · 09:11:53 · completed in 2 s
    
3.  Start CRM and WMSCompleted
    
    09:11:55
    
    -   CRM and WMS start together
    
4.  Update CRMRunning
    
    09:11:55
    
    -   Attempt 1 · 09:11:55 · running
    

## Start a run from your code

curlJavaScriptPythonPHPC#

curl

Copy

```
curl -X POST "$RDC_BASE_URL/integrations/v1/runs" \
  -H "Authorization: Bearer $RDC_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "operationId": "33a22ec0-f0af-4498-a388-123456789abc",
  "expectedRevision": 1,
  "flowId": "flow-order",
  "version": 1,
  "correlationId": "api-b73a02d9",
  "input": {
    "order": {
      "number": "CV-1046",
      "currency": "RON",
      "netTotal": "2818.41"
    }
  }
}'
```

Response202 Accepted

```
{
  "operationId": "33a22ec0-f0af-4498-a388-123456789abc",
  "status": "accepted",
  "aggregateRevision": 1,
  "aggregateId": "run-b73a02"
}
```

[Quickstart](https://integrations.rdcopilot.com/docs/get-started/quickstart/)[API reference](https://integrations.rdcopilot.com/docs/api-reference/runs/)[Events](https://integrations.rdcopilot.com/docs/events/event-envelope/)

## What each kind of step guarantees

| Kind of step | Time limit | Retries | On failure |
| --- | --- | --- | --- |
| Trigger | — | None | A missing order number keeps the step from starting, so no call is made. |
| Call | 30 s | 2 retries, 1 s pause | After the last retry the run stops at this call; an operator can then add up to 2 attempts, and the steps already complete are kept. |
| Parallel | — | None | Each side fails on its own, and the other keeps its result. |
| Branch | — | None | Nothing fails here: a total above 2,500.00 RON goes to approval, a total at or below it skips approval. |
| Approval | 4 h | None | A rejection or a missed time limit stops the run here, and the order cannot be approved afterwards. |
| Wait | 1 h | None | The step cannot finish before 10 min have passed; at its time limit the run times out here. |
| End | — | None | The run completes only here, so an earlier failure never leaves it marked complete. |

## One order, through three systems

1.  Online shop
2.  [Integrations](https://integrations.rdcopilot.com/)
3.  [ERP](https://erp.rdcopilot.com/)
4.  [CRM](https://crm.rdcopilot.com/)
5.  [WMS](https://wms.rdcopilot.com/)

Approved and completed

1.  Online shop
    
    Receive the order
    
    The shop’s webhook starts a run for the order.
    
    Order
    
    CV-1036
    
    Run
    
    run-a07c52
    
    Order total
    
    2,700.24 RON
    
    Time
    
    07:56:20
    
    Completed
    
2.  ERP
    
    Create the sales order
    
    The ERP answers and returns sales order CV-1036.
    
    Order
    
    CV-1036
    
    Run
    
    run-a07c52
    
    Order total
    
    2,700.24 RON
    
    Time
    
    07:56:21
    
    Attempt
    
    1 / 3
    
    Completed
    
3.  CRM
    
    Update the sales record
    
    CRM links the order to Cofetăria Vălul Alb SRL.
    
    Order
    
    CV-1036
    
    Run
    
    run-a07c52
    
    Order total
    
    2,700.24 RON
    
    Time
    
    07:56:22
    
    Attempt
    
    1 / 3
    
    Completed
    
4.  WMS
    
    Prepare the delivery
    
    WMS opens the delivery while CRM updates the record, so neither waits for the other.
    
    Order
    
    CV-1036
    
    Run
    
    run-a07c52
    
    Order total
    
    2,700.24 RON
    
    Time
    
    07:56:23
    
    Attempt
    
    1 / 3
    
    Completed
    
5.  Integrations
    
    Check the order total
    
    2,700.24 RON is above the 2,500.00 RON limit, so the order goes to approval.
    
    Order
    
    CV-1036
    
    Run
    
    run-a07c52
    
    Order total
    
    2,700.24 RON
    
    Time
    
    07:56:23
    
    Completed
    
6.  Integrations
    
    Wait for the approval
    
    A person approves after 8 min 16 s.
    
    Order
    
    CV-1036
    
    Run
    
    run-a07c52
    
    Order total
    
    2,700.24 RON
    
    Time
    
    08:04:41
    
    Completed
    
7.  Integrations
    
    Hold the cancellation window
    
    The run waits 10 min, so the shop can still cancel the order.
    
    Order
    
    CV-1036
    
    Run
    
    run-a07c52
    
    Order total
    
    2,700.24 RON
    
    Time
    
    08:14:45
    
    Completed
    
8.  Integrations
    
    Close the run
    
    Every step is complete, so the run is marked completed.
    
    Order
    
    CV-1036
    
    Run
    
    run-a07c52
    
    Order total
    
    2,700.24 RON
    
    Time
    
    08:14:46
    
    Completed
    

ERP times out and is retried

1.  Online shop
    
    Receive the order
    
    The shop’s webhook starts a run for the order.
    
    Order
    
    CV-1045
    
    Run
    
    run-e2d8a7
    
    Order total
    
    1,071.21 RON
    
    Time
    
    09:11:22
    
    Completed
    
2.  ERP
    
    Reach the time limit
    
    The ERP does not answer within 30 s, so attempt 1 ends.
    
    Order
    
    CV-1045
    
    Run
    
    run-e2d8a7
    
    Order total
    
    1,071.21 RON
    
    Time
    
    09:11:52
    
    Attempt
    
    1 / 3
    
    Timed out
    
3.  Integrations
    
    Open the second attempt
    
    After a 1 s pause the run opens attempt 2 itself and reuses the order from the trigger.
    
    Order
    
    CV-1045
    
    Run
    
    run-e2d8a7
    
    Order total
    
    1,071.21 RON
    
    Time
    
    09:11:53
    
    Attempt
    
    2 / 3
    
    Running
    
4.  ERP
    
    Create the sales order
    
    The ERP answers after 2 s and returns sales order CV-1045.
    
    Order
    
    CV-1045
    
    Run
    
    run-e2d8a7
    
    Order total
    
    1,071.21 RON
    
    Time
    
    09:11:55
    
    Attempt
    
    2 / 3
    
    Completed
    
5.  CRM
    
    Update the sales record
    
    CRM is still answering; the run waits for it before it checks the total.
    
    Order
    
    CV-1045
    
    Run
    
    run-e2d8a7
    
    Order total
    
    1,071.21 RON
    
    Time
    
    09:11:55
    
    Attempt
    
    1 / 3
    
    Running
    
6.  WMS
    
    Prepare the delivery
    
    WMS opens the delivery while CRM updates the record, so neither waits for the other.
    
    Order
    
    CV-1045
    
    Run
    
    run-e2d8a7
    
    Order total
    
    1,071.21 RON
    
    Time
    
    09:11:57
    
    Attempt
    
    1 / 3
    
    Completed
    

Waiting for approval

1.  Online shop
    
    Receive the order
    
    The shop’s webhook starts a run for the order.
    
    Order
    
    CV-1042
    
    Run
    
    run-9a65d3
    
    Order total
    
    2,818.41 RON
    
    Time
    
    09:04:16
    
    Completed
    
2.  ERP
    
    Create the sales order
    
    The ERP answers and returns sales order CV-1042.
    
    Order
    
    CV-1042
    
    Run
    
    run-9a65d3
    
    Order total
    
    2,818.41 RON
    
    Time
    
    09:04:17
    
    Attempt
    
    1 / 3
    
    Completed
    
3.  CRM
    
    Update the sales record
    
    CRM links the order to Hanul Ozana SRL.
    
    Order
    
    CV-1042
    
    Run
    
    run-9a65d3
    
    Order total
    
    2,818.41 RON
    
    Time
    
    09:04:18
    
    Attempt
    
    1 / 3
    
    Completed
    
4.  WMS
    
    Prepare the delivery
    
    WMS opens the delivery while CRM updates the record, so neither waits for the other.
    
    Order
    
    CV-1042
    
    Run
    
    run-9a65d3
    
    Order total
    
    2,818.41 RON
    
    Time
    
    09:04:19
    
    Attempt
    
    1 / 3
    
    Completed
    
5.  Integrations
    
    Check the order total
    
    2,818.41 RON is above the 2,500.00 RON limit, so the order goes to approval.
    
    Order
    
    CV-1042
    
    Run
    
    run-9a65d3
    
    Order total
    
    2,818.41 RON
    
    Time
    
    09:04:19
    
    Completed
    
6.  Integrations
    
    Wait for a person’s decision
    
    The run stays open for 4 h; after that it times out at this step.
    
    Order
    
    CV-1042
    
    Run
    
    run-9a65d3
    
    Order total
    
    2,818.41 RON
    
    Time
    
    09:04:20
    
    Waiting for approval
    

### What each step writes

| Step | Record created or changed |
| --- | --- |
| 1 Receive the order | Run run-a07c52, with order CV-1036 attached |
| 2 Create the sales order | Sales order CV-1036 in ERP |
| 3 Update the sales record | Sales record OP-1036 in CRM |
| 4 Prepare the delivery | Delivery LIV-2026-01836 in WMS |
| 5 Check the order total | Run run-a07c52: the approval exit is taken |
| 6 Wait for the approval | Approval decision on run run-a07c52: approved |
| 7 Hold the cancellation window | Run run-a07c52: waiting step finished |
| 8 Close the run | Run run-a07c52: completed |

| Step | Record created or changed |
| --- | --- |
| 1 Receive the order | Run run-e2d8a7, with order CV-1045 attached |
| 2 Reach the time limit | Attempt 1 of the ERP step on run run-e2d8a7: timed out |
| 3 Open the second attempt | Attempt 2 of the ERP step on run run-e2d8a7 |
| 4 Create the sales order | Sales order CV-1045 in ERP |
| 5 Update the sales record | Sales record OP-1045 in CRM |
| 6 Prepare the delivery | Delivery LIV-2026-01845 in WMS |

| Step | Record created or changed |
| --- | --- |
| 1 Receive the order | Run run-9a65d3, with order CV-1042 attached |
| 2 Create the sales order | Sales order CV-1042 in ERP |
| 3 Update the sales record | Sales record OP-1042 in CRM |
| 4 Prepare the delivery | Delivery LIV-2026-01842 in WMS |
| 5 Check the order total | Run run-9a65d3: the approval exit is taken |
| 6 Wait for a person’s decision | Approval request on run run-9a65d3, waiting for a decision |

## The systems it connects

-   [ERP Both ways: Runs connect it with your other software](https://erp.rdcopilot.com/?from=integrations)

Also with: [WMS](https://wms.rdcopilot.com/?from=integrations), [CRM](https://crm.rdcopilot.com/?from=integrations)

Outside systems

-   Online shop
-   Your own software

## Questions about flows and runs

### Does changing a flow change runs already started?

Each run keeps the version it started with. Changing a step creates a new version for subsequent runs.

### Will retrying a failed step repeat earlier calls?

No. A call that fails or times out is retried by the run itself, up to the step’s retries (2 for each call here), after its pause. Once those are used, an operator can add up to 2 more attempts. Steps that already completed are kept and never repeated.

### Can a person approve an order before work continues?

An approval step waits for an authorised person to accept or reject it within its time limit. Rejection ends the run with the approval recorded as the failed step.

### What happens when an attempt takes too long?

Its time limit ends the attempt, and the run records when it started, how long it took and why it ended. If the step has retries left, the next attempt opens after the pause; if not, the run stops at that step.

### How can I follow one order across its calls?

The run keeps its correlation identifier, flow version and each step’s input, output and attempts. Open the run to inspect its executed path.

### Can my software start and cancel runs?

Use the API with an operation identifier and the current revision. Repeating an identical request returns its original result; a stale revision is refused.

## Proposal for Integrations

Describe the systems, the records they exchange and the steps that need approval.

[Request a proposal](https://rdcopilot.com/contact/?product=integrations)
