Skip to content
SwapWalletDocs
فارسیGet an API key

Invoices

An invoice asks a customer for a payment and gives them a temporary wallet to pay into: a blockchain address that belongs to the invoice for its lifetime. You set the price in any currency SwapWallet prices (Toman, US dollars or a token); SwapWallet converts it into the token the customer pays with, and the customer sends exactly that amount to the address. With the SwapWallet link, a customer can also pay from their SwapWallet account without waiting for the network.

When a transfer is confirmed, SwapWallet credits your business balance (minus its fee), updates the invoice and sends an invoice-paid webhook. The funds then settle to the owner's SwapWallet account, right away unless your business has a hold period.

statusMeaning
ACTIVEWaiting for payment. Transfers so far, if any, don't cover it yet.
PAIDPaid. The funds are in your business balance.
SETTLEDPaid, and the funds have moved to the owner's SwapWallet account.
EXPIREDexpiredAt passed before the invoice was paid.

A customer can pay in several transfers. The invoice becomes PAID when the confirmed transfers add up to amount (or to the share you set with underPaidCoveragePercent). Transfers still count after that, so paidAmount can exceed amount, and for 12 hours after expiredAt, so a late payment can still move an EXPIRED invoice to PAID.

Fulfill an order only when the invoice's status is PAID or SETTLED. A webhook is also sent for a transfer that doesn't cover the invoice yet, and its status is still ACTIVE.

Send an orderId with every invoice. It's unique per business, so a retried request can't create a second invoice for the same order, and you can find the invoice later with Retrieve an invoice by order ID.

The invoice object

An invoice and its payment state. The invoice endpoints return it, and the invoice-paid webhook carries it.

Attributes

  • idUUID

    Unique identifier of the invoice.

  • supportCodestring

    Short code to quote to SwapWallet support, such as AI-8LEYRQH-G8HM.

  • statusenum

    Where the invoice is in its lifecycle.

    Possible values

    • ACTIVEWaiting for payment. Transfers so far, if any, don't cover it yet.
    • PAIDPaid. The funds are in your business balance.
    • SETTLEDPaid, and the funds have moved to the owner's SwapWallet account.
    • EXPIREDexpiredAt passed before the invoice was paid.
    • CANCELEDCanceled. Not used for invoices created through this API.
  • descriptionstringnullable

    The description you sent.

  • customDatastringnullable

    The customData you sent, unchanged.

  • walletobjectnullable

    The temporary wallet the customer pays into; for a Toman receipt, deepLinks holds the SwapWallet payment link. Returned only by Retrieve an invoice; null in lists, by order ID and in webhooks.

    Show child attributesHide child attributes
    • networkstring

      Network of the address, such as BSC.

    • tokenstring

      Token to send, such as USDT.

    • addressstring

      Address to send to.

    • validUntilISO 8601 timestamp

      Same as the invoice's expiredAt.

  • ownerIdinteger

    SwapWallet user ID of the business owner.

  • telegramInlineMessageIdstringnullable

    Used by SwapWallet's Telegram bot. Always null for invoices created through this API.

  • userLanguageenumnullable

    The language you sent.

    Possible values

    • FAPersian
    • ENEnglish
    • RURussian
    • ZHChinese
    • FRFrench
    • ITItalian
    • DEGerman
    • ESSpanish
    • KOKorean
  • returnUrlstringnullable

    The return URL you sent.

  • webhookUrlstringnullable

    This invoice's webhook URL. When null, webhooks go to your business webhook URL, if it's set.

  • orderIdstringnullable

    Your order ID.

  • amountMoneynullable

    What the customer pays: for a temporary-wallet invoice, the token amount to send; for a Toman receipt, the Toman amount (IRT). null only while a customer still has to choose the token.

    Show child attributesHide child attributes
    • numberdecimal string

      The amount as a decimal string, without trailing zeros.

    • unitstring

      Currency or token code, such as USDT, IRT (Toman) or USD.

  • valueMoneynullable

    amount valued in US dollars (USD).

    Show child attributesHide child attributes
    • numberdecimal string

      The amount as a decimal string, without trailing zeros.

    • unitstring

      Currency or token code, such as USDT, IRT (Toman) or USD.

  • feePayerenum

    Who pays SwapWallet's fee. Temporary-wallet invoices always use APPLICATION.

    Possible values

    • APPLICATIONYour business: deducted from what you receive.
    • USERThe customer: added to what they pay.
  • feeAmountMoneynullable

    SwapWallet's fee on this invoice, in the unit of paidAmount. Final once the invoice is paid; null or an estimate before that.

    Show child attributesHide child attributes
    • numberdecimal string

      The amount as a decimal string, without trailing zeros.

    • unitstring

      Currency or token code, such as USDT, IRT (Toman) or USD.

  • paidAmountMoneynullable

    Total received so far, before SwapWallet's fee. For blockchain payments it adds up every confirmed transfer, so it can be below amount (a partial payment) or above it. For a Toman receipt it's in the token the payment was converted to. null until the first payment.

    Show child attributesHide child attributes
    • numberdecimal string

      The amount as a decimal string, without trailing zeros.

    • unitstring

      Currency or token code, such as USDT, IRT (Toman) or USD.

  • paidAtISO 8601 timestampnullable

    When the first payment arrived. It's set by a transfer that doesn't cover the invoice too, so decide on status, not on paidAt.

  • blockchainStatusenumnullable

    What SwapWallet sees on the network for this invoice. null when it was paid from a SwapWallet account.

    Possible values

    • NOT_SEENNo transfer to the address yet.
    • NOT_CONFIRMA transfer is on the network but isn't confirmed yet.
    • CONFIRMEDA transfer is confirmed.
  • userIdstringnullable

    The userId you sent.

  • userEmailstringnullable

    The userEmail you sent.

  • userPhoneNumberstringnullable

    The userPhoneNumber you sent.

  • userTelegramIdintegernullable

    The userTelegramId you sent.

  • userDisplayNamestringnullable

    The userDisplayName you sent.

  • lockHoursinteger

    Hours the payment stays in your business balance before it's settled to the owner's account. Set when the invoice is paid; 0 before that.

  • expiredAtISO 8601 timestamp

    When the invoice stops accepting payment.

  • createdAtISO 8601 timestamp

    When the invoice was created.

The invoice object
{
  "id": "bcbb332e-0bf8-4da2-a42f-a75a0be6c36f",
  "supportCode": "AI-8LEYRQH-G8HM",
  "status": "ACTIVE",
  "description": "Spotify Premium, 1 month",
  "customData": "{\"cartId\":\"c-88412\"}",
  "wallet": {
    "network": "BSC",
    "token": "USDT",
    "address": "0xD54960E24Ff910731C04798937a60551879e8726",
    "validUntil": "2026-11-23T10:12:04.318227Z",
    "deepLinks": [
      {
        "name": "SWAP_WALLET",
        "logo": "https://swapwallet.app/media/public/assets/wallets/swapwallet.png",
        "url": "https://t.me/swapwalletbot/app?startapp=app-invoice-bcbb332e-0bf8-4da2-a42f-a75a0be6c36f",
        "urlType": "WEB_APP",
        "textFa": "واریز از سواپ‌ولت"
      },
      {
        "name": "TRUST_WALLET",
        "logo": "https://swapwallet.app/media/public/assets/wallets/trust-wallet.png",
        "url": "https://link.trustwallet.com/send?asset=c20000714_t0x55d398326f99059fF775485246999027B3197955&address=0xD54960E24Ff910731C04798937a60551879e8726&amount=9.18",
        "urlType": "URL",
        "textFa": "واریز از تراست‌ولت"
      }
    ]
  },
  "ownerId": 905513,
  "telegramInlineMessageId": null,
  "userLanguage": "FA",
  "returnUrl": "https://pixelshop.example/orders/1042",
  "webhookUrl": "https://pixelshop.example/webhooks/swapwallet",
  "orderId": "ORD-1042",
  "amount": {
    "number": "9.18",
    "unit": "USDT"
  },
  "value": {
    "number": "9.18",
    "unit": "USD"
  },
  "feePayer": "APPLICATION",
  "feeAmount": null,
  "paymentLinks": [],
  "paidAmount": null,
  "paidAt": null,
  "blockchainStatus": "NOT_SEEN",
  "userId": "u-58213",
  "userEmail": "parsa@example.com",
  "userPhoneNumber": "+989123334455",
  "userTelegramId": 974181500,
  "userDisplayName": "Parsa",
  "lockHours": 0,
  "expiredAt": "2026-11-23T10:12:04.318227Z",
  "createdAt": "2026-11-23T09:12:04.318512Z"
}

The temporary wallet object

What you get back when you create an invoice: the address to show the customer, the exact amount to send, and links that open a wallet app with both filled in.

Attributes

  • idUUID

    ID of the new invoice.

  • walletAddressstring

    Address the customer sends amount.amount to, on the network you chose.

  • amountobject

    What the customer must pay.

    Show child attributesHide child attributes
    • amountMoney

      Exact amount to send, in allowedToken. Show this number to the customer as is.

      Show child attributesHide child attributes
      • numberdecimal string

        The amount as a decimal string, without trailing zeros.

      • unitstring

        Currency or token code, such as USDT, IRT (Toman) or USD.

    • usdValueMoney

      Value in US dollars (USD).

      Show child attributesHide child attributes
      • numberdecimal string

        The amount as a decimal string, without trailing zeros.

      • unitstring

        Currency or token code, such as USDT, IRT (Toman) or USD.

    • userCurrencyValueMoney

      Value in Toman (IRT).

      Show child attributesHide child attributes
      • numberdecimal string

        The amount as a decimal string, without trailing zeros.

      • unitstring

        Currency or token code, such as USDT, IRT (Toman) or USD.

  • expiredAtISO 8601 timestamp

    When the invoice stops accepting payment.

  • createdAtISO 8601 timestamp

    When the invoice was created.

The temporary wallet object
{
  "id": "bcbb332e-0bf8-4da2-a42f-a75a0be6c36f",
  "walletAddress": "0xD54960E24Ff910731C04798937a60551879e8726",
  "links": [
    {
      "name": "SWAP_WALLET",
      "logo": "https://swapwallet.app/media/public/assets/wallets/swapwallet.png",
      "url": "https://t.me/swapwalletbot/app?startapp=app-invoice-bcbb332e-0bf8-4da2-a42f-a75a0be6c36f",
      "urlType": "WEB_APP",
      "textFa": "واریز از سواپ‌ولت"
    },
    {
      "name": "TRUST_WALLET",
      "logo": "https://swapwallet.app/media/public/assets/wallets/trust-wallet.png",
      "url": "https://link.trustwallet.com/send?asset=c20000714_t0x55d398326f99059fF775485246999027B3197955&address=0xD54960E24Ff910731C04798937a60551879e8726&amount=9.18",
      "urlType": "URL",
      "textFa": "واریز از تراست‌ولت"
    }
  ],
  "amount": {
    "amount": {
      "number": "9.18",
      "unit": "USDT"
    },
    "usdValue": {
      "number": "9.18",
      "unit": "USD"
    },
    "userCurrencyValue": {
      "number": "2500632",
      "unit": "IRT"
    }
  },
  "expiredAt": "2026-11-23T10:12:04.318227Z",
  "createdAt": "2026-11-23T09:12:04.318512Z"
}

Create an invoice

POST/v1/merchants/invoices/temporary-wallet

Creates an invoice with a temporary wallet for one token on one network, and returns the address and the exact amount the customer must send.

Set amount in any currency SwapWallet prices: IRT, USD, or a token such as USDT. SwapWallet converts it into allowedToken at the current rate, rounds it up, and returns the result in amount.amount. Show the customer that number exactly, with walletAddress and the network.

allowedTokennetwork
USDTTRON, BSC, TON
TONTON
TRXTRON

SwapWallet enables temporary-wallet invoices per business, and only for a verified business. SwapWallet's fee is always paid by your business on these invoices.

Show the address only until expiredAt. Transfers to it are credited to this invoice for 12 hours after it expires; after that the address can be given to another invoice.

underPaidCoveragePercent is the share of amount that must arrive, not the shortfall you accept: with 60, the invoice becomes PAID once 60% of amount has arrived. Leave it out to require the full amount.

Body parameters

  • amountMoneyRequired

    The price. Must be greater than zero.

    Show child attributesHide child attributes
    • numberdecimal stringRequired

      The amount, such as "2500000".

    • unitstringRequired

      Currency of number: IRT (Toman), USD, or a token code such as USDT.

  • allowedTokenenumRequired

    Token the customer pays with.

    Possible values

    • USDT
    • TON
    • TRX
  • networkenumRequired

    Network the customer sends on. See the table above for the pairs that work.

    Possible values

    • TRON
    • BSC
    • TON
  • ttlintegerRequired

    How long the invoice accepts payment, in seconds.

    300 to 86400 (24 hours)

  • orderIdstring

    Your ID for the order. Unique per business: a second invoice with the same orderId is rejected.

    Up to 255 characters

  • webhookUrlstring

    Where to send this invoice's webhooks. Overrides your business webhook URL.

    A valid URL, up to 255 characters

  • returnUrlstring

    Where SwapWallet sends the customer after they pay on a SwapWallet page.

    A valid URL, up to 255 characters

  • underPaidCoveragePercentdecimal

    Marks the invoice PAID once the confirmed transfers reach this percentage of amount. 0 requires the full amount.

    0 to 60 · Default: 0

  • descriptionstring

    What the payment is for. Shown to the customer on SwapWallet pages and in your panel.

    Up to 512 characters

  • customDatastring

    Any text you want kept with the invoice and returned unchanged, such as a JSON string.

    Up to 512 characters

  • userIdstring

    Your ID for the customer. Shown with the invoice in your panel.

    Up to 255 characters

  • userEmailstring

    The customer's email address.

    A valid email address, up to 320 characters

  • userPhoneNumberstring

    The customer's phone number, such as +989123334455.

    Up to 16 characters

  • userTelegramIdinteger

    The customer's Telegram user ID. The SwapWallet payment link appears in links only when you send it.

    0 or more

  • userDisplayNamestring

    The customer's name, shown in your panel.

    Up to 255 characters

  • userLanguageenum

    Language of SwapWallet pages and messages for this customer.

    Possible values

    • FAPersian
    • ENEnglish
    • RURussian
    • ZHChinese
    • FRFrench
    • ITItalian
    • DEGerman
    • ESSpanish
    • KOKorean

Returns

Returns a Temporary wallet object. For the full invoice, call Retrieve an invoice with its id.

Errors

  • 400API_DISABLED

    Temporary-wallet invoices aren't enabled for your business.

  • 400APPLICATION_NOT_VERIFIED

    Your business isn't verified yet.

  • 400DUPLICATE_EXTERNAL_ID

    An invoice with this orderId already exists. Retrieve it instead.

  • 404INVALID_TOKEN_ENUM

    allowedToken and network aren't a supported pair, or the token can't be deposited right now.

  • 400INVALID_NETWORK

    Deposits of the token on this network are paused.

  • 400MINIMUM_APPLICATION_INVOICE_DIDNT_MEET

    The converted amount is below the token's minimum.

POST/v1/merchants/invoices/temporary-wallet
curl -X POST https://swapwallet.app/api/v1/merchants/invoices/temporary-wallet \
  -H "Authorization: Bearer $SWAPWALLET_BUSINESS_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "amount": {
    "number": "2500000",
    "unit": "IRT"
  },
  "allowedToken": "USDT",
  "network": "BSC",
  "ttl": 3600,
  "orderId": "ORD-1042",
  "description": "Spotify Premium, 1 month",
  "customData": "{\"cartId\":\"c-88412\"}",
  "webhookUrl": "https://pixelshop.example/webhooks/swapwallet",
  "returnUrl": "https://pixelshop.example/orders/1042",
  "userId": "u-58213",
  "userEmail": "parsa@example.com",
  "userPhoneNumber": "+989123334455",
  "userTelegramId": 974181500,
  "userDisplayName": "Parsa",
  "userLanguage": "FA"
}'
Response
{
  "status": "OK",
  "result": {
    "id": "bcbb332e-0bf8-4da2-a42f-a75a0be6c36f",
    "walletAddress": "0xD54960E24Ff910731C04798937a60551879e8726",
    "links": [
      {
        "name": "SWAP_WALLET",
        "logo": "https://swapwallet.app/media/public/assets/wallets/swapwallet.png",
        "url": "https://t.me/swapwalletbot/app?startapp=app-invoice-bcbb332e-0bf8-4da2-a42f-a75a0be6c36f",
        "urlType": "WEB_APP",
        "textFa": "واریز از سواپ‌ولت"
      },
      {
        "name": "TRUST_WALLET",
        "logo": "https://swapwallet.app/media/public/assets/wallets/trust-wallet.png",
        "url": "https://link.trustwallet.com/send?asset=c20000714_t0x55d398326f99059fF775485246999027B3197955&address=0xD54960E24Ff910731C04798937a60551879e8726&amount=9.18",
        "urlType": "URL",
        "textFa": "واریز از تراست‌ولت"
      }
    ],
    "amount": {
      "amount": {
        "number": "9.18",
        "unit": "USDT"
      },
      "usdValue": {
        "number": "9.18",
        "unit": "USD"
      },
      "userCurrencyValue": {
        "number": "2500632",
        "unit": "IRT"
      }
    },
    "expiredAt": "2026-11-23T10:12:04.318227Z",
    "createdAt": "2026-11-23T09:12:04.318512Z"
  }
}

List invoices

GET/v1/merchants/invoices/full-data

Lists your invoices, newest first by default. Each item has the fields of Retrieve an invoice except the temporary wallet: wallet is always null here.

Status filters follow the clock: an unpaid invoice counts as EXPIRED from the moment expiredAt passes. To find settled invoices, filter by PAID and read status; filtering by SETTLED returns nothing.

Query parameters

  • limitinteger

    Number of items per page.

    1 to 100 · Default: 10

  • pageinteger

    Page number, starting at 0.

    0 or more · Default: 0

  • sortedByenum

    Field to sort by. Any other value sorts by createdAt.

    Default: createdAt

    Possible values

    • createdAt
    • paidAt
    • expiredAt
    • amount
  • directionenum

    Sort order.

    Default: DESC

    Possible values

    • DESCNewest or largest first.
    • ASCOldest or smallest first.
  • invoiceStatusesarray of enums

    Returns only these statuses. Repeat the parameter for more than one. PAID also returns settled invoices.

    Possible values

    • ACTIVEUnpaid, and expiredAt is still ahead.
    • PAIDPaid, settled or not.
    • EXPIREDUnpaid, and expiredAt has passed.
    • CANCELEDCanceled.
  • invoiceTypesarray of enums

    Returns only these types. Repeat the parameter for more than one.

    Possible values

    • TEMP_WALLETPaid, or waiting to be paid, by a blockchain transfer to a temporary wallet.
    • CRYPTO_INVOICEPaid from a SwapWallet account.
    • FIAT_INVOICEA Toman receipt.

Returns

Returns a page of Invoice objects in result.data, along with page, perPage, totalItems and totalPages.

GET/v1/merchants/invoices/full-data
curl -G https://swapwallet.app/api/v1/merchants/invoices/full-data \
  -H "Authorization: Bearer $SWAPWALLET_BUSINESS_KEY" \
  -d invoiceStatuses=ACTIVE \
  -d invoiceStatuses=PAID
Response
{
  "status": "OK",
  "result": {
    "page": 0,
    "perPage": 10,
    "totalItems": 2,
    "totalPages": 1,
    "data": [
      {
        "id": "e41f7c2a-9b5d-4c8e-a1f3-6d2b8e0c4a17",
        "supportCode": "AI-3TQW8ZN-P2KD",
        "status": "ACTIVE",
        "description": "Netflix Premium, 1 month",
        "customData": null,
        "wallet": null,
        "ownerId": 905513,
        "telegramInlineMessageId": null,
        "userLanguage": "EN",
        "returnUrl": null,
        "webhookUrl": "https://pixelshop.example/webhooks/swapwallet",
        "orderId": "ORD-1043",
        "amount": {
          "number": "25",
          "unit": "USDT"
        },
        "value": {
          "number": "25",
          "unit": "USD"
        },
        "feePayer": "APPLICATION",
        "feeAmount": null,
        "paymentLinks": [],
        "paidAmount": null,
        "paidAt": null,
        "blockchainStatus": "NOT_CONFIRM",
        "userId": "u-60117",
        "userEmail": null,
        "userPhoneNumber": null,
        "userTelegramId": null,
        "userDisplayName": null,
        "lockHours": 0,
        "expiredAt": "2026-11-23T10:40:15.901873Z",
        "createdAt": "2026-11-23T09:40:15.902114Z"
      },
      {
        "id": "bcbb332e-0bf8-4da2-a42f-a75a0be6c36f",
        "supportCode": "AI-8LEYRQH-G8HM",
        "status": "SETTLED",
        "description": "Spotify Premium, 1 month",
        "customData": "{\"cartId\":\"c-88412\"}",
        "wallet": null,
        "ownerId": 905513,
        "telegramInlineMessageId": null,
        "userLanguage": "FA",
        "returnUrl": "https://pixelshop.example/orders/1042",
        "webhookUrl": "https://pixelshop.example/webhooks/swapwallet",
        "orderId": "ORD-1042",
        "amount": {
          "number": "9.18",
          "unit": "USDT"
        },
        "value": {
          "number": "9.18",
          "unit": "USD"
        },
        "feePayer": "APPLICATION",
        "feeAmount": {
          "number": "0.0918",
          "unit": "USDT"
        },
        "paymentLinks": [],
        "paidAmount": {
          "number": "9.18",
          "unit": "USDT"
        },
        "paidAt": "2026-11-23T09:19:41.552904Z",
        "blockchainStatus": "CONFIRMED",
        "userId": "u-58213",
        "userEmail": "parsa@example.com",
        "userPhoneNumber": "+989123334455",
        "userTelegramId": 974181500,
        "userDisplayName": "Parsa",
        "lockHours": 0,
        "expiredAt": "2026-11-23T10:12:04.318227Z",
        "createdAt": "2026-11-23T09:12:04.318512Z"
      }
    ]
  }
}

Retrieve an invoice by order ID

GET/v1/merchants/invoices/by-order-id/{orderId}

Retrieves the invoice you created with this orderId. Use it when you kept only your own order ID, or to check whether a create request that timed out went through before you send it again.

wallet is always null in this response. For the address, call Retrieve an invoice with the invoice's id.

Path parameters

  • orderIdstringRequired

    The orderId you sent when you created the invoice.

Returns

Returns an Invoice object.

Errors

  • 404INVOICE_NOT_FOUND

    Your business has no invoice with this orderId.

GET/v1/merchants/invoices/by-order-id/{orderId}
curl https://swapwallet.app/api/v1/merchants/invoices/by-order-id/ORD-1042 \
  -H "Authorization: Bearer $SWAPWALLET_BUSINESS_KEY"
Response
{
  "status": "OK",
  "result": {
    "id": "bcbb332e-0bf8-4da2-a42f-a75a0be6c36f",
    "supportCode": "AI-8LEYRQH-G8HM",
    "status": "SETTLED",
    "description": "Spotify Premium, 1 month",
    "customData": "{\"cartId\":\"c-88412\"}",
    "wallet": null,
    "ownerId": 905513,
    "telegramInlineMessageId": null,
    "userLanguage": "FA",
    "returnUrl": "https://pixelshop.example/orders/1042",
    "webhookUrl": "https://pixelshop.example/webhooks/swapwallet",
    "orderId": "ORD-1042",
    "amount": {
      "number": "9.18",
      "unit": "USDT"
    },
    "value": {
      "number": "9.18",
      "unit": "USD"
    },
    "feePayer": "APPLICATION",
    "feeAmount": {
      "number": "0.0918",
      "unit": "USDT"
    },
    "paymentLinks": [],
    "paidAmount": {
      "number": "9.18",
      "unit": "USDT"
    },
    "paidAt": "2026-11-23T09:19:41.552904Z",
    "blockchainStatus": "CONFIRMED",
    "userId": "u-58213",
    "userEmail": "parsa@example.com",
    "userPhoneNumber": "+989123334455",
    "userTelegramId": 974181500,
    "userDisplayName": "Parsa",
    "lockHours": 0,
    "expiredAt": "2026-11-23T10:12:04.318227Z",
    "createdAt": "2026-11-23T09:12:04.318512Z"
  }
}

Retrieve an invoice

GET/v1/merchants/invoices/{invoiceId}

Retrieves an invoice by its ID, with the temporary wallet the customer pays into.

Call it before you fulfill an order to confirm the payment, or poll it if you don't use webhooks. wallet.deepLinks empties once the invoice is no longer ACTIVE.

Path parameters

  • invoiceIdUUIDRequired

    ID of the invoice.

Returns

Returns an Invoice object.

Errors

  • 404INVOICE_NOT_FOUND

    Your business has no invoice with this ID.

GET/v1/merchants/invoices/{invoiceId}
curl https://swapwallet.app/api/v1/merchants/invoices/bcbb332e-0bf8-4da2-a42f-a75a0be6c36f \
  -H "Authorization: Bearer $SWAPWALLET_BUSINESS_KEY"
Response
{
  "status": "OK",
  "result": {
    "id": "bcbb332e-0bf8-4da2-a42f-a75a0be6c36f",
    "supportCode": "AI-8LEYRQH-G8HM",
    "status": "ACTIVE",
    "description": "Spotify Premium, 1 month",
    "customData": "{\"cartId\":\"c-88412\"}",
    "wallet": {
      "network": "BSC",
      "token": "USDT",
      "address": "0xD54960E24Ff910731C04798937a60551879e8726",
      "validUntil": "2026-11-23T10:12:04.318227Z",
      "deepLinks": [
        {
          "name": "SWAP_WALLET",
          "logo": "https://swapwallet.app/media/public/assets/wallets/swapwallet.png",
          "url": "https://t.me/swapwalletbot/app?startapp=app-invoice-bcbb332e-0bf8-4da2-a42f-a75a0be6c36f",
          "urlType": "WEB_APP",
          "textFa": "واریز از سواپ‌ولت"
        },
        {
          "name": "TRUST_WALLET",
          "logo": "https://swapwallet.app/media/public/assets/wallets/trust-wallet.png",
          "url": "https://link.trustwallet.com/send?asset=c20000714_t0x55d398326f99059fF775485246999027B3197955&address=0xD54960E24Ff910731C04798937a60551879e8726&amount=9.18",
          "urlType": "URL",
          "textFa": "واریز از تراست‌ولت"
        }
      ]
    },
    "ownerId": 905513,
    "telegramInlineMessageId": null,
    "userLanguage": "FA",
    "returnUrl": "https://pixelshop.example/orders/1042",
    "webhookUrl": "https://pixelshop.example/webhooks/swapwallet",
    "orderId": "ORD-1042",
    "amount": {
      "number": "9.18",
      "unit": "USDT"
    },
    "value": {
      "number": "9.18",
      "unit": "USD"
    },
    "feePayer": "APPLICATION",
    "feeAmount": null,
    "paymentLinks": [],
    "paidAmount": null,
    "paidAt": null,
    "blockchainStatus": "NOT_SEEN",
    "userId": "u-58213",
    "userEmail": "parsa@example.com",
    "userPhoneNumber": "+989123334455",
    "userTelegramId": 974181500,
    "userDisplayName": "Parsa",
    "lockHours": 0,
    "expiredAt": "2026-11-23T10:12:04.318227Z",
    "createdAt": "2026-11-23T09:12:04.318512Z"
  }
}