09-24-2024 08:00 PM
Hi, I am trying to test my flow using postman. I am attempting to create an offer of an item that I created already through the bulk-create-item endpoint. I now want it to be on an offer (listing). I tried the request below but it returns an error to check logs (which I cannot do in ebays sandbox). Any help would be appreciated
this is my request body and url -
POST https://api.sandbox.ebay.com/sell/inventory/v1/bulk_create_offer
{
"requests": [
{
"availableQuantity": 10,
"categoryId": "123456",
"charity": {
"charityId": "78910",
"donationPercentage": "5"
},
"extendedProducerResponsibility": {
"ecoParticipationFee": {
"currency": "USD",
"value": "0.50"
},
"producerProductId": "PROD-001",
"productDocumentationId": "DOC-001",
"productPackageId": "PKG-001",
"shipmentPackageId": "SHIP-001"
},
"format": "FIXED_PRICE",
"hideBuyerDetails": false,
"includeCatalogProductDetails": true,
"listingDescription": "This is a test listing for a smartwatch.",
"listingDuration": "GTC",
"listingPolicies": {
"bestOfferTerms": {
"autoAcceptPrice": {
"currency": "USD",
"value": "150.00"
},
"autoDeclinePrice": {
"currency": "USD",
"value": "100.00"
},
"bestOfferEnabled": true
},
"eBayPlusIfEligible": true,
"fulfillmentPolicyId": "FULFILL-001",
"paymentPolicyId": "PAYMENT-001",
"productCompliancePolicyIds": [
"COMPLIANCE-001"
],
"regionalProductCompliancePolicies": {
"countryPolicies": [
{
"country": "US",
"policyIds": [
"POLICY-001"
]
}
]
},
"regionalTakeBackPolicies": {
"countryPolicies": [
{
"country": "US",
"policyIds": [
"TAKEBACK-001"
]
}
]
},
"returnPolicyId": "RETURN-001",
"shippingCostOverrides": [
{
"additionalShippingCost": {
"currency": "USD",
"value": "2.00"
},
"priority": 1,
"shippingCost": {
"currency": "USD",
"value": "5.00"
},
"shippingServiceType": "DOMESTIC",
"surcharge": {
"currency": "USD",
"value": "1.00"
}
}
],
"takeBackPolicyId": "TAKEBACK-001"
},
"listingStartDate": "2024-09-24T00:00:00Z",
"lotSize": 1,
"marketplaceId": "EBAY_US",
"merchantLocationKey": "WAREHOUSE_001",
"pricingSummary": {
"auctionReservePrice": {
"currency": "USD",
"value": "200.00"
},
"auctionStartPrice": {
"currency": "USD",
"value": "150.00"
},
"minimumAdvertisedPrice": {
"currency": "USD",
"value": "100.00"
},
"originallySoldForRetailPriceOn": "ON_EBAY",
"originalRetailPrice": {
"currency": "USD",
"value": "250.00"
},
"price": {
"currency": "USD",
"value": "199.99"
},
"pricingVisibility": "PRE_CHECKOUT"
},
"quantityLimitPerBuyer": 2,
"regulatory": {
"documents": [
{
"documentId": "DOC-001"
}
],
"economicOperator": {
"addressLine1": "123 Main St",
"addressLine2": "Suite 100",
"city": "New York",
"companyName": "TechBrand",
"country": "US",
"email": "support@techbrand.com",
"phone": "+1-555-1234",
"postalCode": "10001",
"stateOrProvince": "NY"
},
"energyEfficiencyLabel": {
"imageDescription": "Energy label",
"imageURL": "https://example.com/energy_label.jpg",
"productInformationSheet": "https://example.com/product_info_sheet.pdf"
},
"hazmat": {
"component": "Lithium Battery",
"pictograms": [
"https://example.com/hazmat.jpg"
],
"signalWord": "Warning",
"statements": [
"Handle with care"
]
},
"manufacturer": {
"addressLine1": "456 Elm St",
"addressLine2": "",
"city": "San Francisco",
"companyName": "TechBrand Manufacturer",
"country": "US",
"email": "manufacturer@techbrand.com",
"phone": "+1-555-5678",
"postalCode": "94103",
"stateOrProvince": "CA"
},
"productSafety": {
"component": "Battery",
"pictograms": [
"https://example.com/safety_pictogram.jpg"
],
"statements": [
"Keep out of reach of children"
]
},
"repairScore": 8.5,
"responsiblePersons": [
{
"addressLine1": "789 Oak St",
"addressLine2": "",
"city": "Los Angeles",
"companyName": "TechBrand Inc.",
"country": "US",
"email": "contact@techbrand.com",
"phone": "+1-555-91011",
"postalCode": "90001",
"stateOrProvince": "CA",
"types": [
"EU_RESPONSIBLE_PERSON"
]
}
]
},
"secondaryCategoryId": "654321",
"sku": "test-SMARTWATCH-12345",
"storeCategoryNames": [
"Wearables"
],
"tax": {
"applyTax": true,
"thirdPartyTaxCategory": "TAX-CATEGORY-001",
"vatPercentage": 5.0
}
}
]
}
This is the response -
{
"errors": [
{
"errorId": 2003,
"domain": "ACCESS",
"category": "APPLICATION",
"message": "Internal error",
"longMessage": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance",
"parameters": [
{
"name": "reason",
"value": "Failed to transform underlying error response, see logs."
}
]
}
]
}