---
title: "Create Pay Account (GoPay)"
method: POST
path: "/v2/pay/account"
---

# Create Pay Account (GoPay)

`POST /v2/pay/account`

## Request

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

Link customer account  - GoPay Tokenizations

## Request body

- object
  - `payment_type` string: Payment channel where the account is register to.
  - `gopay_partner` object: GoPay linking specific parameters.
    - `phone_number` string
    - `country_code` string
    - `redirect_url` string

## Response `200`

200

- object
  - `status_code` string
  - `payment_type` string
  - `channel_response_code` string
  - `channel_response_message` string

## Other responses

- `401`: 401

---

[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)
