---
title: "Ovrd Notification URL"
method: POST
path: "/v2/charge"
---

# Ovrd Notification URL

`POST /v2/charge`

## Request

- Base URL: `https://api.sandbox.midtrans.com`
- URL: `https://api.sandbox.midtrans.com/v2/charge`
- Auth: HTTP basic

## Request body

- object
  - `payment_type` string, required
  - `transaction_details` object, required
    - `order_id` string
    - `gross_amount` integer
  - `item_details` object[]
    - `id` string
    - `price` integer
    - `quantity` integer
    - `name` string
  - `customer_details` object
    - `first_name` string
    - `last_name` string
    - `email` string
    - `phone` string
    - `customer_details_required_fields` string[]
  - `custom_field1` string
  - `custom_field2` string
  - `custom_field3` string
  - `custom_expiry` object
    - `expiry_duration` integer
    - `unit` string
  - `metadata` object
    - `you` string
    - `put` string
    - `parameter` string

## Response `200`

200

- union
  - object
    - `status_code` string
    - `status_message` string
    - `transaction_id` string
    - `order_id` string
    - `merchant_id` string
    - `gross_amount` string
    - `currency` string
    - `payment_type` string
    - `transaction_time` string
    - `transaction_status` string
    - `fraud_status` string
    - `actions` object[]
      - `name` string
      - `method` string
      - `url` string
    - `qr_string` string
    - `acquirer` string
    - `expire_time` string
  - object
    - `status_code` string
    - `status_message` string
    - `id` string

## Other responses

- `400`: 400
- `401`: 401
- `429`: 429

---

[API](https://skmtc.dev/midtrans/apis/coreapi.md) - [All operations](https://skmtc.dev/midtrans/apis/coreapi/llms.txt) - [OpenAPI document](https://skmtc.dev/midtrans/apis/coreapi/revisions/bbf7d11a1f1f?raw)
