API GUIDE
Etomars API Guide CN
Etomars API Guide CN
  • Wellcome!
  • API Guide
    • API基本信息
    • Invoice
      • get
      • add
      • delete
      • update
      • label
    • Product
      • get
      • add
    • Inbound
      • get
      • add
    • Outbound
      • get
    • Inventory
      • get
    • Sales site
      • qoo10
  • Etc
    • API 변경 로그
Powered by GitBook
On this page
  1. API Guide
  2. Invoice

update

与订单信息修改相关的API

PreviousdeleteNextlabel

Last updated 11 months ago

/Hold : 保留订货

/ExpDeclInfo : 出口申报信息登记

  • /Hold : 保留订货
  • POST保留订货
  • /ExpDeclInfo : 出口申报信息登记
  • POST出口申报信息登记

保留订货

post

保留订单信息。

Body
ModestringOptional

模式 hold:变更为保留状态(默认) restore:恢复保留状态

RegNoListstring[]Required

受理编号列表 (最多100件)。

TypestringOptional

订单编号格式 regno:受理编号(默认) ordno:订单编号 delvno:快递号

IsUnpackagebooleanOptional

显示包装内的商品列表

ApiKeystringRequired

APIKey Test KEY:7abd72462c794016849abe4be

Responses
200
sucess
400
Valid Fail
post
POST /api/v1/invoice/update/hold HTTP/1.1
Host: api.etomars.com
Content-Type: application/json
Accept: */*
Content-Length: 138

{
  "Mode": "hold",
  "RegNoList": [
    "TEST20230913-001",
    "TEST20230913-002",
    "TEST20230913-006"
  ],
  "Type": "ordno",
  "ApiKey": "XXXXXXXXXXXXXXXXXXXXXXXXX"
}
{
  "TotalCount": 1,
  "SuccessCount": 1,
  "FailCount": 1,
  "Data": [
    "text"
  ],
  "Error": [
    {
      "RegNo": "text",
      "Status": 1,
      "StatusDesc": "text"
    }
  ],
  "Message": "text",
  "Code": 1
}

出口申报信息登记

post

将客户直接申报出口订单的出口申报信息更新到发票表。

Body
ApiKeystringRequired

APIKey Test KEY:7abd72462c794016849abe4be

Responses
200
sucess
400
Valid Fail
post
POST /api/v1/invoice/update/exp-decl-info HTTP/1.1
Host: api.etomars.com
Content-Type: application/json
Accept: */*
Content-Length: 391

{
  "DataList": [
    {
      "RegNo": "SN222529911JP",
      "ExpLicenceNo": "14LENGTHSFIXED",
      "ExpLicencePCS": 1,
      "ExpLicenceWeight": 1.5,
      "ExpLicenceDivision": 1
    },
    {
      "RegNo": "SN22252999912JP",
      "ExpLicenceNo": "ABCDEFGHIJKLMN",
      "ExpLicencePCS": 10,
      "ExpLicenceWeight": 1.5,
      "ExpLicenceDivision": 0
    },
    {
      "ExpLicenceNo": "AB123SCK56Q",
      "ExpLicencePCS": 0,
      "ExpLicenceWeight": 0,
      "ExpLicenceDivision": 0
    }
  ],
  "ApiKey": "XXXXXXXXXXXXXXXXXXXXXXXXX"
}
{
  "TotalCount": 1,
  "SuccessCount": 1,
  "FailCount": 1,
  "Data": [
    "text"
  ],
  "Error": [
    {
      "RegNo": "text",
      "Status": 1,
      "StatusDesc": "text"
    }
  ],
  "Message": "text",
  "Code": 1
}