Currently, only users who are part of our Dealer Program may opt-in to using our API.
End Listing
Endpoint: PUT/PATCH https://www.audiogon.com/api/v2/listings/:id
Description: Trigger end listing from Shopify or other e-commerce platforms to the marketplace.
Parameters:
- id (Path Parameter): The unique identifier for the listing.
Headers:
- Authorization: Bearer OAUTH_TOKEN
Example Request: curl -X PUT "https://www.audiogon.com/api/v2/listings/YOUR_LISTING_ID" -H "Authorization: Bearer YOUR_OAUTH_TOKEN"
Create Listing
Endpoint: POST https://www.audiogon.com/api/v2/listings
Description: Create a listing from Shopify or other e-commerce platforms to the marketplace.
Headers:
- Authorization: Bearer OAUTH_TOKEN
- Content-Type: application/json
Body Parameters (JSON format):
- listing_title (required): The title of the listing.
- description (required): Description of the item.
- brand (required): Brand of the item.
- model (required): Model of the item.
- category (required): Category of the item.
- condition (required): Condition of the item.
- asking_price (required): Asking price for the item
- images (optional): An array of image URLs.
Example Request: curl -X POST "https://www.audiogon.com/api/v2/listings" -H "Authorization: Bearer YOUR_OAUTH_TOKEN" -H "Content-Type: application/json" -d '{"listing_title": "Sample Title", "description": "Sample Description", "brand": "Sample Brand", "model": "Sample Model", "category": "Sample Category", "condition": "Sample Condition", "asking_price": "100.00", "images": ["image1_url", "image2_url"]}'
Get Sold Listings
Endpoint: GET https://www.audiogon.com/api/v2/listings/sold
Description: Retrieve an array of sold listings.
Headers:
- Authorization: Bearer YOUR_OAUTH_TOKEN
Example Request: curl -X GET "https://www.audiogon.com/api/v2/listings/sold" -H "Authorization: Bearer <OAUTH_TOKEN>"
Authentication:
All API calls require a valid OAuth token for the current Zapier user. Ensure that you replace <OAUTH_TOKEN> with the actual OAuth token you have obtained.
Notes:
Developers are encouraged to handle API responses appropriately, checking for success, errors, and various HTTP status codes. Refer to the actual API responses you receive during implementation and testing.
Comments
0 comments
Article is closed for comments.