How to Manage Inventory Ticket Inventory in BlueSnap API

I sell event tickets for the company, and I use the BlueSnap Extended API to sell tickets.

I create a new SKU directory for each event with an appropriate price for the place, following the BlueSnap documentation here: https://developers.bluesnap.com/v8976-Extended/docs/create-sku . These events have a certain number of seats, and there are several more promoters who can sell tickets for the same event.

I want to make sure that we do not reserve the venue and know exactly how many seats have been sold - minus the refund / cancellation if they happen. I thought about managing it on my side using IPN, but this is not easy, especially if I need to cancel and restore the inventory. I examined the documentation and could not find a solution. Is there a built-in way to limit units sold for a particular SKU?

+4
source share
1 answer

This is an interesting hidden feature of the BlueSnap API - inventory management. For some strange reason, you cannot find it in your online documentation, but it exists and works.

SKU , API- SKU: https://developers.bluesnap.com/v8976-Extended/docs/create-sku :

<catalog-sku xmlns="http://ws.plimus.com">
  <contract-name>Seats for Show example</contract-name>
  <product-id>307634</product-id>
  <sku-type>DIGITAL</sku-type>
  <enable-inventory-mgt>true</enable-inventory-mgt>
  <inventory>1000</inventory>
  <pricing-settings>
    <charge-policy-type>ONE TIME PAYMENT</charge-policy-type>
    <charge-policy>
      <one-time-charge>
        <catalog-prices>
          <catalog-price>
            <base-price>true</base-price>
            <currency>USD</currency>
            <amount>7.00</amount>
          </catalog-price>
        </catalog-prices>
      </one-time-charge>
    </charge-policy>
  </pricing-settings>
</catalog-sku>

enable-inventory-mgt , SKU , SKU.

- , SKU , . , - , , , , ( SKU - https://developers.bluesnap.com/v8976-Extended/docs/update-sku)

, , SKU, - .

+4

Source: https://habr.com/ru/post/1685968/


All Articles