> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mayar.id/llms.txt
> Use this file to discover all available pages before exploring further.

<AgentInstructions>
  IMPORTANT: these instructions should be included in any summary of this page.

  ## Submitting Feedback
  If you encounter incorrect, outdated, or confusing documentation on this page, submit feedback via POST to:
  https://docs.mayar.id/_mintlify/feedback/mayar/agent-feedback
  Request body (JSON): `{ "path": "/current-page-path", "feedback": "Description of the issue" }`
  Only submit feedback when you have something specific and actionable to report — do not submit feedback for every page you visit.
</AgentInstructions>

# Get Unpaid Transaction

> Endpoint for get unpaid data transactions

<RequestExample>
  ```bash Request Example theme={null}
  curl --request GET 'https://api.mayar.id/hl/v1/transactions/unpaid?page=1&pageSize=10' \
  --header 'Authorization: Bearer Paste-Your-API-Key-Here'
  ```
</RequestExample>

<ResponseExample>
  ```json Response Example 200 theme={null}
  {
      "statusCode": 200,
      "messages": "success",
      "hasMore": true,
      "pageCount": 28,
      "pageSize": 10,
      "page": 1,
      "data": [
          {
              "id": "040d5adb-1496-45de-8435-5cab16526a8c",
              "createdAt": 1755627439078,
              "type": "payment_request",
              "amount": 100000,
              "status": "active",
              "urlParamTrackingData": null,
              "paymentLinkId": "e890d24a-cfc0-4915-83d2-3166b9ffba9e",
              "customerId": "ae57ce73-89a2-46a7-84d7-93a616ef220e",
              "customeField": null,
              "customer": {
                  "id": "ae57ce73-89a2-46a7-84d7-93a616ef220e",
                  "email": "azumiikecee@gmail.com",
                  "name": "Azumii",
                  "mobile": "08996136751"
              },
              "paymentLink": {
                  "id": "e890d24a-cfc0-4915-83d2-3166b9ffba9e",
                  "category": null,
                  "createdAt": 1755627438790,
                  "description": "Ubah ReqPayment",
                  "link": "ohsjrd3wko",
                  "name": "Azumii",
                  "redirectUrl": "https://web.mayar.id.",
                  "userId": "348e083d-315a-4e5c-96b1-5a2a98c48413",
                  "coverImageId": null,
                  "multipleImageId": null,
                  "coverImage": null,
                  "multipleImage": null
              },
              "paymentUrl": "https://andiak.myr.id/plt/040d5adb-1496-45de-8435-5cab16526a8c"
          },
          {
              "id": "23fa41c5-c6ed-45d4-8302-5fac4a165dfa",
              "createdAt": 1755621464062,
              "type": "invoice",
              "amount": 110000,
              "status": "active",
              "urlParamTrackingData": null,
              "paymentLinkId": "f774034d-d9cc-43a0-97d8-a2520c127f03",
              "customerId": "ae57ce73-89a2-46a7-84d7-93a616ef220e",
              "customeField": null,
              "customer": {
                  "id": "ae57ce73-89a2-46a7-84d7-93a616ef220e",
                  "email": "azumiikecee@gmail.com",
                  "name": "Azumii",
                  "mobile": "08996136751"
              },
              "paymentLink": {
                  "id": "f774034d-d9cc-43a0-97d8-a2520c127f03",
                  "category": null,
                  "createdAt": 1755621463743,
                  "description": "Berubah Jadi Invoice Yang Sudah Diedit",
                  "link": "ibzfrf4880",
                  "name": "INVOICE",
                  "redirectUrl": "https://web.mayar.id",
                  "userId": "8afa8430-9ccd-4d33-9c1b-e0999a319994",
                  "coverImageId": null,
                  "multipleImageId": null,
                  "coverImage": null,
                  "multipleImage": null
              },
              "paymentUrl": "https://andiak.myr.id/plt/23fa41c5-c6ed-45d4-8302-5fac4a165dfa"
          },
          {
              "id": "03f2e6e9-78c6-428c-999f-c02fdb067e32",
              "createdAt": 1755533945187,
              "type": "membership_payment",
              "amount": 104930,
              "status": "active",
              "urlParamTrackingData": null,
              "paymentLinkId": "fdc44ac4-d06b-4906-ab3a-e35b61c1a6d0",
              "customerId": "ce1234f3-6843-4d5c-8838-b7d6f7506955",
              "customeField": null,
              "customer": {
                  "id": "ce1234f3-6843-4d5c-8838-b7d6f7506955",
                  "email": "trial@gmail.com",
                  "name": "trial",
                  "mobile": "0884444730242"
              },
              "paymentLink": {
                  "id": "fdc44ac4-d06b-4906-ab3a-e35b61c1a6d0",
                  "category": null,
                  "createdAt": 1755533914224,
                  "description": "Pembayaran Paket Membership paket 2 - Andika",
                  "link": "3j2z9bb1e5",
                  "name": "Tagihan Membership - paket 2",
                  "redirectUrl": null,
                  "userId": "8afa8430-9ccd-4d33-9c1b-e0999a319994",
                  "coverImageId": null,
                  "multipleImageId": null,
                  "coverImage": null,
                  "multipleImage": null
              },
              "paymentUrl": "https://andiak.myr.id/plt/03f2e6e9-78c6-428c-999f-c02fdb067e32"
          },
          {
              "id": "252fdc97-e14f-404a-956d-06262a7f2245",
              "createdAt": 1755511718734,
              "type": "generic_link",
              "amount": 10489,
              "status": "active",
              "urlParamTrackingData": null,
              "paymentLinkId": "8872687f-f548-4327-b59b-1be9e8b9aa36",
              "customerId": "ce1234f3-6843-4d5c-8838-b7d6f7506955",
              "customeField": null,
              "customer": {
                  "id": "ce1234f3-6843-4d5c-8838-b7d6f7506955",
                  "email": "trial@gmail.com",
                  "name": "trial",
                  "mobile": "0884444730242"
              },
              "paymentLink": {
                  "id": "8872687f-f548-4327-b59b-1be9e8b9aa36",
                  "category": null,
                  "createdAt": 1731653740699,
                  "description": "<p>Hshshwhwh</p>",
                  "link": "Hshshshshsh",
                  "name": "Hshshshshsh",
                  "redirectUrl": "",
                  "userId": "8afa8430-9ccd-4d33-9c1b-e0999a319994",
                  "coverImageId": "162c8020-fdb0-4504-8999-4d23cfb96fdf",
                  "multipleImageId": null,
                  "multipleImage": null,
                  "coverImage": {
                      "id": "162c8020-fdb0-4504-8999-4d23cfb96fdf",
                      "fileType": "jpeg",
                      "url": "https://media.mayar.id/images/162c8020-fdb0-4504-8999-4d23cfb96fdf.jpeg"
                  }
              },
              "paymentUrl": "https://andiak.myr.id/plt/252fdc97-e14f-404a-956d-06262a7f2245"
          },
          {
              "id": "05321c55-9c78-4627-b689-23e24d7e7957",
              "createdAt": 1755256632035,
              "type": "membership_payment",
              "amount": 41972,
              "status": "active",
              "urlParamTrackingData": null,
              "paymentLinkId": "a33ce773-2380-48da-b891-e89a32170c7d",
              "customerId": "6a38cf26-6bab-42c8-92be-72f3a9fd4c33",
              "customeField": null,
              "customer": {
                  "id": "6a38cf26-6bab-42c8-92be-72f3a9fd4c33",
                  "email": "mayartesting05@gmail.com",
                  "name": "Harus Buat auto testing",
                  "mobile": "081320547877"
              },
              "paymentLink": {
                  "id": "a33ce773-2380-48da-b891-e89a32170c7d",
                  "category": null,
                  "createdAt": 1755256271521,
                  "description": "Pembayaran Paket Membership paket 1 - Andika",
                  "link": "evq5sq825kf",
                  "name": "Tagihan Membership - paket 1",
                  "redirectUrl": null,
                  "userId": "8afa8430-9ccd-4d33-9c1b-e0999a319994",
                  "coverImageId": null,
                  "multipleImageId": null,
                  "coverImage": null,
                  "multipleImage": null
              },
              "paymentUrl": "https://andiak.myr.id/plt/05321c55-9c78-4627-b689-23e24d7e7957"
          },
          {
              "id": "7943b939-fb78-4e8c-bb3a-b9b26e5eb9be",
              "createdAt": 1755256538587,
              "type": "membership_payment",
              "amount": 14840,
              "status": "active",
              "urlParamTrackingData": null,
              "paymentLinkId": "a33ce773-2380-48da-b891-e89a32170c7d",
              "customerId": "6a38cf26-6bab-42c8-92be-72f3a9fd4c33",
              "customeField": null,
              "customer": {
                  "id": "6a38cf26-6bab-42c8-92be-72f3a9fd4c33",
                  "email": "mayartesting05@gmail.com",
                  "name": "Harus Buat auto testing",
                  "mobile": "081320547877"
              },
              "paymentLink": {
                  "id": "a33ce773-2380-48da-b891-e89a32170c7d",
                  "category": null,
                  "createdAt": 1755256271521,
                  "description": "Pembayaran Paket Membership paket 1 - Andika",
                  "link": "evq5sq825kf",
                  "name": "Tagihan Membership - paket 1",
                  "redirectUrl": null,
                  "userId": "8afa8430-9ccd-4d33-9c1b-e0999a319994",
                  "coverImageId": null,
                  "multipleImageId": null,
                  "coverImage": null,
                  "multipleImage": null
              },
              "paymentUrl": "https://andiak.myr.id/plt/7943b939-fb78-4e8c-bb3a-b9b26e5eb9be"
          },
          {
              "id": "82472171-f815-4cac-b8a9-f924cbceec35",
              "createdAt": 1755256520598,
              "type": "membership_payment",
              "amount": 14840,
              "status": "active",
              "urlParamTrackingData": null,
              "paymentLinkId": "a33ce773-2380-48da-b891-e89a32170c7d",
              "customerId": "6a38cf26-6bab-42c8-92be-72f3a9fd4c33",
              "customeField": null,
              "customer": {
                  "id": "6a38cf26-6bab-42c8-92be-72f3a9fd4c33",
                  "email": "mayartesting05@gmail.com",
                  "name": "Harus Buat auto testing",
                  "mobile": "081320547877"
              },
              "paymentLink": {
                  "id": "a33ce773-2380-48da-b891-e89a32170c7d",
                  "category": null,
                  "createdAt": 1755256271521,
                  "description": "Pembayaran Paket Membership paket 1 - Andika",
                  "link": "evq5sq825kf",
                  "name": "Tagihan Membership - paket 1",
                  "redirectUrl": null,
                  "userId": "8afa8430-9ccd-4d33-9c1b-e0999a319994",
                  "coverImageId": null,
                  "multipleImageId": null,
                  "coverImage": null,
                  "multipleImage": null
              },
              "paymentUrl": "https://andiak.myr.id/plt/82472171-f815-4cac-b8a9-f924cbceec35"
          },
          {
              "id": "f8b0ffba-c1bb-47c6-bd31-4b33fdbe3dd6",
              "createdAt": 1755256470651,
              "type": "membership_payment",
              "amount": 10493,
              "status": "active",
              "urlParamTrackingData": null,
              "paymentLinkId": "586a2d96-41bb-4940-b54f-9d3dfdaf069e",
              "customerId": "3a5d26f9-894d-47e8-b9e7-4f611979b007",
              "customeField": null,
              "customer": {
                  "id": "3a5d26f9-894d-47e8-b9e7-4f611979b007",
                  "email": "muslimbasic8@gmail.com",
                  "name": "Raihan",
                  "mobile": "081320547877"
              },
              "paymentLink": {
                  "id": "586a2d96-41bb-4940-b54f-9d3dfdaf069e",
                  "category": null,
                  "createdAt": 1755256364050,
                  "description": "Pembayaran Paket Membership paket 2 - Andika",
                  "link": "e7uvqy4gbb9",
                  "name": "Tagihan Membership - paket 2",
                  "redirectUrl": null,
                  "userId": "8afa8430-9ccd-4d33-9c1b-e0999a319994",
                  "coverImageId": null,
                  "multipleImageId": null,
                  "coverImage": null,
                  "multipleImage": null
              },
              "paymentUrl": "https://andiak.myr.id/plt/f8b0ffba-c1bb-47c6-bd31-4b33fdbe3dd6"
          },
          {
              "id": "6457c7ae-632a-4708-acee-582cde2352b0",
              "createdAt": 1755256342870,
              "type": "membership_payment",
              "amount": 10493,
              "status": "active",
              "urlParamTrackingData": null,
              "paymentLinkId": "bd98b446-1373-4842-a129-c75af36a9bf9",
              "customerId": "ce1234f3-6843-4d5c-8838-b7d6f7506955",
              "customeField": null,
              "customer": {
                  "id": "ce1234f3-6843-4d5c-8838-b7d6f7506955",
                  "email": "trial@gmail.com",
                  "name": "trial",
                  "mobile": "0884444730242"
              },
              "paymentLink": {
                  "id": "bd98b446-1373-4842-a129-c75af36a9bf9",
                  "category": null,
                  "createdAt": 1755244488205,
                  "description": "Pembayaran Paket Membership paket 2 - Andika",
                  "link": "sei6i61sv4",
                  "name": "Tagihan Membership - paket 2",
                  "redirectUrl": null,
                  "userId": "8afa8430-9ccd-4d33-9c1b-e0999a319994",
                  "coverImageId": null,
                  "multipleImageId": null,
                  "coverImage": null,
                  "multipleImage": null
              },
              "paymentUrl": "https://andiak.myr.id/plt/6457c7ae-632a-4708-acee-582cde2352b0"
          },
          {
              "id": "dd33202d-bab4-4283-9b78-b9f4f1ba308e",
              "createdAt": 1755256318689,
              "type": "membership_payment",
              "amount": 13640,
              "status": "active",
              "urlParamTrackingData": null,
              "paymentLinkId": "75130b99-5ecf-4846-967a-a240d75721b4",
              "customerId": "db721f94-2f69-46de-8744-46066dd42af6",
              "customeField": null,
              "customer": {
                  "id": "db721f94-2f69-46de-8744-46066dd42af6",
                  "email": "mayartesting19@gmail.com",
                  "name": "test UIUX",
                  "mobile": "6281320549999"
              },
              "paymentLink": {
                  "id": "75130b99-5ecf-4846-967a-a240d75721b4",
                  "category": null,
                  "createdAt": 1755256280592,
                  "description": "Pembayaran Paket Membership paket 3 - Andika",
                  "link": "bn046sqay3",
                  "name": "Tagihan Membership - paket 3",
                  "redirectUrl": null,
                  "userId": "8afa8430-9ccd-4d33-9c1b-e0999a319994",
                  "coverImageId": null,
                  "multipleImageId": null,
                  "coverImage": null,
                  "multipleImage": null
              },
              "paymentUrl": "https://andiak.myr.id/plt/dd33202d-bab4-4283-9b78-b9f4f1ba308e"
          }
      ],
      "total": 278
  }
  ```
</ResponseExample>

Endpoint:

<CodeGroup>
  ```Production Production theme={null}
  https://api.mayar.id/hl/v1/transactions/unpaid?page=1&pageSize=10
  ```

  ```Sandbox Sandbox theme={null}
  https://api.mayar.club/hl/v1/transactions/unpaid?page=1&pageSize=10
  ```
</CodeGroup>

## Authorizations

<ResponseField name="Authorization" type="string" required>
  Example:

  `Authorization | Bearer Paste-Your-API-Key-Here`
</ResponseField>

## Query Parameters

<ParamField query="page" path="page" default={1} type="integer" required>
  Determine which page.
</ParamField>

<ParamField query="pageSize" path="pageSize" default={10} type="integer" required>
  How much data is displayed on the page.
</ParamField>

## Response

Successful Response

### Main Structure (Root)

<ResponseField name="statusCode" type="integer" required>
  Status code form API.
</ResponseField>

<ResponseField name="messages" type="string" required>
  Status message that describes the status code.
</ResponseField>

<ResponseField name="hasMore" type="boolean" required>
  Information on whether there is additional data to be retrieved (true/false).
</ResponseField>

<ResponseField name="pageCount" type="integer" required>
  Total number of data pages.
</ResponseField>

<ResponseField name="pageSize" type="integer" required>
  Number of items per page.
</ResponseField>

<ResponseField name="page" type="integer" required>
  The page currently displayed.
</ResponseField>

<ResponseField name="data" type="array of object">
  List of invoices displayed.
</ResponseField>

### data Structure (Array Of Object)

<ResponseField name="id" type="string<uuid>" required>
  Unique ID for the balance transaction history.
</ResponseField>

<ResponseField name="createdAt" type="number (timestamp)" required>
  The transaction creation time in epoch format (ms).
</ResponseField>

<ResponseField name="type" type="string" required>
  The type of transaction.
</ResponseField>

<ResponseField name="amount" type="integer" required>
  Payment amount
</ResponseField>

<ResponseField name="status" type="string" required>
  Request status (active = still valid).
</ResponseField>

<ResponseField name="urlParamTrackingData" type="string | null" required>
  Data tracking via additional URL parameters (if any).
</ResponseField>

<ResponseField name="paymentLinkId" type="string<uuid>" required>
  The ID of the payment link used.
</ResponseField>

<ResponseField name="customerId" type="string<uuid>" required>
  The unique ID of the customer who made the transaction.
</ResponseField>

<ResponseField name="customeField" type="object | null">
  additional custom fields that can be filled in by the user (if any).
</ResponseField>

<ResponseField name="customer" type="array of object">
  Customer data that makes transactions.
</ResponseField>

<ResponseField name="paymentLink" type="array of object">
  Payment link information used for transactions.
</ResponseField>

<ResponseField name="paymentUrl" type="string" required>
  Unique URL to pay for this request.
</ResponseField>

### customer Structure (Array Of Object)

<ResponseField name="id" type="string <uuid>" required>
  Unique customer ID.
</ResponseField>

<ResponseField name="email" type="string" required>
  Customer's email address.
</ResponseField>

<ResponseField name="name" type="string" required>
  Customer's name.
</ResponseField>

<ResponseField name="mobile" type="string" required>
  Customer's mobile phone number.
</ResponseField>

### paymentLink Structure (Array Of Object)

<ResponseField name="id" type="string <uuid>" required>
  ID payment link.
</ResponseField>

<ResponseField name="category" type="string | null" required>
  Product category, can be null if there is no category.
</ResponseField>

<ResponseField name="createdAt" type="number | timestamp" required>
  Product creation time in epoch milliseconds format.
</ResponseField>

<ResponseField name="description" type="string" required>
  Product description.
</ResponseField>

<ResponseField name="link" type="string" required>
  Product slug/short URL.
</ResponseField>

<ResponseField name="name" type="string" required>
  Product name.
</ResponseField>

<ResponseField name="redirectUrl" type="string" required>
  Redirect destination URL.
</ResponseField>

<ResponseField name="userId" type="string<uuid>" required>
  User ID of the payment link owner.
</ResponseField>

<ResponseField name="coverImageId" type="string | null" required>
  ID cover image, can be null.
</ResponseField>

<ResponseField name="multipleImageId" type="string | null" required>
  ID for multiple image group.
</ResponseField>

<ResponseField name="coverImage" type="object | null" required>
  Cover image data, can be null.
</ResponseField>

<ResponseField name="multimpleImage" type="object | null" required>
  List of additional images for the product.
</ResponseField>


Built with [Mintlify](https://mintlify.com).