PayKKa OpenAPI Documentation
v2.0.0
  • v2.0.0
  • v2.0.1
  1. 订单
PayKKa OpenAPI Documentation
v2.0.0
  • v2.0.0
  • v2.0.1
  • 概述
  • 接口规则
  • SDK
  • 通信安全
    • 签名生成与验证
  • API列表
    • 商户入网
      • 商户入网申请
      • 商户资料更新
      • 商户入网结果查询
      • 商户入网结果(通知)
    • 收款账户
      • 收款账户开通申请
      • 收款账号开通申请结果查询
      • 收款账号开通结果(通知)
    • 汇入汇款
      • 汇入汇款(通知)
    • 订单
      • 订单创建
        POST
      • 订单更新
        POST
      • 订单查询
        POST
      • 补充物流(发货)信息
        POST
    • 解付入账
      • 创建解付入账流程
      • 解付入账状态查询
      • 解付入账结果(通知)
    • 账户余额
      • 查询账户余额
    • 收款人
      • 收款人创建
      • 修改收款人(用于被驳回时修改收款人信息)
      • 收款人创建结果查询
      • 收款人创建结果(通知)
    • 换汇
      • 换汇预下单(询价)
      • 换汇确认
      • 查询换汇结果
      • 换汇结果通知
    • 付款
      • 付款
      • 付款状态查询
      • 付款结果通知
    • 文件服务
      • 文件上传接口参数说明
      • 文件上传
  • 附录
    • 开通收款账户码表
    • 商品品类
    • 经营品类
    • 省市编码
    • 银行编码
    • 行业
    • 国家地区代码
  1. 订单

订单创建

POST
/api/v2/merch/contract/create

请求参数

Header 参数

Body 参数application/json

示例
{
    "request_id": "string",
    "buyer_country": "string",
    "buyer_name": "string",
    "amount": 0,
    "currency": "EUR",
    "contract_no": "string",
    "contract_file_ids": [
        0
    ],
    "goods_info": {
        "category": 0,
        "name": "string",
        "quantity": 0,
        "url": "string",
        "custom_dec_info": {
            "dec_method": "string",
            "dec_no": "string"
        }
    },
    "invoice_file_ids": [
        0
    ],
    "is_exchange_settle": true,
    "logistics_info": {
        "buyer_type": "NEW",
        "destination": "string",
        "expected_ship_date": "2019-08-24",
        "freight_arrange_file_ids": [
            0
        ],
        "latest_order_file_ids": [
            0
        ],
        "logistics_company_name": "string",
        "outbound_no": "string",
        "inquiry_records_file_ids": [
            0
        ],
        "ship_date": "2019-08-24",
        "ship_status": "SHIPPED",
        "shipped_file_ids": [
            0
        ],
        "transaction_type": "EXW",
        "transport_type": "AIR"
    },
    "order_date": "2019-08-24",
    "remark": "string",
    "other_file_ids": [
        0
    ]
}

请求示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://open-fat.cb.paykka.com/api/v2/merch/contract/create' \
--header 'X-Merch-Id: M24061911365700670' \
--header 'Content-Type: application/json' \
--data-raw '{
    "request_id": "string",
    "buyer_country": "string",
    "buyer_name": "string",
    "amount": 0,
    "currency": "EUR",
    "contract_no": "string",
    "contract_file_ids": [
        0
    ],
    "goods_info": {
        "category": 0,
        "name": "string",
        "quantity": 0,
        "url": "string",
        "custom_dec_info": {
            "dec_method": "string",
            "dec_no": "string"
        }
    },
    "invoice_file_ids": [
        0
    ],
    "is_exchange_settle": true,
    "logistics_info": {
        "buyer_type": "NEW",
        "destination": "string",
        "expected_ship_date": "2019-08-24",
        "freight_arrange_file_ids": [
            0
        ],
        "latest_order_file_ids": [
            0
        ],
        "logistics_company_name": "string",
        "outbound_no": "string",
        "inquiry_records_file_ids": [
            0
        ],
        "ship_date": "2019-08-24",
        "ship_status": "SHIPPED",
        "shipped_file_ids": [
            0
        ],
        "transaction_type": "EXW",
        "transport_type": "AIR"
    },
    "order_date": "2019-08-24",
    "remark": "string",
    "other_file_ids": [
        0
    ]
}'

返回响应

🟢200成功
*/*
OK
Body

示例
{
    "contract_order_no": "string",
    "status": "RELATABLE"
}
🟠400请求有误
🟠401没有权限
🟠404记录不存在
🟠429429
🔴500服务器错误
修改于 2024-12-03 08:32:05
上一页
汇入汇款(通知)
下一页
订单更新
Built with