13.07.2015 Views

PayPal Button Manager API (NVP)

PayPal Button Manager API (NVP)

PayPal Button Manager API (NVP)

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

3<strong>Button</strong> <strong>Manager</strong> <strong>API</strong> ReferenceBMSetInventory <strong>API</strong> Operation• BMSetInventory Request• BMSetInventory Response• BMSetInventory ErrorsBMSetInventory RequestThe request specifies inventory values related to a hosted button as well as inventory valuesthat are specific to each menu item.BMSetInventory Request FieldsFieldMETHODHOSTEDBUTTONIDTRACKINVTRACKPNLOPTIONNAMEINDEXSOLDOUTURLREUSEDIGITALDOWNLOADKEYSDescription(Required) BMSetInventory(Required) The ID of the hosted button whose inventory you want to set.(Required) Whether to track inventory levels associated with the button. It isone of the following values:• 0 - do not track inventory• 1 - track inventory(Required) Whether to track the gross profit associated with inventorychanges. It is one of the following values:• 0 - do not track the gross profit• 1 - track the gross profitNOTE: The gross profit is calculated as the price of the item less its cost,multiplied by the change in the inventory level since the last call toBMSetInventory.(Optional) Option index, which identifies the button. Option index 0 is themenu that contains the price if one exists; otherwise, it is the first menuwithout a price.Character length and limitations: 1 single-byte alphanumeric character(Optional) The URL to which the buyer’s browser is redirected when theinventory drops to 0.NOTE: Specifying a URL in this field also prevents a sale when the inventorydrops to 0; otherwise, sales can continue even when inventory isunavailable.Character length and limitations: 127 single-byte alphanumeric characters(Optional) Whether to reuse download keys:• 0 - do not reuse keys (default)• 1 - reuse keysNOTE: If you do not reuse the download keys, you must replenish the keyswhen you sell out of the product being downloaded.42 April 2012 <strong>Button</strong> <strong>Manager</strong> <strong>NVP</strong> <strong>API</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!