Skip to content

Showing a transaction

[GET] https://gateway.prd.pppay.cloud/api/transaction/{transaction_id}

Query params

Field name Data type
transaction_id string (uuid)

Examples

Show transaction with ID 112233

    curl --request GET \
         --url https://gateway.prd.pppay.cloud/api/transaction/112233 \
         --header 'Authorization: Bearer MY_API_TOKEN' \
         --header 'accept: application/json'
    import requests

    url = "https://gateway.prd.pppay.cloud/api/transaction/112233"

    headers = {
        "accept": "application/json",
        "Authorization": "Bearer MY_API_TOKEN"
    }

    response = requests.get(url, headers=headers)

    print(response.text)

Responses

201 - Success
{
    "transaction": {
        "id": "123-456-789",
        "merchant_id": "123-456-789",
        "user_id": "123-456-789",
        "processor_id": "123-456-789",
        "merchant_transaction_id": "0000001",
        "transaction_type": "pix",
        "first_name": "Foo",
        "last_name": "Bar",
        "email": "[email protected]",
        "updated_at": "2022-02-02T21:36:03+0000",
        "created_at": "2022-02-02T21:34:07+0000",
        "events": [
            {
                "id": "123-456-789",
                "success": true,
                "status": "success",
                "event_type": "auth",
                "amount": "1.00",
                "processor_code": "1",
                "processor_message": "pending",
                "processor_transaction_id": "123-456-789",
                "qrcode": "COPYPASTEPIXCODE",
                "qrcode_image": "data:image/png;base64,123123456546789789",
                "pix_key_type": null,
                "pix_key_value": null,
                "pix_message": null,
                "updated_at": "2022-02-02T21:34:10+0000",
                "created_at": "2022-02-02T21:34:07+0000"
            }
        ],
        "tokenization_enabled": false,
        "subscription_id": null
    }
}
401 - Not authenticated
{
  "error": {
    "message": {
      "base": [
        "Not authenticated"
      ]
    },
    "status": 401
  },
  "debug": []
}