> ## 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.

# Edit Single Payment Request

> Endpoint used to edit billing that has been created

```bash Request Example theme={null}
curl --request POST 'https://api.mayar.id/hl/v1/invoice/create' \
--header 'Authorization: Bearer Paste-Your-API-Key-Here' \
--header 'Content-Type: application/json' \
--data-raw '{
        "name": "Azumii",
        "email": "azumiikecee@gmail.com",
        "amount": 100000,
        "mobile": "089961367511",
        "redirectUrl": "https://web.mayar.id.",
        "description": "Ubah ReqPayment",
        "expiredAt": "2025-12-29T09:41:09.401Z",
        "id": "e890d24a-cfc0-4915-83d2-3166b9ffba9e"
    }
'
```

```json Response Example 200 theme={null}
{
    "statusCode": 200,
    "messages": "success",
    "data": {
        "id": "e890d24a-cfc0-4915-83d2-3166b9ffba9e",
        "link": "https://testingmayar.myr.id/invoices/ohsjrd3wko"
    }
}
```

Endpoint:

```Production Production theme={null}
https://api.mayar.id/hl/v1/payment/edit
```

```Sandbox Sandbox theme={null}
https://api.mayar.io/hl/v1/payment/edit
```

## Authorization

**Authorization** `string` *required*

Example:

`Authorization | Bearer Paste-Your-API-Key-Here`

## Request Body

**name** `string` *required*

Customer Name

**email** `string` *required*

Customer email used to send proof of payment, or payment reminders

**amount** `integer` *required*

Nominal amount of payment

**mobile** `string` *required*

Customer telephone number

**redirectURL** `string` *required*

The destination URL where the customer will be redirected after a successful or completed transaction.

**description** `string` *required*

General description of the transaction or order.

**expiredAt** `string (format ISO 8601 date-time)` *required*

The transaction expiration date and time. This means that after this time, the payment link or order is no longer valid.

**id** `string\<uuid\>` *required*

A unique identifier obtained when creating an single request payment. If accessed through the dashboard, it can be found at the URL on the request payment details page.

Example:

`e890d24a-cfc0-4915-83d2-3166b9ffba9e`

## Response

Successful Response

### Main Structure (Root)

**statusCode** `integer`

Status code form API.

**messages** `string`

Status message that describes the status code.

**data** `array of object`

The main data returned (request payment details).

### data Structure (Array Of Object)

**id** `string\<uuid\>`

Unique request payment ID.

**link** `string`

The URL that users/clients can access to open request payment.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.