Skip to main content
POST
/
orders
/
Create Multiple Orders
curl --request POST \
  --url https://api.copper.co/platform/orders/ \
  --header 'Content-Type: application/vnd.create-orders+json' \
  --data '
{
  "orders": [
    {
      "baseCurrency": "<string>",
      "externalOrderId": "<string>",
      "portfolioId": "<string>",
      "agentAddress": "<string>",
      "agentName": "<string>",
      "amount": "<string>",
      "builderFeeAddress": "<string>",
      "deliveryType": "payment-vs-payment",
      "description": "<string>",
      "externalBroadcast": "false",
      "includeFeeInWithdraw": "false",
      "mainCurrency": "<string>",
      "masterPassword": "<string>",
      "memo": "<string>",
      "netuid": "<string>",
      "nextTransferTo": [
        {
          "cryptoAddressId": "<string>",
          "portfolioId": "<string>"
        }
      ],
      "optInReferralProgram": true,
      "payload": "<string>",
      "payloads": [
        "<string>"
      ],
      "priceLimit": "<string>",
      "quoteAmount": "<string>",
      "quoteCurrency": "<string>",
      "quoteMainCurrency": "<string>",
      "referralCode": "<string>",
      "toAddress": "<string>",
      "toCounterpartyId": "<string>",
      "toCryptoAddressId": "<string>",
      "toPortfolioId": "<string>",
      "toReceivers": [
        {
          "amount": "<string>",
          "toAddress": "<string>",
          "toCryptoAddressId": "<string>"
        }
      ]
    }
  ]
}
'
import requests

url = "https://api.copper.co/platform/orders/"

payload = { "orders": [
{
"baseCurrency": "<string>",
"externalOrderId": "<string>",
"portfolioId": "<string>",
"agentAddress": "<string>",
"agentName": "<string>",
"amount": "<string>",
"builderFeeAddress": "<string>",
"deliveryType": "payment-vs-payment",
"description": "<string>",
"externalBroadcast": "false",
"includeFeeInWithdraw": "false",
"mainCurrency": "<string>",
"masterPassword": "<string>",
"memo": "<string>",
"netuid": "<string>",
"nextTransferTo": [
{
"cryptoAddressId": "<string>",
"portfolioId": "<string>"
}
],
"optInReferralProgram": True,
"payload": "<string>",
"payloads": ["<string>"],
"priceLimit": "<string>",
"quoteAmount": "<string>",
"quoteCurrency": "<string>",
"quoteMainCurrency": "<string>",
"referralCode": "<string>",
"toAddress": "<string>",
"toCounterpartyId": "<string>",
"toCryptoAddressId": "<string>",
"toPortfolioId": "<string>",
"toReceivers": [
{
"amount": "<string>",
"toAddress": "<string>",
"toCryptoAddressId": "<string>"
}
]
}
] }
headers = {"Content-Type": "application/vnd.create-orders+json"}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
const options = {
method: 'POST',
headers: {'Content-Type': 'application/vnd.create-orders+json'},
body: JSON.stringify({
orders: [
{
baseCurrency: '<string>',
externalOrderId: '<string>',
portfolioId: '<string>',
agentAddress: '<string>',
agentName: '<string>',
amount: '<string>',
builderFeeAddress: '<string>',
deliveryType: 'payment-vs-payment',
description: '<string>',
externalBroadcast: 'false',
includeFeeInWithdraw: 'false',
mainCurrency: '<string>',
masterPassword: '<string>',
memo: '<string>',
netuid: '<string>',
nextTransferTo: [{cryptoAddressId: '<string>', portfolioId: '<string>'}],
optInReferralProgram: true,
payload: '<string>',
payloads: ['<string>'],
priceLimit: '<string>',
quoteAmount: '<string>',
quoteCurrency: '<string>',
quoteMainCurrency: '<string>',
referralCode: '<string>',
toAddress: '<string>',
toCounterpartyId: '<string>',
toCryptoAddressId: '<string>',
toPortfolioId: '<string>',
toReceivers: [{amount: '<string>', toAddress: '<string>', toCryptoAddressId: '<string>'}]
}
]
})
};

fetch('https://api.copper.co/platform/orders/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://api.copper.co/platform/orders/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'orders' => [
[
'baseCurrency' => '<string>',
'externalOrderId' => '<string>',
'portfolioId' => '<string>',
'agentAddress' => '<string>',
'agentName' => '<string>',
'amount' => '<string>',
'builderFeeAddress' => '<string>',
'deliveryType' => 'payment-vs-payment',
'description' => '<string>',
'externalBroadcast' => 'false',
'includeFeeInWithdraw' => 'false',
'mainCurrency' => '<string>',
'masterPassword' => '<string>',
'memo' => '<string>',
'netuid' => '<string>',
'nextTransferTo' => [
[
'cryptoAddressId' => '<string>',
'portfolioId' => '<string>'
]
],
'optInReferralProgram' => true,
'payload' => '<string>',
'payloads' => [
'<string>'
],
'priceLimit' => '<string>',
'quoteAmount' => '<string>',
'quoteCurrency' => '<string>',
'quoteMainCurrency' => '<string>',
'referralCode' => '<string>',
'toAddress' => '<string>',
'toCounterpartyId' => '<string>',
'toCryptoAddressId' => '<string>',
'toPortfolioId' => '<string>',
'toReceivers' => [
[
'amount' => '<string>',
'toAddress' => '<string>',
'toCryptoAddressId' => '<string>'
]
]
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/vnd.create-orders+json"
],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"strings"
"net/http"
"io"
)

func main() {

url := "https://api.copper.co/platform/orders/"

payload := strings.NewReader("{\n \"orders\": [\n {\n \"baseCurrency\": \"<string>\",\n \"externalOrderId\": \"<string>\",\n \"portfolioId\": \"<string>\",\n \"agentAddress\": \"<string>\",\n \"agentName\": \"<string>\",\n \"amount\": \"<string>\",\n \"builderFeeAddress\": \"<string>\",\n \"deliveryType\": \"payment-vs-payment\",\n \"description\": \"<string>\",\n \"externalBroadcast\": \"false\",\n \"includeFeeInWithdraw\": \"false\",\n \"mainCurrency\": \"<string>\",\n \"masterPassword\": \"<string>\",\n \"memo\": \"<string>\",\n \"netuid\": \"<string>\",\n \"nextTransferTo\": [\n {\n \"cryptoAddressId\": \"<string>\",\n \"portfolioId\": \"<string>\"\n }\n ],\n \"optInReferralProgram\": true,\n \"payload\": \"<string>\",\n \"payloads\": [\n \"<string>\"\n ],\n \"priceLimit\": \"<string>\",\n \"quoteAmount\": \"<string>\",\n \"quoteCurrency\": \"<string>\",\n \"quoteMainCurrency\": \"<string>\",\n \"referralCode\": \"<string>\",\n \"toAddress\": \"<string>\",\n \"toCounterpartyId\": \"<string>\",\n \"toCryptoAddressId\": \"<string>\",\n \"toPortfolioId\": \"<string>\",\n \"toReceivers\": [\n {\n \"amount\": \"<string>\",\n \"toAddress\": \"<string>\",\n \"toCryptoAddressId\": \"<string>\"\n }\n ]\n }\n ]\n}")

req, _ := http.NewRequest("POST", url, payload)

req.Header.Add("Content-Type", "application/vnd.create-orders+json")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.post("https://api.copper.co/platform/orders/")
.header("Content-Type", "application/vnd.create-orders+json")
.body("{\n \"orders\": [\n {\n \"baseCurrency\": \"<string>\",\n \"externalOrderId\": \"<string>\",\n \"portfolioId\": \"<string>\",\n \"agentAddress\": \"<string>\",\n \"agentName\": \"<string>\",\n \"amount\": \"<string>\",\n \"builderFeeAddress\": \"<string>\",\n \"deliveryType\": \"payment-vs-payment\",\n \"description\": \"<string>\",\n \"externalBroadcast\": \"false\",\n \"includeFeeInWithdraw\": \"false\",\n \"mainCurrency\": \"<string>\",\n \"masterPassword\": \"<string>\",\n \"memo\": \"<string>\",\n \"netuid\": \"<string>\",\n \"nextTransferTo\": [\n {\n \"cryptoAddressId\": \"<string>\",\n \"portfolioId\": \"<string>\"\n }\n ],\n \"optInReferralProgram\": true,\n \"payload\": \"<string>\",\n \"payloads\": [\n \"<string>\"\n ],\n \"priceLimit\": \"<string>\",\n \"quoteAmount\": \"<string>\",\n \"quoteCurrency\": \"<string>\",\n \"quoteMainCurrency\": \"<string>\",\n \"referralCode\": \"<string>\",\n \"toAddress\": \"<string>\",\n \"toCounterpartyId\": \"<string>\",\n \"toCryptoAddressId\": \"<string>\",\n \"toPortfolioId\": \"<string>\",\n \"toReceivers\": [\n {\n \"amount\": \"<string>\",\n \"toAddress\": \"<string>\",\n \"toCryptoAddressId\": \"<string>\"\n }\n ]\n }\n ]\n}")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.copper.co/platform/orders/")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/vnd.create-orders+json'
request.body = "{\n \"orders\": [\n {\n \"baseCurrency\": \"<string>\",\n \"externalOrderId\": \"<string>\",\n \"portfolioId\": \"<string>\",\n \"agentAddress\": \"<string>\",\n \"agentName\": \"<string>\",\n \"amount\": \"<string>\",\n \"builderFeeAddress\": \"<string>\",\n \"deliveryType\": \"payment-vs-payment\",\n \"description\": \"<string>\",\n \"externalBroadcast\": \"false\",\n \"includeFeeInWithdraw\": \"false\",\n \"mainCurrency\": \"<string>\",\n \"masterPassword\": \"<string>\",\n \"memo\": \"<string>\",\n \"netuid\": \"<string>\",\n \"nextTransferTo\": [\n {\n \"cryptoAddressId\": \"<string>\",\n \"portfolioId\": \"<string>\"\n }\n ],\n \"optInReferralProgram\": true,\n \"payload\": \"<string>\",\n \"payloads\": [\n \"<string>\"\n ],\n \"priceLimit\": \"<string>\",\n \"quoteAmount\": \"<string>\",\n \"quoteCurrency\": \"<string>\",\n \"quoteMainCurrency\": \"<string>\",\n \"referralCode\": \"<string>\",\n \"toAddress\": \"<string>\",\n \"toCounterpartyId\": \"<string>\",\n \"toCryptoAddressId\": \"<string>\",\n \"toPortfolioId\": \"<string>\",\n \"toReceivers\": [\n {\n \"amount\": \"<string>\",\n \"toAddress\": \"<string>\",\n \"toCryptoAddressId\": \"<string>\"\n }\n ]\n }\n ]\n}"

response = http.request(request)
puts response.read_body
{
  "orders": [
    {
      "amount": "<string>",
      "baseCurrency": "<string>",
      "createdAt": "<string>",
      "externalOrderId": "<string>",
      "orderId": "<string>",
      "portfolioId": "<string>",
      "createdBy": "<string>",
      "extra": {
        "availableCoSigners": [
          "<string>"
        ],
        "availableSnapshot": "<string>",
        "balanceSnapshot": "<string>",
        "clearLoop": true,
        "clearLoopExtra": {
          "clearLoopExternalNetted": true,
          "clearLoopSettlementId": "<string>"
        },
        "clientAccountId": "<string>",
        "coSigners": [
          "<string>"
        ],
        "coSignersNumber": "<string>",
        "confirmations": "<string>",
        "counterpartyPortfolioId": "<string>",
        "depositOrderId": "<string>",
        "depositTargetId": "<string>",
        "description": "<string>",
        "estimatedFees": {
          "fee": "<string>",
          "feeCurrency": "<string>",
          "baseFeePerGas": "<string>",
          "estimatedTime": "<string>",
          "feePerByte": {},
          "gasLimit": {},
          "gasPriceGwei": "<string>",
          "maxFeePerGas": "<string>",
          "maxPriorityFeePerGas": "<string>",
          "reportingCurrencyRate": "<string>",
          "transactionBytes": "<string>"
        },
        "externalBroadcast": true,
        "fees": [
          {
            "fee": "<string>",
            "feeCurrency": "<string>",
            "baseFeePerGas": "<string>",
            "estimatedTime": "<string>",
            "feePerByte": {},
            "gasLimit": {},
            "gasPriceGwei": "<string>",
            "maxFeePerGas": "<string>",
            "maxPriorityFeePerGas": "<string>",
            "reportingCurrencyRate": "<string>",
            "transactionBytes": "<string>"
          }
        ],
        "fromAddresses": [
          "<string>"
        ],
        "fromCounterpartyId": "<string>",
        "fromCryptoAddress": {
          "address": "<string>",
          "createdAt": "<string>",
          "createdBy": "<string>",
          "cryptoAddressId": "<string>",
          "currency": "<string>",
          "isWhitelist": true,
          "name": "<string>",
          "_embedded": {
            "currencyConfigurations": [
              {
                "createdAt": "<string>",
                "createdBy": "<string>",
                "cryptoAddressId": "<string>",
                "currency": "<string>",
                "currencyConfigurationId": "<string>",
                "isWhitelist": true,
                "extra": {},
                "lastUsedAt": "<string>",
                "portfolioIds": [
                  "<string>"
                ],
                "updatedAt": "<string>",
                "updatedBy": "<string>"
              }
            ]
          },
          "acceptTokens": true,
          "addressTags": [],
          "extra": {},
          "lastUsedAt": "<string>",
          "mainCurrency": "<string>",
          "memo": "<string>",
          "organizationId": "<string>",
          "portfolioIds": [
            "<string>"
          ],
          "updatedAt": "<string>",
          "updatedBy": "<string>"
        },
        "fromCryptoAddressId": "<string>",
        "fromPortfolioId": "<string>",
        "includeFeeInWithdraw": true,
        "invoiceId": "<string>",
        "marketPrice": "<string>",
        "memo": "<string>",
        "nextTransferTo": [
          {
            "cryptoAddressId": "<string>",
            "portfolioId": "<string>"
          }
        ],
        "originalDepositAmount": "<string>",
        "partSigned": {},
        "payload": "<string>",
        "payloads": [
          "<string>"
        ],
        "reportingCurrencyRate": "<string>",
        "reportingQuoteCurrencyRate": "<string>",
        "signed": {},
        "spenderAddress": "<string>",
        "terminatedReportingCurrencyRate": "<string>",
        "toAddress": "<string>",
        "toCounterpartyId": "<string>",
        "toCryptoAddressId": "<string>",
        "toInvoiceId": "<string>",
        "toLendingInvoiceId": "<string>",
        "toPortfolioId": "<string>",
        "totalQuoteAmount": "<string>",
        "transactionId": "<string>",
        "transactionRequest": {},
        "transferAmount": "<string>",
        "transferChainId": "<string>",
        "transferDepositTargetId": "<string>",
        "transferFees": "<string>",
        "transferFeesCurrency": "<string>",
        "transferTransactionId": "<string>",
        "withdrawFee": "<string>",
        "withdrawOrderId": "<string>"
      },
      "mainCurrency": "<string>",
      "organizationId": "<string>",
      "quoteCurrency": "<string>",
      "quoteMainCurrency": "<string>",
      "terminatedAt": "<string>",
      "updatedAt": "<string>"
    }
  ]
}
{
"error": "<string>",
"message": "<string>"
}
{
"error": "<string>",
"message": "<string>"
}
{
"error": "<string>",
"message": "<string>"
}

Headers

Content-Type
string

application/vnd.create-orders+json

Body

application/vnd.create-orders+json
orders
object[]
required

List of orders to create

Response

OK

orders
object[]
required