> For the complete documentation index, see [llms.txt](https://magicpay.gitbook.io/magicpay-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://magicpay.gitbook.io/magicpay-documentation/submerchants/submerchant-transaction-approve.md).

# Submerchant Transaction Approve

## 11.3 Submerchant Transaction Approve

**Request**

| Method | URL                                      |
| ------ | ---------------------------------------- |
| POST   | /payment/v1/payment-transactions/approve |

Copy

```
{
  "id": 1,
  "submerchant_id": 123,
  "merchant_id": 456,
  "paymentTransactionIds":[1,2],
  "product_details": {
    "product_name": "Sample Product",
    "category": "Electronics",
    "price": 49.99
  },
  "reward_amount": 10.0,
  "is_approved": true,
  "payment_id": 789
}
```

**Response**

| Status | Response                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| ------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| 200    | <p>{</p><p>"data": \[</p><p>{</p><p>"id": 1,</p><p>"submerchant\_id": 1,</p><p>"merchant\_id": 1,</p><p>"product\_details": null,</p><p>"reward\_amount": 50.0,</p><p>"is\_approved": true,</p><p>"payment\_id": 1</p><p>},</p><p>{</p><p>"id": 2,</p><p>"submerchant\_id": 2,</p><p>"merchant\_id": 1,</p><p>"product\_details": null,</p><p>"reward\_amount": 50.0,</p><p>"is\_approved": true,</p><p>"payment\_id": 1</p><p>}</p><p>]</p><p>}</p> |
| 403    |                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| 400    |                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| 401    |                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| 401    |                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| 500    |                                                                                                                                                                                                                                                                                                                                                                                                                                                      |

<br>
