BookbyteWebSvc


Click here for a complete list of operations.

GetBuybackPrice

Buyback information for affiliates of Bookbyte.com.

Test

The test form is only available for requests from the local machine.

SOAP 1.1

The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.

POST /bbws.asmx HTTP/1.1
Host: webservices.bookbyte.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://webservices.bookbyte.com/GetBuybackPrice"

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <GetBuybackPrice xmlns="http://webservices.bookbyte.com">
      <PublisherID>string</PublisherID>
      <AffiliateType>GAN or CJ</AffiliateType>
      <ItemID>string</ItemID>
      <ItemType>ISBN</ItemType>
      <AuthToken>string</AuthToken>
    </GetBuybackPrice>
  </soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <GetBuybackPriceResponse xmlns="http://webservices.bookbyte.com">
      <GetBuybackPriceResult>
        <Ack>SUCCESS or WARNING or FAILURE</Ack>
        <Errors>NONE or INTERNAL_SERVER_ERROR or ITEM_NOT_IN_CATALOG or INVALID_AUTHTOKEN_PROVIDED or INVALID_ISBN_PROVIDED or PUB_NOT_AUTHORIZED or CUSTOMER_ADDRESS_FAILED_VERIFICATION or FAILED_USE_HTTPS_CONNECTION</Errors>
        <BuybackInfo>
          <IsBuying>boolean</IsBuying>
          <ISBN_13>string</ISBN_13>
          <ISBN_10>string</ISBN_10>
          <Purchase_Price>string</Purchase_Price>
          <Cart_URL>string</Cart_URL>
        </BuybackInfo>
      </GetBuybackPriceResult>
    </GetBuybackPriceResponse>
  </soap:Body>
</soap:Envelope>

SOAP 1.2

The following is a sample SOAP 1.2 request and response. The placeholders shown need to be replaced with actual values.

POST /bbws.asmx HTTP/1.1
Host: webservices.bookbyte.com
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <GetBuybackPrice xmlns="http://webservices.bookbyte.com">
      <PublisherID>string</PublisherID>
      <AffiliateType>GAN or CJ</AffiliateType>
      <ItemID>string</ItemID>
      <ItemType>ISBN</ItemType>
      <AuthToken>string</AuthToken>
    </GetBuybackPrice>
  </soap12:Body>
</soap12:Envelope>
HTTP/1.1 200 OK
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <GetBuybackPriceResponse xmlns="http://webservices.bookbyte.com">
      <GetBuybackPriceResult>
        <Ack>SUCCESS or WARNING or FAILURE</Ack>
        <Errors>NONE or INTERNAL_SERVER_ERROR or ITEM_NOT_IN_CATALOG or INVALID_AUTHTOKEN_PROVIDED or INVALID_ISBN_PROVIDED or PUB_NOT_AUTHORIZED or CUSTOMER_ADDRESS_FAILED_VERIFICATION or FAILED_USE_HTTPS_CONNECTION</Errors>
        <BuybackInfo>
          <IsBuying>boolean</IsBuying>
          <ISBN_13>string</ISBN_13>
          <ISBN_10>string</ISBN_10>
          <Purchase_Price>string</Purchase_Price>
          <Cart_URL>string</Cart_URL>
        </BuybackInfo>
      </GetBuybackPriceResult>
    </GetBuybackPriceResponse>
  </soap12:Body>
</soap12:Envelope>