Regenerate Order Template

Generates an order template with the same parameters as an already created order template.

refreshOrderTemplateId is the ID of a previously generated order template, from which the new one will be generated

Sample API Request: POST

URL: https://caas-staging.coinme.com/services/order-template/refresh?refreshOrderTemplateId={refreshOrderTemplateId}
headers:
"Authorization":"asdfghj", //authorization token ,required
'User-Agent: partnerapi' //required

Sample API Response

{
  "data": {
    "transactionTemplate": {
      "transactionSystemRef": "1231976224861065216", // ID of the order template in Coinme's system
      "transactionProviderRef": "830324007540008113329460093303", // ID of the order template in the payment provider's system
      "sealed": true, // Indicates whether the order template can be edited or not
      "debitCurrencyCode": "USD", // Currency Code of the amount that is debited to the customer
      "debitCurrencyUnitPrice": "90887.64", // Price of 1 unit of the debit currency
      "creditCurrencyCode": "BTC", // Currency Code of the amount that is credited to the customer
      "creditCurrencyAmount": "0.00012100", // Amount that is credited to the customer
      "amountValue": "11", // Value of the user input amount
      "amountCurrencyCode": "USD", // Currency code of the user input amount
      "feesMap": { // Map that contains breakdown of the fees
        "instantWithdrawalFee": "2.50",
        "exchangeFee": "0.16"
      },
      "active": true, // Indicates whether the order template can be consumed
      "expiryTimestamp": "2025-04-22T15:33:48.270Z" // Expiry timestamp of the Order Template in UTC
    }
  },
  "errorResponse": null
}

Error Codes


Error CodeError Message
241-404-352-404Order template with the orderTemplateId X not found