メインコンテンツへスキップ
GET
/
v1
/
payments
/
{id}
決済取得
curl --request GET \
  --url https://api.sandbox.zafapay.com/v1/payments/{id} \
  --header 'Authorization: Bearer <token>'
{
  "id": "tx_abc123",
  "status": "completed",
  "amount": 1000,
  "currency": "usd",
  "capture_method": "automatic",
  "connector": "stripe",
  "psp_reference": "pi_xxxxx",
  "external_id": "order_12345",
  "amount_refunded": 0,
  "refunds": [
    {
      "id": "orf_xyz789",
      "amount": 500,
      "status": "succeeded",
      "reason": "お客様都合",
      "created_at": "2024-01-15T10:35:00Z"
    }
  ],
  "metadata": {},
  "created_at": "2024-01-15T10:30:00Z",
  "updated_at": "2024-01-15T10:31:00Z"
}

Authorizations

Authorization
string
header
required

アクセストークンを使用したBearer認証

Path Parameters

id
string
required

トランザクションID

Example:

"tx_abc123"

Response

成功

id
string

トランザクションID

Example:

"tx_abc123"

status
enum<string>

ステータス

利用可能なオプション:
pending,
requires_action,
authorized,
completed,
failed,
canceled,
partially_refunded,
refunded
Example:

"completed"

amount
integer

決済金額

Example:

1000

currency
string

通貨コード

Example:

"usd"

capture_method
string

キャプチャ方式

Example:

"automatic"

connector
string

使用されたコネクタ

Example:

"stripe"

psp_reference
string

PSP側のトランザクションID

Example:

"pi_xxxxx"

external_id
string

加盟店側の注文ID

Example:

"order_12345"

amount_refunded
integer

返金済み金額

Example:

0

refunds
object[]

返金履歴

metadata
object

メタデータ

created_at
string<date-time>

作成日時

Example:

"2024-01-15T10:30:00Z"

updated_at
string<date-time>

更新日時

Example:

"2024-01-15T10:31:00Z"