Shopify ShopifAPI:通过第三方收费流程销售物品

Shopify ShopifAPI:通过第三方收费流程销售物品,shopify,Shopify,我正在为Shopify构建一个拍卖应用程序。其工作方式是,它将使用支付网关(如Stripe)捕获出价的支付细节,然后在拍卖结束时执行中标,取消剩余出价。然后,它会通过API通知Shopify商店该产品变体已经售出 由于使用传统的支付网关(不使用支付令牌化系统)不可能实现延迟捕获授权工作流,因此应用程序将需要商户在应用程序中输入其条带凭据(而不是Shopify)。然后,该应用程序将为中标自行收费,而不是通过Shopify的收费流程 我的问题是,是否可以标记通过Shopify API销售的产品变体,

我正在为Shopify构建一个拍卖应用程序。其工作方式是,它将使用支付网关(如Stripe)捕获出价的支付细节,然后在拍卖结束时执行中标,取消剩余出价。然后,它会通过API通知Shopify商店该产品变体已经售出

由于使用传统的支付网关(不使用支付令牌化系统)不可能实现延迟捕获授权工作流,因此应用程序将需要商户在应用程序中输入其条带凭据(而不是Shopify)。然后,该应用程序将为中标自行收费,而不是通过Shopify的收费流程

我的问题是,是否可以标记通过Shopify API销售的产品变体,而不创建Shopify费用,或者创建虚拟费用(因为现在应用程序不向客户收费),而不更改商户的订单处理工作流

我知道这是个复杂的问题。任何见解都将不胜感激


谢谢

您现在无法使用API创建订单。没有“将变体标记为已售出”这样的事情。

此时不能使用API创建订单。没有“将变体标记为已售出”这样的事情。

如果通过Shopify跟踪订单不是什么大不了的事,只需通过Shopify API调整变体库存/产品可用性,这是绝对可行的

如果通过Shopify跟踪订单不是一件大事,那么只需通过Shopify API调整不同的库存/产品可用性,这绝对是可行的

Shopify现在允许您使用API。一个简单的例子是:

发送至/admin/orders.json

{
  "order": {
    "line_items": [
      {
        "variant_id": 447654529,
        "quantity": 1
      }
    ]
  }
}
答复:

HTTP/1.1 201 Created

{
"order": {
"buyer_accepts_marketing": false,
"cancel_reason": null,
"cancelled_at": null,
"cart_token": null,
"checkout_token": null,
"closed_at": null,
"confirmed": true,
"created_at": "2014-05-23T14:17:59-04:00",
"currency": "USD",
"email": "",
"financial_status": "paid",
"fulfillment_status": null,
"gateway": "",
"id": 1073460004,
"landing_site": null,
"location_id": null,
"name": "#1002",
"note": null,
"number": 2,
"reference": null,
"referring_site": null,
"source": "api",
"source_identifier": null,
"source_name": "api",
"source_url": null,
"subtotal_price": "199.00",
"taxes_included": false,
"test": false,
"token": "c9afa7b7ecb0cc1a3e60652658c4c76c",
"total_discounts": "0.00",
"total_line_items_price": "199.00",
"total_price": "199.00",
"total_price_usd": "199.00",
"total_tax": "0.00",
"total_weight": 0,
"updated_at": "2014-05-23T14:17:59-04:00",
"user_id": null,
"browser_ip": null,
"landing_site_ref": null,
"order_number": 1002,
"discount_codes": [

],
"note_attributes": [

],
"processing_method": "",
"checkout_id": null,
"tax_lines": [

],
"tags": "",
"line_items": [
  {
    "fulfillment_service": "manual",
    "fulfillment_status": null,
    "gift_card": false,
    "grams": 0,
    "id": 1071823214,
    "price": "199.00",
    "product_id": 921728736,
    "quantity": 1,
    "requires_shipping": true,
    "sku": null,
    "taxable": true,
    "title": "IPod Touch 8GB",
    "variant_id": 447654529,
    "variant_title": null,
    "vendor": null,
    "name": "IPod Touch 8GB",
    "variant_inventory_management": "shopify",
    "properties": [

    ],
    "product_exists": true,
    "fulfillable_quantity": 1,
    "tax_lines": [

    ]
  }
],
"shipping_lines": [

],
"fulfillments": [

],
"refunds": [

]
 }
}
Shopify现在允许您使用API。一个简单的例子是:

发送至/admin/orders.json

{
  "order": {
    "line_items": [
      {
        "variant_id": 447654529,
        "quantity": 1
      }
    ]
  }
}
答复:

HTTP/1.1 201 Created

{
"order": {
"buyer_accepts_marketing": false,
"cancel_reason": null,
"cancelled_at": null,
"cart_token": null,
"checkout_token": null,
"closed_at": null,
"confirmed": true,
"created_at": "2014-05-23T14:17:59-04:00",
"currency": "USD",
"email": "",
"financial_status": "paid",
"fulfillment_status": null,
"gateway": "",
"id": 1073460004,
"landing_site": null,
"location_id": null,
"name": "#1002",
"note": null,
"number": 2,
"reference": null,
"referring_site": null,
"source": "api",
"source_identifier": null,
"source_name": "api",
"source_url": null,
"subtotal_price": "199.00",
"taxes_included": false,
"test": false,
"token": "c9afa7b7ecb0cc1a3e60652658c4c76c",
"total_discounts": "0.00",
"total_line_items_price": "199.00",
"total_price": "199.00",
"total_price_usd": "199.00",
"total_tax": "0.00",
"total_weight": 0,
"updated_at": "2014-05-23T14:17:59-04:00",
"user_id": null,
"browser_ip": null,
"landing_site_ref": null,
"order_number": 1002,
"discount_codes": [

],
"note_attributes": [

],
"processing_method": "",
"checkout_id": null,
"tax_lines": [

],
"tags": "",
"line_items": [
  {
    "fulfillment_service": "manual",
    "fulfillment_status": null,
    "gift_card": false,
    "grams": 0,
    "id": 1071823214,
    "price": "199.00",
    "product_id": 921728736,
    "quantity": 1,
    "requires_shipping": true,
    "sku": null,
    "taxable": true,
    "title": "IPod Touch 8GB",
    "variant_id": 447654529,
    "variant_title": null,
    "vendor": null,
    "name": "IPod Touch 8GB",
    "variant_inventory_management": "shopify",
    "properties": [

    ],
    "product_exists": true,
    "fulfillable_quantity": 1,
    "tax_lines": [

    ]
  }
],
"shipping_lines": [

],
"fulfillments": [

],
"refunds": [

]
 }
}

谢谢在这种情况下,为Shopify进行拍卖似乎是不可能的。我有一个应用程序在Shopify上运行荷兰式拍卖,但不像你描述的那样。大卫所说的是创建这样一个应用程序的主要障碍。谢谢。在这种情况下,为Shopify进行拍卖似乎是不可能的。我有一个在Shopify上运行荷兰式拍卖的应用程序,但不像你描述的那样。大卫所说的是创建这样一个应用程序的主要障碍。就像这个问题的答案一样,目前不可能构建这样的应用程序。因此,我采取了不同的方法来构建类似于这个问题状态的答案,目前不可能构建这样的应用程序。因此,我采取了不同的方法来构建