{
    "info": {
        "name": "CryptoPayr API",
        "description": "Auto-generated from the OpenAPI spec. Set the {{baseUrl}}, {{apiKey}} and {{withdrawalKey}} collection variables.",
        "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
    },
    "item": [
        {
            "name": "Payments",
            "item": [
                {
                    "name": "Create a payment",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Authorization",
                                "value": "Bearer {{apiKey}}"
                            },
                            {
                                "key": "Idempotency-Key",
                                "value": "",
                                "disabled": true,
                                "description": "Optional client key; a replay within 24h returns the original result with `Idempotency-Replayed: true`."
                            },
                            {
                                "key": "Content-Type",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/payment/create",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "payment",
                                "create"
                            ]
                        },
                        "description": "Create a payment",
                        "body": {
                            "mode": "raw",
                            "raw": "{\n    \"amount\": 49,\n    \"currency\": \"USD\"\n}",
                            "options": {
                                "raw": {
                                    "language": "json"
                                }
                            }
                        }
                    }
                },
                {
                    "name": "Look up a payment",
                    "request": {
                        "method": "GET",
                        "header": [],
                        "url": {
                            "raw": "{{baseUrl}}/payment/lookup?tid=",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "payment",
                                "lookup"
                            ],
                            "query": [
                                {
                                    "key": "tid",
                                    "value": "",
                                    "disabled": false,
                                    "description": "The payment id."
                                }
                            ]
                        },
                        "description": "Look up a payment"
                    }
                },
                {
                    "name": "Cancel a payment",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Authorization",
                                "value": "Bearer {{apiKey}}"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/payment/cancel",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "payment",
                                "cancel"
                            ]
                        },
                        "description": "Cancel a payment",
                        "body": {
                            "mode": "raw",
                            "raw": "{\n    \"tid\": \"\"\n}",
                            "options": {
                                "raw": {
                                    "language": "json"
                                }
                            }
                        }
                    }
                },
                {
                    "name": "Email a buyer receipt",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/payment/receipt",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "payment",
                                "receipt"
                            ]
                        },
                        "description": "Email a buyer receipt",
                        "body": {
                            "mode": "raw",
                            "raw": "{\n    \"tid\": \"\",\n    \"email\": \"\"\n}",
                            "options": {
                                "raw": {
                                    "language": "json"
                                }
                            }
                        }
                    }
                },
                {
                    "name": "Force a status re-check",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/payment/recheck",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "payment",
                                "recheck"
                            ]
                        },
                        "description": "Force a status re-check",
                        "body": {
                            "mode": "raw",
                            "raw": "{\n    \"tid\": \"\"\n}",
                            "options": {
                                "raw": {
                                    "language": "json"
                                }
                            }
                        }
                    }
                },
                {
                    "name": "List transactions",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Authorization",
                                "value": "Bearer {{apiKey}}"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/transactions?page=&status=&sort=&role=",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "transactions"
                            ],
                            "query": [
                                {
                                    "key": "page",
                                    "value": "",
                                    "disabled": true,
                                    "description": "1-based page (50 per page)."
                                },
                                {
                                    "key": "status",
                                    "value": "",
                                    "disabled": true,
                                    "description": "Filter by status."
                                },
                                {
                                    "key": "sort",
                                    "value": "",
                                    "disabled": true,
                                    "description": "Sort order."
                                },
                                {
                                    "key": "role",
                                    "value": "",
                                    "disabled": true,
                                    "description": "merchant (default) or platform (platform accounts only)."
                                }
                            ]
                        },
                        "description": "List transactions"
                    }
                }
            ]
        },
        {
            "name": "Payment links",
            "item": [
                {
                    "name": "List payment links",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Authorization",
                                "value": "Bearer {{apiKey}}"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/payment-links",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "payment-links"
                            ]
                        },
                        "description": "List payment links"
                    }
                },
                {
                    "name": "Create a payment link",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Authorization",
                                "value": "Bearer {{apiKey}}"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/payment-links",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "payment-links"
                            ]
                        },
                        "description": "Create a payment link",
                        "body": {
                            "mode": "raw",
                            "raw": "{\n    \"title\": \"\",\n    \"mode\": \"\",\n    \"amount\": 0,\n    \"currency\": \"\",\n    \"pay_currency\": \"\",\n    \"pay_network\": \"\",\n    \"success_url\": \"\",\n    \"webhook_url\": \"\"\n}",
                            "options": {
                                "raw": {
                                    "language": "json"
                                }
                            }
                        }
                    }
                }
            ]
        },
        {
            "name": "Account",
            "item": [
                {
                    "name": "Get wallet balance",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Authorization",
                                "value": "Bearer {{apiKey}}"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/balance",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "balance"
                            ]
                        },
                        "description": "Get wallet balance"
                    }
                },
                {
                    "name": "Get account info",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Authorization",
                                "value": "Bearer {{apiKey}}"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/account",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "account"
                            ]
                        },
                        "description": "Get account info"
                    }
                }
            ]
        },
        {
            "name": "Refunds",
            "item": [
                {
                    "name": "Create a refund",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Authorization",
                                "value": "Bearer {{apiKey}}"
                            },
                            {
                                "key": "Idempotency-Key",
                                "value": "",
                                "disabled": true,
                                "description": "Optional client key; a replay within 24h returns the original result with `Idempotency-Replayed: true`."
                            },
                            {
                                "key": "Content-Type",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/refund/create",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "refund",
                                "create"
                            ]
                        },
                        "description": "Create a refund",
                        "body": {
                            "mode": "raw",
                            "raw": "{\n    \"tid\": \"\",\n    \"amount\": 0,\n    \"email\": \"\",\n    \"reason\": \"\"\n}",
                            "options": {
                                "raw": {
                                    "language": "json"
                                }
                            }
                        }
                    }
                },
                {
                    "name": "List refunds",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Authorization",
                                "value": "Bearer {{apiKey}}"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/refunds?page=&status=",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "refunds"
                            ],
                            "query": [
                                {
                                    "key": "page",
                                    "value": "",
                                    "disabled": true,
                                    "description": "1-based page."
                                },
                                {
                                    "key": "status",
                                    "value": "",
                                    "disabled": true,
                                    "description": "Filter by status."
                                }
                            ]
                        },
                        "description": "List refunds"
                    }
                }
            ]
        },
        {
            "name": "Market data",
            "item": [
                {
                    "name": "All exchange rates",
                    "request": {
                        "method": "GET",
                        "header": [],
                        "url": {
                            "raw": "{{baseUrl}}/rates",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "rates"
                            ]
                        },
                        "description": "All exchange rates"
                    }
                },
                {
                    "name": "Rate for one coin",
                    "request": {
                        "method": "GET",
                        "header": [],
                        "url": {
                            "raw": "{{baseUrl}}/rates/{coin}",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "rates",
                                "{coin}"
                            ]
                        },
                        "description": "Rate for one coin"
                    }
                },
                {
                    "name": "Convert an amount",
                    "request": {
                        "method": "GET",
                        "header": [],
                        "url": {
                            "raw": "{{baseUrl}}/convert?from=&to=&amount=",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "convert"
                            ],
                            "query": [
                                {
                                    "key": "from",
                                    "value": "",
                                    "disabled": false,
                                    "description": "Source currency."
                                },
                                {
                                    "key": "to",
                                    "value": "",
                                    "disabled": false,
                                    "description": "Target currency."
                                },
                                {
                                    "key": "amount",
                                    "value": "",
                                    "disabled": true,
                                    "description": "Amount to convert (default 1)."
                                }
                            ]
                        },
                        "description": "Convert an amount"
                    }
                }
            ]
        },
        {
            "name": "Payouts",
            "item": [
                {
                    "name": "Request a withdrawal",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Authorization",
                                "value": "Bearer {{withdrawalKey}}"
                            },
                            {
                                "key": "Idempotency-Key",
                                "value": "",
                                "disabled": true,
                                "description": "Optional client key; a replay within 24h returns the original result with `Idempotency-Replayed: true`."
                            },
                            {
                                "key": "Content-Type",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/payout/create",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "payout",
                                "create"
                            ]
                        },
                        "description": "Request a withdrawal",
                        "body": {
                            "mode": "raw",
                            "raw": "{\n    \"amount\": 0,\n    \"currency\": \"\",\n    \"network\": \"\",\n    \"address\": \"\",\n    \"address_id\": 0\n}",
                            "options": {
                                "raw": {
                                    "language": "json"
                                }
                            }
                        }
                    }
                },
                {
                    "name": "Get a payout",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Authorization",
                                "value": "Bearer {{apiKey}}"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/payout/lookup?id=",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "payout",
                                "lookup"
                            ],
                            "query": [
                                {
                                    "key": "id",
                                    "value": "",
                                    "disabled": false,
                                    "description": "The payout id."
                                }
                            ]
                        },
                        "description": "Get a payout"
                    }
                },
                {
                    "name": "Estimate a payout",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Authorization",
                                "value": "Bearer {{apiKey}}"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/payout/estimate?amount=&currency=&network=",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "payout",
                                "estimate"
                            ],
                            "query": [
                                {
                                    "key": "amount",
                                    "value": "",
                                    "disabled": false,
                                    "description": "USD amount."
                                },
                                {
                                    "key": "currency",
                                    "value": "",
                                    "disabled": true,
                                    "description": "Payout coin (default USDT)."
                                },
                                {
                                    "key": "network",
                                    "value": "",
                                    "disabled": true,
                                    "description": "Payout network (default TRON)."
                                }
                            ]
                        },
                        "description": "Estimate a payout"
                    }
                },
                {
                    "name": "List payouts",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Authorization",
                                "value": "Bearer {{apiKey}}"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/payouts?page=&status=",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "payouts"
                            ],
                            "query": [
                                {
                                    "key": "page",
                                    "value": "",
                                    "disabled": true,
                                    "description": "1-based page."
                                },
                                {
                                    "key": "status",
                                    "value": "",
                                    "disabled": true,
                                    "description": "Filter by status."
                                }
                            ]
                        },
                        "description": "List payouts"
                    }
                },
                {
                    "name": "List payout addresses",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Authorization",
                                "value": "Bearer {{apiKey}}"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/payout-addresses",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "payout-addresses"
                            ]
                        },
                        "description": "List payout addresses"
                    }
                },
                {
                    "name": "Add a payout address",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Authorization",
                                "value": "Bearer {{apiKey}}"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/payout-addresses",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "payout-addresses"
                            ]
                        },
                        "description": "Add a payout address",
                        "body": {
                            "mode": "raw",
                            "raw": "{\n    \"currency\": \"\",\n    \"network\": \"\",\n    \"address\": \"\",\n    \"label\": \"\",\n    \"make_default\": false\n}",
                            "options": {
                                "raw": {
                                    "language": "json"
                                }
                            }
                        }
                    }
                },
                {
                    "name": "Delete a payout address",
                    "request": {
                        "method": "DELETE",
                        "header": [
                            {
                                "key": "Authorization",
                                "value": "Bearer {{apiKey}}"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/payout-addresses?id=",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "payout-addresses"
                            ],
                            "query": [
                                {
                                    "key": "id",
                                    "value": "",
                                    "disabled": false,
                                    "description": "The address id to delete."
                                }
                            ]
                        },
                        "description": "Delete a payout address"
                    }
                }
            ]
        },
        {
            "name": "Transfers",
            "item": [
                {
                    "name": "Transfer to another account",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Authorization",
                                "value": "Bearer {{withdrawalKey}}"
                            },
                            {
                                "key": "Idempotency-Key",
                                "value": "",
                                "disabled": true,
                                "description": "Optional client key; a replay within 24h returns the original result with `Idempotency-Replayed: true`."
                            },
                            {
                                "key": "Content-Type",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/transfer/create",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "transfer",
                                "create"
                            ]
                        },
                        "description": "Transfer to another account",
                        "body": {
                            "mode": "raw",
                            "raw": "{\n    \"recipient\": \"\",\n    \"amount\": 0,\n    \"note\": \"\"\n}",
                            "options": {
                                "raw": {
                                    "language": "json"
                                }
                            }
                        }
                    }
                },
                {
                    "name": "Get a transfer",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Authorization",
                                "value": "Bearer {{apiKey}}"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/transfer/lookup?id=",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "transfer",
                                "lookup"
                            ],
                            "query": [
                                {
                                    "key": "id",
                                    "value": "",
                                    "disabled": false,
                                    "description": "Transfer ref (txf_\u2026) or numeric id."
                                }
                            ]
                        },
                        "description": "Get a transfer"
                    }
                },
                {
                    "name": "List transfers",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Authorization",
                                "value": "Bearer {{apiKey}}"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/transfers?page=&direction=",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "transfers"
                            ],
                            "query": [
                                {
                                    "key": "page",
                                    "value": "",
                                    "disabled": true,
                                    "description": "1-based page."
                                },
                                {
                                    "key": "direction",
                                    "value": "",
                                    "disabled": true,
                                    "description": "Filter by direction."
                                }
                            ]
                        },
                        "description": "List transfers"
                    }
                }
            ]
        },
        {
            "name": "Exchange",
            "item": [
                {
                    "name": "List swap currencies",
                    "request": {
                        "method": "GET",
                        "header": [],
                        "url": {
                            "raw": "{{baseUrl}}/swap/currencies",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "swap",
                                "currencies"
                            ]
                        },
                        "description": "List swap currencies"
                    }
                },
                {
                    "name": "Quote a swap",
                    "request": {
                        "method": "GET",
                        "header": [],
                        "url": {
                            "raw": "{{baseUrl}}/swap/estimate?from=&from_network=&to=&to_network=&amount=&type=",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "swap",
                                "estimate"
                            ],
                            "query": [
                                {
                                    "key": "from",
                                    "value": "",
                                    "disabled": false,
                                    "description": "Send coin, e.g. BTC."
                                },
                                {
                                    "key": "from_network",
                                    "value": "",
                                    "disabled": true,
                                    "description": "Send network (defaults to the coin)."
                                },
                                {
                                    "key": "to",
                                    "value": "",
                                    "disabled": false,
                                    "description": "Receive coin, e.g. ETH."
                                },
                                {
                                    "key": "to_network",
                                    "value": "",
                                    "disabled": true,
                                    "description": "Receive network (defaults to the coin)."
                                },
                                {
                                    "key": "amount",
                                    "value": "",
                                    "disabled": true,
                                    "description": "Send amount."
                                },
                                {
                                    "key": "type",
                                    "value": "",
                                    "disabled": true,
                                    "description": "float (default) or fixed (+ locked rate)."
                                }
                            ]
                        },
                        "description": "Quote a swap"
                    }
                },
                {
                    "name": "Create a swap",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/swap/create",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "swap",
                                "create"
                            ]
                        },
                        "description": "Create a swap",
                        "body": {
                            "mode": "raw",
                            "raw": "{\n    \"from\": \"\",\n    \"from_network\": \"\",\n    \"to\": \"\",\n    \"to_network\": \"\",\n    \"amount\": 0,\n    \"type\": \"\",\n    \"payout_address\": \"\",\n    \"refund_address\": \"\",\n    \"referral_wallet_address\": \"\",\n    \"referral_wallet_to\": \"\",\n    \"referral_wallet_network\": \"\"\n}",
                            "options": {
                                "raw": {
                                    "language": "json"
                                }
                            }
                        }
                    }
                },
                {
                    "name": "Track a swap",
                    "request": {
                        "method": "GET",
                        "header": [],
                        "url": {
                            "raw": "{{baseUrl}}/swap/status?id=",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "swap",
                                "status"
                            ],
                            "query": [
                                {
                                    "key": "id",
                                    "value": "",
                                    "disabled": false,
                                    "description": "The tracking id (SWP-\u2026). Alias: tracking_id."
                                }
                            ]
                        },
                        "description": "Track a swap"
                    }
                },
                {
                    "name": "Email a swap receipt",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/swap/receipt",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "swap",
                                "receipt"
                            ]
                        },
                        "description": "Email a swap receipt",
                        "body": {
                            "mode": "raw",
                            "raw": "{\n    \"id\": \"\",\n    \"email\": \"\"\n}",
                            "options": {
                                "raw": {
                                    "language": "json"
                                }
                            }
                        }
                    }
                }
            ]
        }
    ],
    "variable": [
        {
            "key": "baseUrl",
            "value": "https://cryptopayr.com/api/v1"
        },
        {
            "key": "apiKey",
            "value": "sk_live_xxx"
        },
        {
            "key": "withdrawalKey",
            "value": "wk_live_xxx"
        }
    ]
}