**版本：202201**

# Notify Payment

**POST** `/openapi/2022-01/payments_apps/notify_callbacks`

## 请求

**Header参数**

- `Access-Token` string (required)

  Oauth's Access Token
- `Shoplazza-Shop-Domain` string (required)

  Shoplazza's store domain
- `Shoplazza-Hmac-Sha256` string (required)

  the hmac signature for this request

**application/json**

**请求体 | 示例**

**请求体**

- `app_id` string (required)

  Payment App's ID
- `payment_id` string (required)

  Payment ID
- `amount` float (required)

  Order's total price
- `status` string (required)

  Payment status from Payment App

  **可选值：** [`paid`, `failed`]
- `currency` string (required)

  Three-letter ISO 4217 currency code
- `transaction_no` string (required)

  Payment App's transaction number for reference
- `type` string (required)

  Either `sale` or `authorization`. If you support payment authorization, then this value is set based on the merchant's configuration. If you don't support separate authorization and capture, then the value is always `sale`. For sale transactions, you need to capture the funds instantly with this request. For authorization transactions, you must place a hold on the funds and capture them later when Shoplazza sends a capture request.
- `message` string

  fail reason describe here while payment fail
- `error_code` string

  payment error code from Payment App
- `test` boolean (required)

  Indicates whether the payment is in test or live mode. Refer to Test mode for more information.
- `extension` object

  Customize object from Payment App

  - `` object
- `timestamp` string (required)

  ISO-8601 format timestamp, eg: `2021-09-01T18:32:20Z`

```json
{
  "app_id": "string",
  "payment_id": "string",
  "amount": 0,
  "status": "paid",
  "currency": "string",
  "transaction_no": "string",
  "type": "string",
  "message": "string",
  "error_code": "string",
  "test": true,
  "extension": {},
  "timestamp": "string"
}
```

## 响应

**200 | 400**

200

**application/json**

无 Schema

400

**application/json**

无 Schema
