Orders

Create order

POST {{BASE_URL}}/api/order

Create order using cryptocurrency and network

Parameters

Header

Authorization {{API_KEY}}

Body

currency should be PEN or USD depend on the original currency of the item.

metadata is a free json data where su can send an important info to identify the origin order.

{
  "amount": 20,
  "currency": "PEN",
  "transaction": {
    "customer": {
      "name": "John Doe",
      "email": "sample@gmail.com"
    },
    "networkId": 1,
    "cryptoId": 2
  },
  "metadata": {
    "description": "Curso de criptomonedas",
    "order": "order-001",
    "hash": "curso-001"
  }
}

Responses

🟢 200
{
  "orderCode": "15344389b0034ece85f2434d589dd76c",
  "network": "BSC",
  "crypto": "BUSD",
  "amount": 0.003,
  "address": "0x3073370FB1E57a3028B83d8c47B846cf227f0E7c",
  "imageAddress": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJQAAACUCAYAAAB1PADUAAAAAklEQVR4AewaftIAAAStSURBVO3BQW4cSRAEQY/C/P/LvjzmqYBGJ0lJG2bxC1VLDlWLDlWLDlWLDlWLDlWLDlWLDlWLDlWLDlWLDlWLDlWLDlWLDlWLDlWLDlWLPryUhJ+k8kYSblSeSMKkMiXhCZUpCT9J5Y1D1aJD1aJD1aIPy1Q2JeGNJEwqN0nYpHKThCdUNiVh06Fq0aFq0aFq0YdvloQnVJ5IwiaVJ5Jwk4QblTeS8ITKdzpULTpULTpULfrwP5OEJ1SmJNwk4UZlSsKk8jc7VC06VC06VC368D+j8kQSJpWbJEwqUxImlX/JoWrRoWrRoWrRh2+m8pNUpiS8oTIlYVKZVKYkTCqbVP4kh6pFh6pFh6pFH5Yl4W+ShEllSsKkMiVhUnkiCZPKTRL+ZIeqRYeqRYeqRfELf7EkTCp/kiRMKv+yQ9WiQ9WiQ9WiDy8lYVKZkrBJZVKZkvCGypSEN1SmJNyoTEnYpPKdDlWLDlWLDlWLPnwzlSkJk8qUhEllSsKkMqlMSXhD5Y0k3KhMSZhUnkjCbzpULTpULTpULfqwLAk3KlMSbpLwhsqUhEnlJgk3KlMSblRuVDapTEmYVDYdqhYdq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