All requests to the /v2/transactions/* endpoints must include both the client_id and api_key as detailed in the Authentication document.

Get a transaction object by its id.

Retrieve a Transaction

Method

Make a request to /v2/transactions/get/transaction/

> curl https://pls.senddotssandbox.com/v2/transactions/get/transation/5cfabe15-d452-4558-8e46-56d90ebe48f7 \
  -H "Authorization: Basic <TOKEN>"

> response = {
    "success": true,
    "transaction": {
      "id": "5cfabe15-d452-4558-8e46-56d90ebe48f7",
      "date": "Mon, 21 Feb 2022 21:08:49 GMT",
      "source_username": "sha",
      "destination_username": "kartikye",
      "amount": 700,
      "completed": true,
      "type": "wallet",
      "receipt": {
        "items": [
          {
              "name": "Pikachu Digital Pet",
              "unit_amount": 250,
              "quantity": 1,
              "description": "A little Pikachu for your desktop"
          },
          {
              "name": "Charmander Digital Pet",
              "unit_amount": 225,
              "quantity": 2,
              "description": "A ferocius Charmander for your desktop"
          }
        ],
        "breakdown": {
            "items_total": 700,
            "tax": 100,
            "shipping": 0
        },
      },
      "notes": {
        "internal_id": "tr_213124"
      }
    }
  }