Münzen API
  • Home
  • Getting Started
  • API Overview
    • API Reference
    • API Requests
    • API Authentication
    • Environments
    • Errors
    • Callbacks (Webhooks)
    • Currencies, Confirmations, and Limits
    • How to accept crypto payments
    • Proof of Funds
    • AML & Compliance Checks
  • Testing
    • How to check integration
  • Invoices
    • What is Invoices
    • Create an Invoice
    • Invoice Statuses
    • Invoice Callbacks
  • Channels
    • What is Channels
    • Create a Channel
    • Channel Payment Statuses
    • Channel Callbacks
  • Payment Widget
    • What is Payment Widget
    • Integration Guide for Payment Widget
      • Params for Channel Widget
  • Payouts
    • What is Payouts
    • Create a Payout
    • Payout Statuses
    • Payout Callbacks
  • Useful Information
    • Testnet Faucets
Powered by GitBook
On this page
  1. Invoices

Create an Invoice

PreviousWhat is InvoicesNextInvoice Statuses

Last updated 1 year ago

You can create an invoice with the following request:

curl -X POST \
https://sandbox-api-processing.munzen.io/api/v1/merchant/invoices \
-H 'X-Munzen-Key: {API_KEY}' \
-H 'X-Munzen-Signature: {SIGNATURE}' \
-H 'Content-Type: application/json' \
-H 'Date: Tue, 2 Feb 2023 01:23:45 GMT' \
-d '{"price_amount":"100", "price_currency":"USD", "pay_currency":"BTC", "customer_external_id":"9e27ab1c-a8ed-4e89-bf3e-b27330dfe238", "timestamp": 1681897688}'

Do not forget to set your {API_KEY} and {SIGNATURE}. You can read more about how to sign API requests in section.

There are a few required params in this endpoint:

  • price_amount

  • price_currency

  • pay_currency

  • customer_external_id

You can check all available parameters and their descriptions in .

Response

You will receive a response with a new invoice object like this:

{
    "data": {
        "id": "68d2f126-382f-41ef-89d1-7e4472f63a4c",
        "price_currency": "USD",
        "price_currency_ticker": "USD",
        "price_amount": 100,
        "pay_currency": "USDTERC20",
        "pay_currency_ticker": "USDT",
        "pay_amount": 101,
        "paid_amount": 0,
        "fee": 1,
        "fee_amount": 1,
        "exchange_pair": "EURUSDT",
        "exchange_rate_multiplier": 695,
        "address": "LnuBzU9xBEOjJ6p2aO0bBTHElHszk4",
        "address_tag": "V7E2p",
        "address_uri": "usdt_erc20:LnuBzU9xBEOjJ6p2aO0bBTHElHszk4",
        "status": "created",
        "status_context": null,
        "external_id": "677",
        "customer_external_id": "973",
        "external_data": null,
        "name": "Mr. Nicholas Roob II",
        "description": "Carolanne O'Keefe",
        "redirect_url": "http://www.weimann.com/blanditiis-ab-cupiditate-reprehenderit-eius-harum-vitae-rerum",
        "failure_redirect_url": "http://fahey.net/et-dignissimos-quidem-asperiores-mollitia"
    },
    "error": null
}
API Authentication
API Reference