DevelopersDocsMBXNewsroomHelp Centre
Log InSign Up
HomeDevelopersDocsMBXNewsroomHelp Centre

Docs

The Button

  • Overview
  • HTML
  • JavaScript
  • React
  • Crypto Operations
  • Invisible Money Button
  • Paymail Signatures
  • Paymail Encryption

API

OAuth

API v2

Get Payment By ID

Retrieves the data related to a specific payment.

Facts

AttributeValue
urlhttps://www.moneybutton.com/api/v2/me/payments/{:paymentId}
http verbGET
Required scopepayments:read or application_access:write

Attributes

URL


  • paymentId: The id of the required payment. This is not a txid, it's a Money Button id for the payment object.

Response

{
  "payment": {
    "id": "5",
    "createdAt": "2020-12-21T20:48:33.957Z",
    "updatedAt": "2020-12-21T20:48:34.873Z",
    "userId": "5",
    "txid": null,
    "normalizedTxid": "ec0b3eb780e88fc50c05b257ea2256a7ae1edf1db9b8f484edc6b7b9082f573f",
    "amount": "0.0018793385216172912",
    "currency": "USD",
    "satoshis": "1092",
    "transactionId": null,
    "status": "FAILED",
    "statusDescription": "16: mandatory-script-verify-flag-failed (Script failed an OP_VERIFY operation)",
    "clientId": null,
    "buttonId": null,
    "buttonData": null,
    "referrerUrl": "",
    "browserUserAgent": "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:84.0) Gecko/20100101 Firefox/84.0",
    "amountUsd": "0.0018793385216172912",
    "inputAmountUsd": "3.4397402164707396",
    "inputAmountSatoshis": "1998680",
    "spendAmountUsd": "0.004040922022671612",
    "spendAmountSatoshis": "2348",
    "feeAmountUsd": "0.0021615835010543203",
    "feeAmountSatoshis": "1256",
    "changeAmountUsd": "3.4366389637088766",
    "changeAmountSatoshis": "1996878",
    "rawtx": {
      "type": "Buffer",
      "data": [<Buffer>]
    },
    "cryptoOperations": [<cryptoOperations>],
    "source": "INTERNAL",
    "senderSignature": "IKiNGlqV0vHLjrmKrISabL7drcAhCuPp5x3Z2TxPGL9DKs84MbMGDP2VoNiuunhV8MR7ReaD8F7HgCJexvL4gqM=",
    "senderPaymail": "[email protected]",
    "signaturePubkey": "022e5fd9234bbd554ca3a8eac278ffa3fc6f0871fd39e298792a740b992815ac93",
    "preserveOrder": false,
    "paymentOutputs": [<paymentOutputs>],
    "app": null
  },
  "paymentOutputs": [<paymentOutputs>]
}
HomeMB for DevelopersMBXNewsroomHelp Center

Buenos Aires, Argentina - Tel Aviv, Israel - Toronto, Canada

@ 2022 MoneyButton All rights reserved