---
updatedAt: 2025-06-16T20:56:54.000Z
agentTools:
  projectIndex: https://docs.payarc.net/llms.txt
---

# Last Transaction

Use "Authorization" for key and "Bearer (token you got from login)" as the value in the header.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "payarc-connect",
    "version": "1.2.0"
  },
  "servers": [
    {
      "url": "https://testpayarcconnectapi.curvpos.com"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "in": "header",
        "name": "Authorization",
        "x-default": "YourAPIKey"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/LastTransaction": {
      "get": {
        "summary": "Last Transaction",
        "description": "",
        "operationId": "last-transaction",
        "parameters": [
          {
            "name": "DeviceSerialNo",
            "in": "query",
            "description": "Serial number of your  terminal.<br><table style='width: 100%; border-collapse: collapse;'><tr><td style='text-align: center;'><b>Type</b></td><td style='text-align: center;'><b>Format</b></td></tr><tr><td>String</td><td>Alphanumeric</td></tr></table>",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "Indicates which content types, expressed as MIME types, the client is able to understand.",
            "required": true,
            "schema": {
              "type": "string",
              "default": "application/json"
            }
          },
          {
            "name": "Content-Type",
            "in": "header",
            "description": "Indicates the media type of the resource sent in the HTTP message body. <br /><br /><b>Possible Values:</b><br /> application/json<br />application/x-www-form-urlencoded",
            "required": true,
            "schema": {
              "type": "string",
              "default": "application/json"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"isSuccess\" : \"boolean\",\n  \"errorCode\" : \"string\",\n  \"errorMessage\" : \"string\",\n  \"paymentResponse\" : \"PaymentResponse\",\n  \"TransactionId\" : \"long\"\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "isSuccess": {
                      "type": "string",
                      "example": "boolean"
                    },
                    "errorCode": {
                      "type": "string",
                      "example": "string"
                    },
                    "errorMessage": {
                      "type": "string",
                      "example": "string"
                    },
                    "paymentResponse": {
                      "type": "string",
                      "example": "PaymentResponse"
                    },
                    "TransactionId": {
                      "type": "string",
                      "example": "long"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```